| 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" |
| 11 #include "cc/output/software_output_device.h" | 11 #include "cc/output/software_output_device.h" |
| 12 #include "content/renderer/compositor_bindings/web_animation_impl.h" | 12 #include "content/renderer/compositor_bindings/web_animation_impl.h" |
| 13 #include "content/renderer/compositor_bindings/web_content_layer_impl.h" | 13 #include "content/renderer/compositor_bindings/web_content_layer_impl.h" |
| 14 #include "content/renderer/compositor_bindings/web_external_texture_layer_impl.h
" | 14 #include "content/renderer/compositor_bindings/web_external_texture_layer_impl.h
" |
| 15 #include "content/renderer/compositor_bindings/web_filter_animation_curve_impl.h
" | 15 #include "content/renderer/compositor_bindings/web_filter_animation_curve_impl.h
" |
| 16 #include "content/renderer/compositor_bindings/web_filter_operations_impl.h" | 16 #include "content/renderer/compositor_bindings/web_filter_operations_impl.h" |
| 17 #include "content/renderer/compositor_bindings/web_float_animation_curve_impl.h" | 17 #include "content/renderer/compositor_bindings/web_float_animation_curve_impl.h" |
| 18 #include "content/renderer/compositor_bindings/web_image_layer_impl.h" | 18 #include "content/renderer/compositor_bindings/web_image_layer_impl.h" |
| 19 #include "content/renderer/compositor_bindings/web_layer_impl.h" | 19 #include "content/renderer/compositor_bindings/web_layer_impl.h" |
| 20 #include "content/renderer/compositor_bindings/web_nine_patch_layer_impl.h" | 20 #include "content/renderer/compositor_bindings/web_nine_patch_layer_impl.h" |
| 21 #include "content/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 "content/renderer/compositor_bindings/web_scrollbar_layer_impl.h" | 22 #include "content/renderer/compositor_bindings/web_scrollbar_layer_impl.h" |
| 23 #include "content/renderer/compositor_bindings/web_solid_color_layer_impl.h" | |
| 24 #include "content/renderer/compositor_bindings/web_transform_animation_curve_imp
l.h" | 23 #include "content/renderer/compositor_bindings/web_transform_animation_curve_imp
l.h" |
| 25 #include "content/renderer/compositor_bindings/web_transform_operations_impl.h" | 24 #include "content/renderer/compositor_bindings/web_transform_operations_impl.h" |
| 26 | 25 |
| 27 using blink::WebCompositorAnimation; | 26 using blink::WebCompositorAnimation; |
| 28 using blink::WebCompositorAnimationCurve; | 27 using blink::WebCompositorAnimationCurve; |
| 29 using blink::WebContentLayer; | 28 using blink::WebContentLayer; |
| 30 using blink::WebContentLayerClient; | 29 using blink::WebContentLayerClient; |
| 31 using blink::WebExternalTextureLayer; | 30 using blink::WebExternalTextureLayer; |
| 32 using blink::WebExternalTextureLayerClient; | 31 using blink::WebExternalTextureLayerClient; |
| 33 using blink::WebFilterAnimationCurve; | 32 using blink::WebFilterAnimationCurve; |
| 34 using blink::WebFilterOperations; | 33 using blink::WebFilterOperations; |
| 35 using blink::WebFloatAnimationCurve; | 34 using blink::WebFloatAnimationCurve; |
| 36 using blink::WebImageLayer; | 35 using blink::WebImageLayer; |
| 37 using blink::WebNinePatchLayer; | 36 using blink::WebNinePatchLayer; |
| 38 using blink::WebLayer; | 37 using blink::WebLayer; |
| 39 using blink::WebScrollbar; | 38 using blink::WebScrollbar; |
| 40 using blink::WebScrollbarLayer; | 39 using blink::WebScrollbarLayer; |
| 41 using blink::WebScrollbarThemeGeometry; | 40 using blink::WebScrollbarThemeGeometry; |
| 42 using blink::WebScrollbarThemePainter; | 41 using blink::WebScrollbarThemePainter; |
| 43 using blink::WebScrollOffsetAnimationCurve; | 42 using blink::WebScrollOffsetAnimationCurve; |
| 44 using blink::WebSolidColorLayer; | |
| 45 using blink::WebTransformAnimationCurve; | 43 using blink::WebTransformAnimationCurve; |
| 46 using blink::WebTransformOperations; | 44 using blink::WebTransformOperations; |
| 47 | 45 |
| 48 namespace content { | 46 namespace content { |
| 49 | 47 |
| 50 WebCompositorSupportImpl::WebCompositorSupportImpl() { | 48 WebCompositorSupportImpl::WebCompositorSupportImpl() { |
| 51 } | 49 } |
| 52 | 50 |
| 53 WebCompositorSupportImpl::~WebCompositorSupportImpl() { | 51 WebCompositorSupportImpl::~WebCompositorSupportImpl() { |
| 54 } | 52 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 68 } | 66 } |
| 69 | 67 |
| 70 blink::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { | 68 blink::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { |
| 71 return new WebImageLayerImpl(); | 69 return new WebImageLayerImpl(); |
| 72 } | 70 } |
| 73 | 71 |
| 74 blink::WebNinePatchLayer* WebCompositorSupportImpl::createNinePatchLayer() { | 72 blink::WebNinePatchLayer* WebCompositorSupportImpl::createNinePatchLayer() { |
| 75 return new WebNinePatchLayerImpl(); | 73 return new WebNinePatchLayerImpl(); |
| 76 } | 74 } |
| 77 | 75 |
| 78 WebSolidColorLayer* WebCompositorSupportImpl::createSolidColorLayer() { | |
| 79 return new WebSolidColorLayerImpl(); | |
| 80 } | |
| 81 | |
| 82 WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer( | 76 WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer( |
| 83 WebScrollbar* scrollbar, | 77 WebScrollbar* scrollbar, |
| 84 WebScrollbarThemePainter painter, | 78 WebScrollbarThemePainter painter, |
| 85 WebScrollbarThemeGeometry* geometry) { | 79 WebScrollbarThemeGeometry* geometry) { |
| 86 return new WebScrollbarLayerImpl(scrollbar, painter, geometry); | 80 return new WebScrollbarLayerImpl(scrollbar, painter, geometry); |
| 87 } | 81 } |
| 88 | 82 |
| 89 WebScrollbarLayer* WebCompositorSupportImpl::createSolidColorScrollbarLayer( | 83 WebScrollbarLayer* WebCompositorSupportImpl::createSolidColorScrollbarLayer( |
| 90 WebScrollbar::Orientation orientation, | 84 WebScrollbar::Orientation orientation, |
| 91 int thumb_thickness, | 85 int thumb_thickness, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { | 122 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { |
| 129 return new WebTransformOperationsImpl(); | 123 return new WebTransformOperationsImpl(); |
| 130 } | 124 } |
| 131 | 125 |
| 132 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { | 126 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { |
| 133 return new WebFilterOperationsImpl(); | 127 return new WebFilterOperationsImpl(); |
| 134 } | 128 } |
| 135 | 129 |
| 136 } // namespace content | 130 } // namespace content |
| 137 | 131 |
| OLD | NEW |