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/renderer/compositor_bindings/web_compositor_support_impl.h" | 5 #include "content/renderer/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/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
9 #include "cc/animation/transform_operations.h" | 9 #include "cc/animation/transform_operations.h" |
10 #include "cc/output/output_surface.h" | 10 #include "cc/output/output_surface.h" |
11 #include "cc/output/software_output_device.h" | 11 #include "cc/output/software_output_device.h" |
12 #include "webkit/renderer/compositor_bindings/web_animation_impl.h" | 12 #include "content/renderer/compositor_bindings/web_animation_impl.h" |
13 #include "webkit/renderer/compositor_bindings/web_content_layer_impl.h" | 13 #include "content/renderer/compositor_bindings/web_content_layer_impl.h" |
14 #include "webkit/renderer/compositor_bindings/web_external_texture_layer_impl.h" | 14 #include "content/renderer/compositor_bindings/web_external_texture_layer_impl.h
" |
15 #include "webkit/renderer/compositor_bindings/web_filter_animation_curve_impl.h" | 15 #include "content/renderer/compositor_bindings/web_filter_animation_curve_impl.h
" |
16 #include "webkit/renderer/compositor_bindings/web_filter_operations_impl.h" | 16 #include "content/renderer/compositor_bindings/web_filter_operations_impl.h" |
17 #include "webkit/renderer/compositor_bindings/web_float_animation_curve_impl.h" | 17 #include "content/renderer/compositor_bindings/web_float_animation_curve_impl.h" |
18 #include "webkit/renderer/compositor_bindings/web_image_layer_impl.h" | 18 #include "content/renderer/compositor_bindings/web_image_layer_impl.h" |
19 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" | 19 #include "content/renderer/compositor_bindings/web_layer_impl.h" |
20 #include "webkit/renderer/compositor_bindings/web_nine_patch_layer_impl.h" | 20 #include "content/renderer/compositor_bindings/web_nine_patch_layer_impl.h" |
21 #include "webkit/renderer/compositor_bindings/web_scroll_offset_animation_curve_
impl.h" | 21 #include "content/renderer/compositor_bindings/web_scroll_offset_animation_curve
_impl.h" |
22 #include "webkit/renderer/compositor_bindings/web_scrollbar_layer_impl.h" | 22 #include "content/renderer/compositor_bindings/web_scrollbar_layer_impl.h" |
23 #include "webkit/renderer/compositor_bindings/web_solid_color_layer_impl.h" | 23 #include "content/renderer/compositor_bindings/web_solid_color_layer_impl.h" |
24 #include "webkit/renderer/compositor_bindings/web_transform_animation_curve_impl
.h" | 24 #include "content/renderer/compositor_bindings/web_transform_animation_curve_imp
l.h" |
25 #include "webkit/renderer/compositor_bindings/web_transform_operations_impl.h" | 25 #include "content/renderer/compositor_bindings/web_transform_operations_impl.h" |
26 | 26 |
27 using blink::WebAnimation; | 27 using blink::WebAnimation; |
28 using blink::WebAnimationCurve; | 28 using blink::WebAnimationCurve; |
29 using blink::WebContentLayer; | 29 using blink::WebContentLayer; |
30 using blink::WebContentLayerClient; | 30 using blink::WebContentLayerClient; |
31 using blink::WebExternalTextureLayer; | 31 using blink::WebExternalTextureLayer; |
32 using blink::WebExternalTextureLayerClient; | 32 using blink::WebExternalTextureLayerClient; |
33 using blink::WebFilterAnimationCurve; | 33 using blink::WebFilterAnimationCurve; |
34 using blink::WebFilterOperations; | 34 using blink::WebFilterOperations; |
35 using blink::WebFloatAnimationCurve; | 35 using blink::WebFloatAnimationCurve; |
36 using blink::WebImageLayer; | 36 using blink::WebImageLayer; |
37 using blink::WebNinePatchLayer; | 37 using blink::WebNinePatchLayer; |
38 using blink::WebLayer; | 38 using blink::WebLayer; |
39 using blink::WebScrollbar; | 39 using blink::WebScrollbar; |
40 using blink::WebScrollbarLayer; | 40 using blink::WebScrollbarLayer; |
41 using blink::WebScrollbarThemeGeometry; | 41 using blink::WebScrollbarThemeGeometry; |
42 using blink::WebScrollbarThemePainter; | 42 using blink::WebScrollbarThemePainter; |
43 #if WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED | 43 #if WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED |
44 using blink::WebScrollOffsetAnimationCurve; | 44 using blink::WebScrollOffsetAnimationCurve; |
45 #endif | 45 #endif |
46 using blink::WebSolidColorLayer; | 46 using blink::WebSolidColorLayer; |
47 using blink::WebTransformAnimationCurve; | 47 using blink::WebTransformAnimationCurve; |
48 using blink::WebTransformOperations; | 48 using blink::WebTransformOperations; |
49 | 49 |
50 namespace webkit { | 50 namespace content { |
51 | 51 |
52 WebCompositorSupportImpl::WebCompositorSupportImpl() {} | 52 WebCompositorSupportImpl::WebCompositorSupportImpl() { |
| 53 } |
53 | 54 |
54 WebCompositorSupportImpl::~WebCompositorSupportImpl() {} | 55 WebCompositorSupportImpl::~WebCompositorSupportImpl() { |
| 56 } |
55 | 57 |
56 WebLayer* WebCompositorSupportImpl::createLayer() { | 58 WebLayer* WebCompositorSupportImpl::createLayer() { |
57 return new WebLayerImpl(); | 59 return new WebLayerImpl(); |
58 } | 60 } |
59 | 61 |
60 WebContentLayer* WebCompositorSupportImpl::createContentLayer( | 62 WebContentLayer* WebCompositorSupportImpl::createContentLayer( |
61 WebContentLayerClient* client) { | 63 WebContentLayerClient* client) { |
62 return new WebContentLayerImpl(client); | 64 return new WebContentLayerImpl(client); |
63 } | 65 } |
64 | 66 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 } | 130 } |
129 | 131 |
130 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { | 132 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { |
131 return new WebTransformOperationsImpl(); | 133 return new WebTransformOperationsImpl(); |
132 } | 134 } |
133 | 135 |
134 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { | 136 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { |
135 return new WebFilterOperationsImpl(); | 137 return new WebFilterOperationsImpl(); |
136 } | 138 } |
137 | 139 |
138 } // namespace webkit | 140 } // namespace content |
OLD | NEW |