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 "cc/blink/web_compositor_support_impl.h" | 5 #include "cc/blink/web_compositor_support_impl.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "cc/animation/transform_operations.h" | 8 #include "cc/animation/transform_operations.h" |
9 #include "cc/blink/web_animation_impl.h" | 9 #include "cc/blink/web_animation_impl.h" |
10 #include "cc/blink/web_compositor_animation_player_impl.h" | 10 #include "cc/blink/web_compositor_animation_player_impl.h" |
11 #include "cc/blink/web_compositor_animation_timeline_impl.h" | 11 #include "cc/blink/web_compositor_animation_timeline_impl.h" |
12 #include "cc/blink/web_content_layer_impl.h" | 12 #include "cc/blink/web_content_layer_impl.h" |
13 #include "cc/blink/web_display_item_list_impl.h" | 13 #include "cc/blink/web_display_item_list_impl.h" |
14 #include "cc/blink/web_external_texture_layer_impl.h" | 14 #include "cc/blink/web_external_texture_layer_impl.h" |
15 #include "cc/blink/web_filter_animation_curve_impl.h" | 15 #include "cc/blink/web_filter_animation_curve_impl.h" |
16 #include "cc/blink/web_filter_operations_impl.h" | 16 #include "cc/blink/web_filter_operations_impl.h" |
17 #include "cc/blink/web_float_animation_curve_impl.h" | 17 #include "cc/blink/web_float_animation_curve_impl.h" |
18 #include "cc/blink/web_image_layer_impl.h" | 18 #include "cc/blink/web_image_layer_impl.h" |
19 #include "cc/blink/web_layer_impl.h" | 19 #include "cc/blink/web_layer_impl.h" |
20 #include "cc/blink/web_nine_patch_layer_impl.h" | |
21 #include "cc/blink/web_scroll_offset_animation_curve_impl.h" | 20 #include "cc/blink/web_scroll_offset_animation_curve_impl.h" |
22 #include "cc/blink/web_scrollbar_layer_impl.h" | 21 #include "cc/blink/web_scrollbar_layer_impl.h" |
23 #include "cc/blink/web_transform_animation_curve_impl.h" | 22 #include "cc/blink/web_transform_animation_curve_impl.h" |
24 #include "cc/blink/web_transform_operations_impl.h" | 23 #include "cc/blink/web_transform_operations_impl.h" |
25 #include "cc/output/output_surface.h" | 24 #include "cc/output/output_surface.h" |
26 #include "cc/output/software_output_device.h" | 25 #include "cc/output/software_output_device.h" |
27 | 26 |
28 using blink::WebCompositorAnimation; | 27 using blink::WebCompositorAnimation; |
29 using blink::WebCompositorAnimationCurve; | 28 using blink::WebCompositorAnimationCurve; |
30 using blink::WebCompositorAnimationPlayer; | 29 using blink::WebCompositorAnimationPlayer; |
31 using blink::WebCompositorAnimationTimeline; | 30 using blink::WebCompositorAnimationTimeline; |
32 using blink::WebContentLayer; | 31 using blink::WebContentLayer; |
33 using blink::WebContentLayerClient; | 32 using blink::WebContentLayerClient; |
34 using blink::WebDisplayItemList; | 33 using blink::WebDisplayItemList; |
35 using blink::WebExternalTextureLayer; | 34 using blink::WebExternalTextureLayer; |
36 using blink::WebExternalTextureLayerClient; | 35 using blink::WebExternalTextureLayerClient; |
37 using blink::WebFilterAnimationCurve; | 36 using blink::WebFilterAnimationCurve; |
38 using blink::WebFilterOperations; | 37 using blink::WebFilterOperations; |
39 using blink::WebFloatAnimationCurve; | 38 using blink::WebFloatAnimationCurve; |
40 using blink::WebImageLayer; | 39 using blink::WebImageLayer; |
41 using blink::WebNinePatchLayer; | |
42 using blink::WebLayer; | 40 using blink::WebLayer; |
43 using blink::WebScrollbar; | 41 using blink::WebScrollbar; |
44 using blink::WebScrollbarLayer; | 42 using blink::WebScrollbarLayer; |
45 using blink::WebScrollbarThemeGeometry; | 43 using blink::WebScrollbarThemeGeometry; |
46 using blink::WebScrollbarThemePainter; | 44 using blink::WebScrollbarThemePainter; |
47 using blink::WebScrollOffsetAnimationCurve; | 45 using blink::WebScrollOffsetAnimationCurve; |
48 using blink::WebTransformAnimationCurve; | 46 using blink::WebTransformAnimationCurve; |
49 using blink::WebTransformOperations; | 47 using blink::WebTransformOperations; |
50 | 48 |
51 namespace cc_blink { | 49 namespace cc_blink { |
(...skipping 15 matching lines...) Expand all Loading... |
67 | 65 |
68 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( | 66 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( |
69 WebExternalTextureLayerClient* client) { | 67 WebExternalTextureLayerClient* client) { |
70 return new WebExternalTextureLayerImpl(client); | 68 return new WebExternalTextureLayerImpl(client); |
71 } | 69 } |
72 | 70 |
73 blink::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { | 71 blink::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { |
74 return new WebImageLayerImpl(); | 72 return new WebImageLayerImpl(); |
75 } | 73 } |
76 | 74 |
77 blink::WebNinePatchLayer* WebCompositorSupportImpl::createNinePatchLayer() { | |
78 return new WebNinePatchLayerImpl(); | |
79 } | |
80 | |
81 WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer( | 75 WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer( |
82 WebScrollbar* scrollbar, | 76 WebScrollbar* scrollbar, |
83 WebScrollbarThemePainter painter, | 77 WebScrollbarThemePainter painter, |
84 WebScrollbarThemeGeometry* geometry) { | 78 WebScrollbarThemeGeometry* geometry) { |
85 return new WebScrollbarLayerImpl(scrollbar, painter, geometry); | 79 return new WebScrollbarLayerImpl(scrollbar, painter, geometry); |
86 } | 80 } |
87 | 81 |
88 WebScrollbarLayer* WebCompositorSupportImpl::createSolidColorScrollbarLayer( | 82 WebScrollbarLayer* WebCompositorSupportImpl::createSolidColorScrollbarLayer( |
89 WebScrollbar::Orientation orientation, | 83 WebScrollbar::Orientation orientation, |
90 int thumb_thickness, | 84 int thumb_thickness, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 WebCompositorSupportImpl::createAnimationPlayer() { | 135 WebCompositorSupportImpl::createAnimationPlayer() { |
142 return new WebCompositorAnimationPlayerImpl(); | 136 return new WebCompositorAnimationPlayerImpl(); |
143 } | 137 } |
144 | 138 |
145 WebCompositorAnimationTimeline* | 139 WebCompositorAnimationTimeline* |
146 WebCompositorSupportImpl::createAnimationTimeline() { | 140 WebCompositorSupportImpl::createAnimationTimeline() { |
147 return new WebCompositorAnimationTimelineImpl(); | 141 return new WebCompositorAnimationTimelineImpl(); |
148 } | 142 } |
149 | 143 |
150 } // namespace cc_blink | 144 } // namespace cc_blink |
OLD | NEW |