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

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: 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
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..63d2615a9676e887e0cb32771f56f6f43ec74e87 100644
--- a/android_webview/browser/gl_view_renderer_manager.h
+++ b/android_webview/browser/gl_view_renderer_manager.h
@@ -8,6 +8,7 @@
#include <list>
#include "base/basictypes.h"
+#include "base/threading/platform_thread.h"
namespace android_webview {
@@ -21,6 +22,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 +36,9 @@ class GLViewRendererManager {
Key NullKey();
private:
+ void MarkRenderThread();
+
+ base::PlatformThreadHandle render_thread_;
ListType mru_list_;
DISALLOW_COPY_AND_ASSIGN(GLViewRendererManager);

Powered by Google App Engine
This is Rietveld 408576698