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 "webkit/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/child/webthread_impl.h" | 12 #include "webkit/child/webthread_impl.h" |
13 #include "webkit/renderer/compositor_bindings/web_animation_impl.h" | 13 #include "webkit/renderer/compositor_bindings/web_animation_impl.h" |
14 #include "webkit/renderer/compositor_bindings/web_content_layer_impl.h" | 14 #include "webkit/renderer/compositor_bindings/web_content_layer_impl.h" |
15 #include "webkit/renderer/compositor_bindings/web_external_texture_layer_impl.h" | 15 #include "webkit/renderer/compositor_bindings/web_external_texture_layer_impl.h" |
16 #include "webkit/renderer/compositor_bindings/web_filter_animation_curve_impl.h" | 16 #include "webkit/renderer/compositor_bindings/web_filter_animation_curve_impl.h" |
17 #include "webkit/renderer/compositor_bindings/web_filter_operations_impl.h" | 17 #include "webkit/renderer/compositor_bindings/web_filter_operations_impl.h" |
18 #include "webkit/renderer/compositor_bindings/web_float_animation_curve_impl.h" | 18 #include "webkit/renderer/compositor_bindings/web_float_animation_curve_impl.h" |
19 #include "webkit/renderer/compositor_bindings/web_image_layer_impl.h" | 19 #include "webkit/renderer/compositor_bindings/web_image_layer_impl.h" |
20 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" | 20 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" |
21 #include "webkit/renderer/compositor_bindings/web_nine_patch_layer_impl.h" | 21 #include "webkit/renderer/compositor_bindings/web_nine_patch_layer_impl.h" |
22 #include "webkit/renderer/compositor_bindings/web_scroll_offset_animation_curve_
impl.h" | |
23 #include "webkit/renderer/compositor_bindings/web_scrollbar_layer_impl.h" | 22 #include "webkit/renderer/compositor_bindings/web_scrollbar_layer_impl.h" |
24 #include "webkit/renderer/compositor_bindings/web_solid_color_layer_impl.h" | 23 #include "webkit/renderer/compositor_bindings/web_solid_color_layer_impl.h" |
25 #include "webkit/renderer/compositor_bindings/web_transform_animation_curve_impl
.h" | 24 #include "webkit/renderer/compositor_bindings/web_transform_animation_curve_impl
.h" |
26 #include "webkit/renderer/compositor_bindings/web_transform_operations_impl.h" | 25 #include "webkit/renderer/compositor_bindings/web_transform_operations_impl.h" |
27 | 26 |
28 using blink::WebAnimation; | 27 using blink::WebAnimation; |
29 using blink::WebAnimationCurve; | 28 using blink::WebAnimationCurve; |
30 using blink::WebContentLayer; | 29 using blink::WebContentLayer; |
31 using blink::WebContentLayerClient; | 30 using blink::WebContentLayerClient; |
32 using blink::WebExternalTextureLayer; | 31 using blink::WebExternalTextureLayer; |
33 using blink::WebExternalTextureLayerClient; | 32 using blink::WebExternalTextureLayerClient; |
34 using blink::WebFilterAnimationCurve; | 33 using blink::WebFilterAnimationCurve; |
35 using blink::WebFilterOperations; | 34 using blink::WebFilterOperations; |
36 using blink::WebFloatAnimationCurve; | 35 using blink::WebFloatAnimationCurve; |
37 using blink::WebImageLayer; | 36 using blink::WebImageLayer; |
38 using blink::WebNinePatchLayer; | 37 using blink::WebNinePatchLayer; |
39 using blink::WebLayer; | 38 using blink::WebLayer; |
40 using blink::WebScrollbar; | 39 using blink::WebScrollbar; |
41 using blink::WebScrollbarLayer; | 40 using blink::WebScrollbarLayer; |
42 using blink::WebScrollbarThemeGeometry; | 41 using blink::WebScrollbarThemeGeometry; |
43 using blink::WebScrollbarThemePainter; | 42 using blink::WebScrollbarThemePainter; |
44 #if WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED | |
45 using blink::WebScrollOffsetAnimationCurve; | |
46 #endif | |
47 using blink::WebSolidColorLayer; | 43 using blink::WebSolidColorLayer; |
48 using blink::WebTransformAnimationCurve; | 44 using blink::WebTransformAnimationCurve; |
49 using blink::WebTransformOperations; | 45 using blink::WebTransformOperations; |
50 | 46 |
51 namespace webkit { | 47 namespace webkit { |
52 | 48 |
53 WebCompositorSupportImpl::WebCompositorSupportImpl() {} | 49 WebCompositorSupportImpl::WebCompositorSupportImpl() {} |
54 | 50 |
55 WebCompositorSupportImpl::~WebCompositorSupportImpl() {} | 51 WebCompositorSupportImpl::~WebCompositorSupportImpl() {} |
56 | 52 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 99 |
104 WebFilterAnimationCurve* | 100 WebFilterAnimationCurve* |
105 WebCompositorSupportImpl::createFilterAnimationCurve() { | 101 WebCompositorSupportImpl::createFilterAnimationCurve() { |
106 return new WebFilterAnimationCurveImpl(); | 102 return new WebFilterAnimationCurveImpl(); |
107 } | 103 } |
108 | 104 |
109 WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() { | 105 WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() { |
110 return new WebFloatAnimationCurveImpl(); | 106 return new WebFloatAnimationCurveImpl(); |
111 } | 107 } |
112 | 108 |
113 #if WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED | |
114 WebScrollOffsetAnimationCurve* | |
115 WebCompositorSupportImpl::createScrollOffsetAnimationCurve( | |
116 blink::WebFloatPoint target_value, | |
117 blink::WebAnimationCurve::TimingFunctionType timing_function) { | |
118 return new WebScrollOffsetAnimationCurveImpl(target_value, timing_function); | |
119 } | |
120 #endif | |
121 | |
122 WebTransformAnimationCurve* | 109 WebTransformAnimationCurve* |
123 WebCompositorSupportImpl::createTransformAnimationCurve() { | 110 WebCompositorSupportImpl::createTransformAnimationCurve() { |
124 return new WebTransformAnimationCurveImpl(); | 111 return new WebTransformAnimationCurveImpl(); |
125 } | 112 } |
126 | 113 |
127 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { | 114 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { |
128 return new WebTransformOperationsImpl(); | 115 return new WebTransformOperationsImpl(); |
129 } | 116 } |
130 | 117 |
131 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { | 118 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { |
132 return new WebFilterOperationsImpl(); | 119 return new WebFilterOperationsImpl(); |
133 } | 120 } |
134 | 121 |
135 } // namespace webkit | 122 } // namespace webkit |
OLD | NEW |