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