OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/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" |
(...skipping 22 matching lines...) Expand all Loading... |
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 | |
44 using blink::WebScrollOffsetAnimationCurve; | 43 using blink::WebScrollOffsetAnimationCurve; |
45 #endif | |
46 using blink::WebSolidColorLayer; | 44 using blink::WebSolidColorLayer; |
47 using blink::WebTransformAnimationCurve; | 45 using blink::WebTransformAnimationCurve; |
48 using blink::WebTransformOperations; | 46 using blink::WebTransformOperations; |
49 | 47 |
50 namespace content { | 48 namespace content { |
51 | 49 |
52 WebCompositorSupportImpl::WebCompositorSupportImpl() { | 50 WebCompositorSupportImpl::WebCompositorSupportImpl() { |
53 } | 51 } |
54 | 52 |
55 WebCompositorSupportImpl::~WebCompositorSupportImpl() { | 53 WebCompositorSupportImpl::~WebCompositorSupportImpl() { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 106 |
109 WebFilterAnimationCurve* | 107 WebFilterAnimationCurve* |
110 WebCompositorSupportImpl::createFilterAnimationCurve() { | 108 WebCompositorSupportImpl::createFilterAnimationCurve() { |
111 return new WebFilterAnimationCurveImpl(); | 109 return new WebFilterAnimationCurveImpl(); |
112 } | 110 } |
113 | 111 |
114 WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() { | 112 WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() { |
115 return new WebFloatAnimationCurveImpl(); | 113 return new WebFloatAnimationCurveImpl(); |
116 } | 114 } |
117 | 115 |
118 #if WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED | |
119 WebScrollOffsetAnimationCurve* | 116 WebScrollOffsetAnimationCurve* |
120 WebCompositorSupportImpl::createScrollOffsetAnimationCurve( | 117 WebCompositorSupportImpl::createScrollOffsetAnimationCurve( |
121 blink::WebFloatPoint target_value, | 118 blink::WebFloatPoint target_value, |
122 blink::WebAnimationCurve::TimingFunctionType timing_function) { | 119 blink::WebAnimationCurve::TimingFunctionType timing_function) { |
123 return new WebScrollOffsetAnimationCurveImpl(target_value, timing_function); | 120 return new WebScrollOffsetAnimationCurveImpl(target_value, timing_function); |
124 } | 121 } |
125 #endif | |
126 | 122 |
127 WebTransformAnimationCurve* | 123 WebTransformAnimationCurve* |
128 WebCompositorSupportImpl::createTransformAnimationCurve() { | 124 WebCompositorSupportImpl::createTransformAnimationCurve() { |
129 return new WebTransformAnimationCurveImpl(); | 125 return new WebTransformAnimationCurveImpl(); |
130 } | 126 } |
131 | 127 |
132 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { | 128 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { |
133 return new WebTransformOperationsImpl(); | 129 return new WebTransformOperationsImpl(); |
134 } | 130 } |
135 | 131 |
136 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { | 132 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { |
137 return new WebFilterOperationsImpl(); | 133 return new WebFilterOperationsImpl(); |
138 } | 134 } |
139 | 135 |
140 } // namespace content | 136 } // namespace content |
141 | 137 |
OLD | NEW |