OLD | NEW |
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" | |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" | 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorSuppor
t.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorSuppor
t.h" |
11 | 10 |
12 namespace base { | |
13 class MessageLoopProxy; | |
14 } | |
15 | |
16 namespace webkit { | 11 namespace webkit { |
17 | 12 |
18 class WebCompositorSupportImpl : public WebKit::WebCompositorSupport { | 13 class WebCompositorSupportImpl : public WebKit::WebCompositorSupport { |
19 public: | 14 public: |
20 WebCompositorSupportImpl(); | 15 WebCompositorSupportImpl(); |
21 virtual ~WebCompositorSupportImpl(); | 16 virtual ~WebCompositorSupportImpl(); |
22 | 17 |
23 virtual void initialize(WebKit::WebThread* implThread); | 18 virtual void initialize(WebKit::WebThread* thread); |
24 virtual bool isThreadingEnabled(); | 19 virtual bool isThreadingEnabled(); |
25 virtual void shutdown(); | 20 virtual void shutdown(); |
26 virtual void setPerTilePaintingEnabled(bool enabled); | 21 virtual void setPerTilePaintingEnabled(bool enabled); |
27 virtual void setPartialSwapEnabled(bool enabled); | 22 virtual void setPartialSwapEnabled(bool enabled); |
28 virtual void setAcceleratedAnimationEnabled(bool enabled); | 23 virtual void setAcceleratedAnimationEnabled(bool enabled); |
29 virtual void setPageScalePinchZoomEnabled(bool enabled); | 24 virtual void setPageScalePinchZoomEnabled(bool enabled); |
30 virtual WebKit::WebLayerTreeView* createLayerTreeView( | 25 virtual WebKit::WebLayerTreeView* createLayerTreeView( |
31 WebKit::WebLayerTreeViewClient* client, const WebKit::WebLayer& root, | 26 WebKit::WebLayerTreeViewClient* client, const WebKit::WebLayer& root, |
32 const WebKit::WebLayerTreeView::Settings& settings); | 27 const WebKit::WebLayerTreeView::Settings& settings); |
33 virtual WebKit::WebLayer* createLayer(); | 28 virtual WebKit::WebLayer* createLayer(); |
(...skipping 14 matching lines...) Expand all Loading... |
48 WebKit::WebScrollbarThemePainter painter, | 43 WebKit::WebScrollbarThemePainter painter, |
49 WebKit::WebScrollbarThemeGeometry*); | 44 WebKit::WebScrollbarThemeGeometry*); |
50 virtual WebKit::WebAnimation* createAnimation( | 45 virtual WebKit::WebAnimation* createAnimation( |
51 const WebKit::WebAnimationCurve& curve, | 46 const WebKit::WebAnimationCurve& curve, |
52 WebKit::WebAnimation::TargetProperty target, | 47 WebKit::WebAnimation::TargetProperty target, |
53 int animationId); | 48 int animationId); |
54 virtual WebKit::WebFloatAnimationCurve* | 49 virtual WebKit::WebFloatAnimationCurve* |
55 createFloatAnimationCurve(); | 50 createFloatAnimationCurve(); |
56 virtual WebKit::WebTransformAnimationCurve* | 51 virtual WebKit::WebTransformAnimationCurve* |
57 createTransformAnimationCurve(); | 52 createTransformAnimationCurve(); |
58 | |
59 private: | |
60 scoped_refptr<base::MessageLoopProxy> impl_thread_message_loop_proxy_; | |
61 }; | 53 }; |
62 | 54 |
63 } // namespace webkit | 55 } // namespace webkit |
64 | 56 |
65 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ | 57 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ |
OLD | NEW |