| 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 "sky/viewer/cc/web_compositor_support_impl.h" | 5 #include "sky/viewer/cc/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 "sky/viewer/cc/web_animation_impl.h" | 10 #include "sky/viewer/cc/web_animation_impl.h" |
| 11 #include "sky/viewer/cc/web_content_layer_impl.h" | 11 #include "sky/viewer/cc/web_content_layer_impl.h" |
| 12 #include "sky/viewer/cc/web_external_texture_layer_impl.h" | 12 #include "sky/viewer/cc/web_external_texture_layer_impl.h" |
| 13 #include "sky/viewer/cc/web_filter_animation_curve_impl.h" | 13 #include "sky/viewer/cc/web_filter_animation_curve_impl.h" |
| 14 #include "sky/viewer/cc/web_filter_operations_impl.h" | 14 #include "sky/viewer/cc/web_filter_operations_impl.h" |
| 15 #include "sky/viewer/cc/web_float_animation_curve_impl.h" | 15 #include "sky/viewer/cc/web_float_animation_curve_impl.h" |
| 16 #include "sky/viewer/cc/web_image_layer_impl.h" | 16 #include "sky/viewer/cc/web_image_layer_impl.h" |
| 17 #include "sky/viewer/cc/web_layer_impl.h" | 17 #include "sky/viewer/cc/web_layer_impl.h" |
| 18 #include "sky/viewer/cc/web_nine_patch_layer_impl.h" | |
| 19 #include "sky/viewer/cc/web_scroll_offset_animation_curve_impl.h" | 18 #include "sky/viewer/cc/web_scroll_offset_animation_curve_impl.h" |
| 20 #include "sky/viewer/cc/web_scrollbar_layer_impl.h" | 19 #include "sky/viewer/cc/web_scrollbar_layer_impl.h" |
| 21 #include "sky/viewer/cc/web_transform_animation_curve_impl.h" | 20 #include "sky/viewer/cc/web_transform_animation_curve_impl.h" |
| 22 #include "sky/viewer/cc/web_transform_operations_impl.h" | 21 #include "sky/viewer/cc/web_transform_operations_impl.h" |
| 23 #include "cc/output/output_surface.h" | 22 #include "cc/output/output_surface.h" |
| 24 #include "cc/output/software_output_device.h" | 23 #include "cc/output/software_output_device.h" |
| 25 | 24 |
| 26 using blink::WebCompositorAnimation; | 25 using blink::WebCompositorAnimation; |
| 27 using blink::WebCompositorAnimationCurve; | 26 using blink::WebCompositorAnimationCurve; |
| 28 using blink::WebContentLayer; | 27 using blink::WebContentLayer; |
| 29 using blink::WebContentLayerClient; | 28 using blink::WebContentLayerClient; |
| 30 using blink::WebExternalTextureLayer; | 29 using blink::WebExternalTextureLayer; |
| 31 using blink::WebExternalTextureLayerClient; | 30 using blink::WebExternalTextureLayerClient; |
| 32 using blink::WebFilterAnimationCurve; | 31 using blink::WebFilterAnimationCurve; |
| 33 using blink::WebFilterOperations; | 32 using blink::WebFilterOperations; |
| 34 using blink::WebFloatAnimationCurve; | 33 using blink::WebFloatAnimationCurve; |
| 35 using blink::WebImageLayer; | 34 using blink::WebImageLayer; |
| 36 using blink::WebNinePatchLayer; | |
| 37 using blink::WebLayer; | 35 using blink::WebLayer; |
| 38 using blink::WebScrollbar; | 36 using blink::WebScrollbar; |
| 39 using blink::WebScrollbarLayer; | 37 using blink::WebScrollbarLayer; |
| 40 using blink::WebScrollbarThemeGeometry; | 38 using blink::WebScrollbarThemeGeometry; |
| 41 using blink::WebScrollbarThemePainter; | 39 using blink::WebScrollbarThemePainter; |
| 42 using blink::WebScrollOffsetAnimationCurve; | 40 using blink::WebScrollOffsetAnimationCurve; |
| 43 using blink::WebTransformAnimationCurve; | 41 using blink::WebTransformAnimationCurve; |
| 44 using blink::WebTransformOperations; | 42 using blink::WebTransformOperations; |
| 45 | 43 |
| 46 namespace sky_viewer_cc { | 44 namespace sky_viewer_cc { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 62 | 60 |
| 63 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( | 61 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( |
| 64 WebExternalTextureLayerClient* client) { | 62 WebExternalTextureLayerClient* client) { |
| 65 return new WebExternalTextureLayerImpl(client); | 63 return new WebExternalTextureLayerImpl(client); |
| 66 } | 64 } |
| 67 | 65 |
| 68 blink::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { | 66 blink::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { |
| 69 return new WebImageLayerImpl(); | 67 return new WebImageLayerImpl(); |
| 70 } | 68 } |
| 71 | 69 |
| 72 blink::WebNinePatchLayer* WebCompositorSupportImpl::createNinePatchLayer() { | |
| 73 return new WebNinePatchLayerImpl(); | |
| 74 } | |
| 75 | |
| 76 WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer( | 70 WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer( |
| 77 WebScrollbar* scrollbar, | 71 WebScrollbar* scrollbar, |
| 78 WebScrollbarThemePainter painter, | 72 WebScrollbarThemePainter painter, |
| 79 WebScrollbarThemeGeometry* geometry) { | 73 WebScrollbarThemeGeometry* geometry) { |
| 80 return new WebScrollbarLayerImpl(scrollbar, painter, geometry); | 74 return new WebScrollbarLayerImpl(scrollbar, painter, geometry); |
| 81 } | 75 } |
| 82 | 76 |
| 83 WebScrollbarLayer* WebCompositorSupportImpl::createSolidColorScrollbarLayer( | 77 WebScrollbarLayer* WebCompositorSupportImpl::createSolidColorScrollbarLayer( |
| 84 WebScrollbar::Orientation orientation, | 78 WebScrollbar::Orientation orientation, |
| 85 int thumb_thickness, | 79 int thumb_thickness, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 115 |
| 122 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { | 116 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { |
| 123 return new WebTransformOperationsImpl(); | 117 return new WebTransformOperationsImpl(); |
| 124 } | 118 } |
| 125 | 119 |
| 126 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { | 120 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { |
| 127 return new WebFilterOperationsImpl(); | 121 return new WebFilterOperationsImpl(); |
| 128 } | 122 } |
| 129 | 123 |
| 130 } // namespace sky_viewer_cc | 124 } // namespace sky_viewer_cc |
| OLD | NEW |