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 #include "webkit/compositor_bindings/web_compositor_support_impl.h" | 5 #include "webkit/compositor_bindings/web_compositor_support_impl.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
9 #include "cc/output_surface.h" | 9 #include "cc/output_surface.h" |
10 #include "cc/software_output_device.h" | 10 #include "cc/software_output_device.h" |
11 #include "cc/thread_impl.h" | 11 #include "cc/thread_impl.h" |
12 #include "cc/transform_operations.h" | 12 #include "cc/transform_operations.h" |
13 #include "webkit/compositor_bindings/web_animation_impl.h" | 13 #include "webkit/compositor_bindings/web_animation_impl.h" |
14 #include "webkit/compositor_bindings/web_content_layer_impl.h" | 14 #include "webkit/compositor_bindings/web_content_layer_impl.h" |
15 #include "webkit/compositor_bindings/web_external_texture_layer_impl.h" | 15 #include "webkit/compositor_bindings/web_external_texture_layer_impl.h" |
16 #include "webkit/compositor_bindings/web_float_animation_curve_impl.h" | 16 #include "webkit/compositor_bindings/web_float_animation_curve_impl.h" |
17 #include "webkit/compositor_bindings/web_image_layer_impl.h" | 17 #include "webkit/compositor_bindings/web_image_layer_impl.h" |
18 #include "webkit/compositor_bindings/web_io_surface_layer_impl.h" | |
19 #include "webkit/compositor_bindings/web_layer_impl.h" | 18 #include "webkit/compositor_bindings/web_layer_impl.h" |
20 #include "webkit/compositor_bindings/web_scrollbar_layer_impl.h" | 19 #include "webkit/compositor_bindings/web_scrollbar_layer_impl.h" |
21 #include "webkit/compositor_bindings/web_solid_color_layer_impl.h" | 20 #include "webkit/compositor_bindings/web_solid_color_layer_impl.h" |
22 #include "webkit/compositor_bindings/web_transform_animation_curve_impl.h" | 21 #include "webkit/compositor_bindings/web_transform_animation_curve_impl.h" |
23 #include "webkit/compositor_bindings/web_transform_operations_impl.h" | 22 #include "webkit/compositor_bindings/web_transform_operations_impl.h" |
24 #include "webkit/compositor_bindings/web_video_layer_impl.h" | 23 #include "webkit/compositor_bindings/web_video_layer_impl.h" |
25 #include "webkit/glue/webthread_impl.h" | 24 #include "webkit/glue/webthread_impl.h" |
26 #include "webkit/support/webkit_support.h" | 25 #include "webkit/support/webkit_support.h" |
27 | 26 |
28 using WebKit::WebAnimation; | 27 using WebKit::WebAnimation; |
29 using WebKit::WebAnimationCurve; | 28 using WebKit::WebAnimationCurve; |
30 using WebKit::WebContentLayer; | 29 using WebKit::WebContentLayer; |
31 using WebKit::WebContentLayerClient; | 30 using WebKit::WebContentLayerClient; |
32 using WebKit::WebExternalTextureLayer; | 31 using WebKit::WebExternalTextureLayer; |
33 using WebKit::WebExternalTextureLayerClient; | 32 using WebKit::WebExternalTextureLayerClient; |
34 using WebKit::WebFloatAnimationCurve; | 33 using WebKit::WebFloatAnimationCurve; |
35 using WebKit::WebIOSurfaceLayer; | |
36 using WebKit::WebImageLayer; | 34 using WebKit::WebImageLayer; |
37 using WebKit::WebImageLayer; | 35 using WebKit::WebImageLayer; |
38 using WebKit::WebLayer; | 36 using WebKit::WebLayer; |
39 using WebKit::WebScrollbar; | 37 using WebKit::WebScrollbar; |
40 using WebKit::WebScrollbarLayer; | 38 using WebKit::WebScrollbarLayer; |
41 using WebKit::WebScrollbarThemeGeometry; | 39 using WebKit::WebScrollbarThemeGeometry; |
42 using WebKit::WebScrollbarThemePainter; | 40 using WebKit::WebScrollbarThemePainter; |
43 using WebKit::WebSolidColorLayer; | 41 using WebKit::WebSolidColorLayer; |
44 using WebKit::WebTransformAnimationCurve; | 42 using WebKit::WebTransformAnimationCurve; |
45 using WebKit::WebTransformOperations; | 43 using WebKit::WebTransformOperations; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 WebContentLayer* WebCompositorSupportImpl::createContentLayer( | 95 WebContentLayer* WebCompositorSupportImpl::createContentLayer( |
98 WebContentLayerClient* client) { | 96 WebContentLayerClient* client) { |
99 return new WebKit::WebContentLayerImpl(client); | 97 return new WebKit::WebContentLayerImpl(client); |
100 } | 98 } |
101 | 99 |
102 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( | 100 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( |
103 WebExternalTextureLayerClient* client) { | 101 WebExternalTextureLayerClient* client) { |
104 return new WebKit::WebExternalTextureLayerImpl(client); | 102 return new WebKit::WebExternalTextureLayerImpl(client); |
105 } | 103 } |
106 | 104 |
107 WebKit::WebIOSurfaceLayer* WebCompositorSupportImpl::createIOSurfaceLayer() { | |
108 return new WebKit::WebIOSurfaceLayerImpl(); | |
109 } | |
110 | |
111 WebKit::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { | 105 WebKit::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { |
112 return new WebKit::WebImageLayerImpl(); | 106 return new WebKit::WebImageLayerImpl(); |
113 } | 107 } |
114 | 108 |
115 WebSolidColorLayer* WebCompositorSupportImpl::createSolidColorLayer() { | 109 WebSolidColorLayer* WebCompositorSupportImpl::createSolidColorLayer() { |
116 return new WebKit::WebSolidColorLayerImpl(); | 110 return new WebKit::WebSolidColorLayerImpl(); |
117 } | 111 } |
118 | 112 |
119 WebVideoLayer* WebCompositorSupportImpl::createVideoLayer( | 113 WebVideoLayer* WebCompositorSupportImpl::createVideoLayer( |
120 WebKit::WebVideoFrameProvider* provider) { | 114 WebKit::WebVideoFrameProvider* provider) { |
(...skipping 21 matching lines...) Expand all Loading... |
142 WebTransformAnimationCurve* | 136 WebTransformAnimationCurve* |
143 WebCompositorSupportImpl::createTransformAnimationCurve() { | 137 WebCompositorSupportImpl::createTransformAnimationCurve() { |
144 return new WebKit::WebTransformAnimationCurveImpl(); | 138 return new WebKit::WebTransformAnimationCurveImpl(); |
145 } | 139 } |
146 | 140 |
147 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { | 141 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { |
148 return new WebTransformOperationsImpl(); | 142 return new WebTransformOperationsImpl(); |
149 } | 143 } |
150 | 144 |
151 } // namespace webkit | 145 } // namespace webkit |
OLD | NEW |