Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2537)

Unified Diff: android_webview/browser/gl_view_renderer_manager.h

Issue 172793002: aw: Do not assume functor will be called on UI thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dcheck Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | android_webview/browser/gl_view_renderer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/gl_view_renderer_manager.h
diff --git a/android_webview/browser/gl_view_renderer_manager.h b/android_webview/browser/gl_view_renderer_manager.h
index 67595fbb4ae9461cd551bd355910cf174a63bb98..588390c8e20d5a586b9a4dbfe2804be2ff1baf4c 100644
--- a/android_webview/browser/gl_view_renderer_manager.h
+++ b/android_webview/browser/gl_view_renderer_manager.h
@@ -8,6 +8,8 @@
#include <list>
#include "base/basictypes.h"
+#include "base/synchronization/lock.h"
+#include "base/threading/platform_thread.h"
namespace android_webview {
@@ -21,6 +23,8 @@ class GLViewRendererManager {
GLViewRendererManager();
~GLViewRendererManager();
+ bool OnRenderThread() const;
+
// If |key| is NullKey(), then |view| is inserted at the front and a new key
// is returned. Otherwise |key| must point to |view| which is moved to the
// front.
@@ -33,6 +37,10 @@ class GLViewRendererManager {
Key NullKey();
private:
+ void MarkRenderThread();
+
+ mutable base::Lock lock_;
+ base::PlatformThreadHandle render_thread_;
ListType mru_list_;
DISALLOW_COPY_AND_ASSIGN(GLViewRendererManager);
« no previous file with comments | « no previous file | android_webview/browser/gl_view_renderer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698