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" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 virtual void initialize(WebKit::WebThread* compositor_thread); | 26 virtual void initialize(WebKit::WebThread* compositor_thread); |
27 virtual bool isThreadingEnabled(); | 27 virtual bool isThreadingEnabled(); |
28 virtual void shutdown(); | 28 virtual void shutdown(); |
29 virtual WebKit::WebCompositorOutputSurface* createOutputSurfaceFor3D( | 29 virtual WebKit::WebCompositorOutputSurface* createOutputSurfaceFor3D( |
30 WebKit::WebGraphicsContext3D* context); | 30 WebKit::WebGraphicsContext3D* context); |
31 virtual WebKit::WebCompositorOutputSurface* createOutputSurfaceForSoftware(); | 31 virtual WebKit::WebCompositorOutputSurface* createOutputSurfaceForSoftware(); |
32 virtual WebKit::WebLayer* createLayer(); | 32 virtual WebKit::WebLayer* createLayer(); |
33 virtual WebKit::WebContentLayer* createContentLayer( | 33 virtual WebKit::WebContentLayer* createContentLayer( |
34 WebKit::WebContentLayerClient* client); | 34 WebKit::WebContentLayerClient* client); |
35 virtual WebKit::WebExternalTextureLayer* createExternalTextureLayer( | 35 virtual WebKit::WebExternalTextureLayer* createExternalTextureLayer( |
36 WebKit::WebExternalTextureLayerClient* client); | 36 WebKit::WebExternalTextureLayerClient* client, bool single_buffer); |
37 virtual WebKit::WebImageLayer* createImageLayer(); | 37 virtual WebKit::WebImageLayer* createImageLayer(); |
38 virtual WebKit::WebSolidColorLayer* createSolidColorLayer(); | 38 virtual WebKit::WebSolidColorLayer* createSolidColorLayer(); |
39 virtual WebKit::WebVideoLayer* createVideoLayer( | 39 virtual WebKit::WebVideoLayer* createVideoLayer( |
40 WebKit::WebVideoFrameProvider*); | 40 WebKit::WebVideoFrameProvider*); |
41 virtual WebKit::WebScrollbarLayer* createScrollbarLayer( | 41 virtual WebKit::WebScrollbarLayer* createScrollbarLayer( |
42 WebKit::WebScrollbar* scrollbar, | 42 WebKit::WebScrollbar* scrollbar, |
43 WebKit::WebScrollbarThemePainter painter, | 43 WebKit::WebScrollbarThemePainter painter, |
44 WebKit::WebScrollbarThemeGeometry*); | 44 WebKit::WebScrollbarThemeGeometry*); |
45 virtual WebKit::WebAnimation* createAnimation( | 45 virtual WebKit::WebAnimation* createAnimation( |
46 const WebKit::WebAnimationCurve& curve, | 46 const WebKit::WebAnimationCurve& curve, |
47 WebKit::WebAnimation::TargetProperty target, | 47 WebKit::WebAnimation::TargetProperty target, |
48 int animation_id); | 48 int animation_id); |
49 virtual WebKit::WebFloatAnimationCurve* createFloatAnimationCurve(); | 49 virtual WebKit::WebFloatAnimationCurve* createFloatAnimationCurve(); |
50 virtual WebKit::WebTransformAnimationCurve* createTransformAnimationCurve(); | 50 virtual WebKit::WebTransformAnimationCurve* createTransformAnimationCurve(); |
51 virtual WebKit::WebTransformOperations* createTransformOperations(); | 51 virtual WebKit::WebTransformOperations* createTransformOperations(); |
52 | 52 |
53 scoped_refptr<base::MessageLoopProxy> compositor_thread_message_loop_proxy() { | 53 scoped_refptr<base::MessageLoopProxy> compositor_thread_message_loop_proxy() { |
54 return compositor_thread_message_loop_proxy_; | 54 return compositor_thread_message_loop_proxy_; |
55 } | 55 } |
56 private: | 56 private: |
57 scoped_refptr<base::MessageLoopProxy> compositor_thread_message_loop_proxy_; | 57 scoped_refptr<base::MessageLoopProxy> compositor_thread_message_loop_proxy_; |
58 bool initialized_; | 58 bool initialized_; |
59 }; | 59 }; |
60 | 60 |
61 } // namespace webkit | 61 } // namespace webkit |
62 | 62 |
63 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ | 63 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ |
OLD | NEW |