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

Unified Diff: webkit/compositor_bindings/web_compositor_support_impl.h

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Apply code review comments Created 8 years, 1 month 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: webkit/compositor_bindings/web_compositor_support_impl.h
diff --git a/webkit/compositor_bindings/web_compositor_support_impl.h b/webkit/compositor_bindings/web_compositor_support_impl.h
index ac7e2767188e1a1103d51378958c8657394834e1..311f6fb9ce56cb48f8668a3965025b8f7a7df00e 100644
--- a/webkit/compositor_bindings/web_compositor_support_impl.h
+++ b/webkit/compositor_bindings/web_compositor_support_impl.h
@@ -5,9 +5,14 @@
#ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_
#define WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_
+#include "base/memory/ref_counted.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorSupport.h"
+namespace base {
+class MessageLoopProxy;
+}
+
namespace webkit {
class WebCompositorSupportImpl : public WebKit::WebCompositorSupport {
@@ -15,7 +20,7 @@ class WebCompositorSupportImpl : public WebKit::WebCompositorSupport {
WebCompositorSupportImpl();
virtual ~WebCompositorSupportImpl();
- virtual void initialize(WebKit::WebThread* thread);
+ virtual void initialize(WebKit::WebThread* implThread);
virtual bool isThreadingEnabled();
virtual void shutdown();
virtual void setPerTilePaintingEnabled(bool enabled);
@@ -50,6 +55,10 @@ class WebCompositorSupportImpl : public WebKit::WebCompositorSupport {
createFloatAnimationCurve();
virtual WebKit::WebTransformAnimationCurve*
createTransformAnimationCurve();
+
+ private:
+ scoped_refptr<base::MessageLoopProxy> impl_thread_message_loop_proxy_;
+ bool initialized_;
};
} // namespace webkit
« no previous file with comments | « webkit/compositor_bindings/web_compositor_impl.cc ('k') | webkit/compositor_bindings/web_compositor_support_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698