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/thread_impl.h" | 9 #include "cc/thread_impl.h" |
10 #include "webkit/compositor_bindings/web_animation_impl.h" | 10 #include "webkit/compositor_bindings/web_animation_impl.h" |
11 #include "webkit/compositor_bindings/web_compositor_support_output_surface.h" | 11 #include "webkit/compositor_bindings/web_compositor_support_output_surface.h" |
12 #include "webkit/compositor_bindings/web_compositor_support_software_output_devi
ce.h" | 12 #include "webkit/compositor_bindings/web_compositor_support_software_output_devi
ce.h" |
13 #include "webkit/compositor_bindings/web_content_layer_impl.h" | 13 #include "webkit/compositor_bindings/web_content_layer_impl.h" |
14 #include "webkit/compositor_bindings/web_delegated_renderer_layer_impl.h" | |
15 #include "webkit/compositor_bindings/web_external_texture_layer_impl.h" | 14 #include "webkit/compositor_bindings/web_external_texture_layer_impl.h" |
16 #include "webkit/compositor_bindings/web_float_animation_curve_impl.h" | 15 #include "webkit/compositor_bindings/web_float_animation_curve_impl.h" |
17 #include "webkit/compositor_bindings/web_image_layer_impl.h" | 16 #include "webkit/compositor_bindings/web_image_layer_impl.h" |
18 #include "webkit/compositor_bindings/web_io_surface_layer_impl.h" | 17 #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_layer_tree_view_impl.h" | 19 #include "webkit/compositor_bindings/web_layer_tree_view_impl.h" |
21 #include "webkit/compositor_bindings/web_scrollbar_layer_impl.h" | 20 #include "webkit/compositor_bindings/web_scrollbar_layer_impl.h" |
22 #include "webkit/compositor_bindings/web_solid_color_layer_impl.h" | 21 #include "webkit/compositor_bindings/web_solid_color_layer_impl.h" |
23 #include "webkit/compositor_bindings/web_transform_animation_curve_impl.h" | 22 #include "webkit/compositor_bindings/web_transform_animation_curve_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::WebDelegatedRendererLayer; | |
33 using WebKit::WebExternalTextureLayer; | 31 using WebKit::WebExternalTextureLayer; |
34 using WebKit::WebExternalTextureLayerClient; | 32 using WebKit::WebExternalTextureLayerClient; |
35 using WebKit::WebFloatAnimationCurve; | 33 using WebKit::WebFloatAnimationCurve; |
36 using WebKit::WebIOSurfaceLayer; | 34 using WebKit::WebIOSurfaceLayer; |
37 using WebKit::WebImageLayer; | 35 using WebKit::WebImageLayer; |
38 using WebKit::WebImageLayer; | 36 using WebKit::WebImageLayer; |
39 using WebKit::WebLayer; | 37 using WebKit::WebLayer; |
40 using WebKit::WebLayerTreeView; | 38 using WebKit::WebLayerTreeView; |
41 using WebKit::WebLayerTreeViewClient; | 39 using WebKit::WebLayerTreeViewClient; |
42 using WebKit::WebScrollbar; | 40 using WebKit::WebScrollbar; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 111 |
114 WebLayer* WebCompositorSupportImpl::createLayer() { | 112 WebLayer* WebCompositorSupportImpl::createLayer() { |
115 return new WebKit::WebLayerImpl(); | 113 return new WebKit::WebLayerImpl(); |
116 } | 114 } |
117 | 115 |
118 WebContentLayer* WebCompositorSupportImpl::createContentLayer( | 116 WebContentLayer* WebCompositorSupportImpl::createContentLayer( |
119 WebContentLayerClient* client) { | 117 WebContentLayerClient* client) { |
120 return new WebKit::WebContentLayerImpl(client); | 118 return new WebKit::WebContentLayerImpl(client); |
121 } | 119 } |
122 | 120 |
123 WebDelegatedRendererLayer* | |
124 WebCompositorSupportImpl::createDelegatedRendererLayer() { | |
125 return new WebKit::WebDelegatedRendererLayerImpl(); | |
126 } | |
127 | |
128 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( | 121 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( |
129 WebExternalTextureLayerClient* client) { | 122 WebExternalTextureLayerClient* client) { |
130 return new WebKit::WebExternalTextureLayerImpl(client); | 123 return new WebKit::WebExternalTextureLayerImpl(client); |
131 } | 124 } |
132 | 125 |
133 WebKit::WebIOSurfaceLayer* | 126 WebKit::WebIOSurfaceLayer* |
134 WebCompositorSupportImpl::createIOSurfaceLayer() { | 127 WebCompositorSupportImpl::createIOSurfaceLayer() { |
135 return new WebKit::WebIOSurfaceLayerImpl(); | 128 return new WebKit::WebIOSurfaceLayerImpl(); |
136 } | 129 } |
137 | 130 |
(...skipping 27 matching lines...) Expand all Loading... |
165 WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() { | 158 WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() { |
166 return new WebKit::WebFloatAnimationCurveImpl(); | 159 return new WebKit::WebFloatAnimationCurveImpl(); |
167 } | 160 } |
168 | 161 |
169 WebTransformAnimationCurve* | 162 WebTransformAnimationCurve* |
170 WebCompositorSupportImpl::createTransformAnimationCurve() { | 163 WebCompositorSupportImpl::createTransformAnimationCurve() { |
171 return new WebKit::WebTransformAnimationCurveImpl(); | 164 return new WebKit::WebTransformAnimationCurveImpl(); |
172 } | 165 } |
173 | 166 |
174 } // namespace webkit | 167 } // namespace webkit |
OLD | NEW |