| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "sky/viewer/cc/web_compositor_support_impl.h" | |
| 6 | |
| 7 #include "base/memory/scoped_ptr.h" | |
| 8 #include "base/message_loop/message_loop_proxy.h" | |
| 9 #include "cc/animation/transform_operations.h" | |
| 10 #include "sky/viewer/cc/web_animation_impl.h" | |
| 11 #include "sky/viewer/cc/web_content_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" | |
| 14 #include "sky/viewer/cc/web_filter_operations_impl.h" | |
| 15 #include "sky/viewer/cc/web_float_animation_curve_impl.h" | |
| 16 #include "sky/viewer/cc/web_image_layer_impl.h" | |
| 17 #include "sky/viewer/cc/web_layer_impl.h" | |
| 18 #include "sky/viewer/cc/web_transform_animation_curve_impl.h" | |
| 19 #include "sky/viewer/cc/web_transform_operations_impl.h" | |
| 20 #include "cc/output/output_surface.h" | |
| 21 #include "cc/output/software_output_device.h" | |
| 22 | |
| 23 using blink::WebCompositorAnimation; | |
| 24 using blink::WebCompositorAnimationCurve; | |
| 25 using blink::WebContentLayer; | |
| 26 using blink::WebContentLayerClient; | |
| 27 using blink::WebExternalTextureLayer; | |
| 28 using blink::WebExternalTextureLayerClient; | |
| 29 using blink::WebFilterAnimationCurve; | |
| 30 using blink::WebFilterOperations; | |
| 31 using blink::WebFloatAnimationCurve; | |
| 32 using blink::WebImageLayer; | |
| 33 using blink::WebLayer; | |
| 34 using blink::WebTransformAnimationCurve; | |
| 35 using blink::WebTransformOperations; | |
| 36 | |
| 37 namespace sky_viewer_cc { | |
| 38 | |
| 39 WebCompositorSupportImpl::WebCompositorSupportImpl() { | |
| 40 } | |
| 41 | |
| 42 WebCompositorSupportImpl::~WebCompositorSupportImpl() { | |
| 43 } | |
| 44 | |
| 45 WebLayer* WebCompositorSupportImpl::createLayer() { | |
| 46 return new WebLayerImpl(); | |
| 47 } | |
| 48 | |
| 49 WebContentLayer* WebCompositorSupportImpl::createContentLayer( | |
| 50 WebContentLayerClient* client) { | |
| 51 return new WebContentLayerImpl(client); | |
| 52 } | |
| 53 | |
| 54 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( | |
| 55 WebExternalTextureLayerClient* client) { | |
| 56 return new WebExternalTextureLayerImpl(client); | |
| 57 } | |
| 58 | |
| 59 blink::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { | |
| 60 return new WebImageLayerImpl(); | |
| 61 } | |
| 62 | |
| 63 WebCompositorAnimation* WebCompositorSupportImpl::createAnimation( | |
| 64 const blink::WebCompositorAnimationCurve& curve, | |
| 65 blink::WebCompositorAnimation::TargetProperty target, | |
| 66 int animation_id) { | |
| 67 return new WebCompositorAnimationImpl(curve, target, animation_id, 0); | |
| 68 } | |
| 69 | |
| 70 WebFilterAnimationCurve* | |
| 71 WebCompositorSupportImpl::createFilterAnimationCurve() { | |
| 72 return new WebFilterAnimationCurveImpl(); | |
| 73 } | |
| 74 | |
| 75 WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() { | |
| 76 return new WebFloatAnimationCurveImpl(); | |
| 77 } | |
| 78 | |
| 79 WebTransformAnimationCurve* | |
| 80 WebCompositorSupportImpl::createTransformAnimationCurve() { | |
| 81 return new WebTransformAnimationCurveImpl(); | |
| 82 } | |
| 83 | |
| 84 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { | |
| 85 return new WebTransformOperationsImpl(); | |
| 86 } | |
| 87 | |
| 88 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { | |
| 89 return new WebFilterOperationsImpl(); | |
| 90 } | |
| 91 | |
| 92 } // namespace sky_viewer_cc | |
| OLD | NEW |