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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ 5 #ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_
6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ 6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h"
8 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorSuppor t.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorSuppor t.h"
10 11
12 namespace base {
13 class MessageLoopProxy;
14 }
15
11 namespace webkit { 16 namespace webkit {
12 17
13 class WebCompositorSupportImpl : public WebKit::WebCompositorSupport { 18 class WebCompositorSupportImpl : public WebKit::WebCompositorSupport {
14 public: 19 public:
15 WebCompositorSupportImpl(); 20 WebCompositorSupportImpl();
16 virtual ~WebCompositorSupportImpl(); 21 virtual ~WebCompositorSupportImpl();
17 22
18 virtual void initialize(WebKit::WebThread* thread); 23 virtual void initialize(WebKit::WebThread* implThread);
19 virtual bool isThreadingEnabled(); 24 virtual bool isThreadingEnabled();
20 virtual void shutdown(); 25 virtual void shutdown();
21 virtual void setPerTilePaintingEnabled(bool enabled); 26 virtual void setPerTilePaintingEnabled(bool enabled);
22 virtual void setPartialSwapEnabled(bool enabled); 27 virtual void setPartialSwapEnabled(bool enabled);
23 virtual void setAcceleratedAnimationEnabled(bool enabled); 28 virtual void setAcceleratedAnimationEnabled(bool enabled);
24 virtual void setPageScalePinchZoomEnabled(bool enabled); 29 virtual void setPageScalePinchZoomEnabled(bool enabled);
25 virtual WebKit::WebLayerTreeView* createLayerTreeView( 30 virtual WebKit::WebLayerTreeView* createLayerTreeView(
26 WebKit::WebLayerTreeViewClient* client, const WebKit::WebLayer& root, 31 WebKit::WebLayerTreeViewClient* client, const WebKit::WebLayer& root,
27 const WebKit::WebLayerTreeView::Settings& settings); 32 const WebKit::WebLayerTreeView::Settings& settings);
28 virtual WebKit::WebLayer* createLayer(); 33 virtual WebKit::WebLayer* createLayer();
(...skipping 14 matching lines...) Expand all
43 WebKit::WebScrollbarThemePainter painter, 48 WebKit::WebScrollbarThemePainter painter,
44 WebKit::WebScrollbarThemeGeometry*); 49 WebKit::WebScrollbarThemeGeometry*);
45 virtual WebKit::WebAnimation* createAnimation( 50 virtual WebKit::WebAnimation* createAnimation(
46 const WebKit::WebAnimationCurve& curve, 51 const WebKit::WebAnimationCurve& curve,
47 WebKit::WebAnimation::TargetProperty target, 52 WebKit::WebAnimation::TargetProperty target,
48 int animationId); 53 int animationId);
49 virtual WebKit::WebFloatAnimationCurve* 54 virtual WebKit::WebFloatAnimationCurve*
50 createFloatAnimationCurve(); 55 createFloatAnimationCurve();
51 virtual WebKit::WebTransformAnimationCurve* 56 virtual WebKit::WebTransformAnimationCurve*
52 createTransformAnimationCurve(); 57 createTransformAnimationCurve();
58
59 private:
60 scoped_refptr<base::MessageLoopProxy> impl_thread_message_loop_proxy_;
61 bool initialized_;
53 }; 62 };
54 63
55 } // namespace webkit 64 } // namespace webkit
56 65
57 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ 66 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_
OLDNEW
« 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