mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-08 16:18:51 +01:00
- Add a new CefSettings.graphics_implementation option for using different GL implementations. - Disable accelerated compositing by default due to multiple issues (issue #334, issue #335, issue #337). - Eliminate the "patcher" project and perform all patching during GYP project generation. - Fix references to non-existent files in cef.gyp. - Move BrowserWebKitInit method implementations to a separate .cc file. - Add support for Flash on Mac (issue #305). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@284 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
34 lines
1014 B
Diff
34 lines
1014 B
Diff
Index: message_loop.cc
|
|
===================================================================
|
|
--- message_loop.cc (revision 99561)
|
|
+++ message_loop.cc (working copy)
|
|
@@ -393,9 +393,13 @@
|
|
}
|
|
|
|
void MessageLoop::AssertIdle() const {
|
|
+ DCHECK(IsIdle());
|
|
+}
|
|
+
|
|
+bool MessageLoop::IsIdle() const {
|
|
// We only check |incoming_queue_|, since we don't want to lock |work_queue_|.
|
|
base::AutoLock lock(incoming_queue_lock_);
|
|
- DCHECK(incoming_queue_.empty());
|
|
+ return incoming_queue_.empty();
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
Index: message_loop.h
|
|
===================================================================
|
|
--- message_loop.h (revision 99561)
|
|
+++ message_loop.h (working copy)
|
|
@@ -363,6 +363,9 @@
|
|
// Asserts that the MessageLoop is "idle".
|
|
void AssertIdle() const;
|
|
|
|
+ // Returns true if the MessageLoop is "idle".
|
|
+ bool IsIdle() const;
|
|
+
|
|
#if defined(OS_WIN)
|
|
void set_os_modal_loop(bool os_modal_loop) {
|
|
os_modal_loop_ = os_modal_loop;
|