OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/compositor_bindings/web_compositor_support_impl.h" | 5 #include "webkit/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_proxy.h" | 8 #include "base/message_loop_proxy.h" |
9 #include "cc/output_surface.h" | 9 #include "cc/output_surface.h" |
| 10 #include "cc/software_output_device.h" |
10 #include "cc/thread_impl.h" | 11 #include "cc/thread_impl.h" |
11 #include "cc/transform_operations.h" | 12 #include "cc/transform_operations.h" |
12 #include "webkit/compositor_bindings/web_animation_impl.h" | 13 #include "webkit/compositor_bindings/web_animation_impl.h" |
13 #include "webkit/compositor_bindings/web_compositor_support_software_output_devi
ce.h" | |
14 #include "webkit/compositor_bindings/web_content_layer_impl.h" | 14 #include "webkit/compositor_bindings/web_content_layer_impl.h" |
15 #include "webkit/compositor_bindings/web_external_texture_layer_impl.h" | 15 #include "webkit/compositor_bindings/web_external_texture_layer_impl.h" |
16 #include "webkit/compositor_bindings/web_float_animation_curve_impl.h" | 16 #include "webkit/compositor_bindings/web_float_animation_curve_impl.h" |
17 #include "webkit/compositor_bindings/web_image_layer_impl.h" | 17 #include "webkit/compositor_bindings/web_image_layer_impl.h" |
18 #include "webkit/compositor_bindings/web_io_surface_layer_impl.h" | 18 #include "webkit/compositor_bindings/web_io_surface_layer_impl.h" |
19 #include "webkit/compositor_bindings/web_layer_impl.h" | 19 #include "webkit/compositor_bindings/web_layer_impl.h" |
20 #include "webkit/compositor_bindings/web_scrollbar_layer_impl.h" | 20 #include "webkit/compositor_bindings/web_scrollbar_layer_impl.h" |
21 #include "webkit/compositor_bindings/web_solid_color_layer_impl.h" | 21 #include "webkit/compositor_bindings/web_solid_color_layer_impl.h" |
22 #include "webkit/compositor_bindings/web_transform_animation_curve_impl.h" | 22 #include "webkit/compositor_bindings/web_transform_animation_curve_impl.h" |
23 #include "webkit/compositor_bindings/web_transform_operations_impl.h" | 23 #include "webkit/compositor_bindings/web_transform_operations_impl.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 WebKit::WebCompositorOutputSurface* | 81 WebKit::WebCompositorOutputSurface* |
82 WebCompositorSupportImpl::createOutputSurfaceFor3D( | 82 WebCompositorSupportImpl::createOutputSurfaceFor3D( |
83 WebKit::WebGraphicsContext3D* context) { | 83 WebKit::WebGraphicsContext3D* context) { |
84 scoped_ptr<WebKit::WebGraphicsContext3D> context3d = make_scoped_ptr(context); | 84 scoped_ptr<WebKit::WebGraphicsContext3D> context3d = make_scoped_ptr(context); |
85 return new cc::OutputSurface(context3d.Pass()); | 85 return new cc::OutputSurface(context3d.Pass()); |
86 } | 86 } |
87 | 87 |
88 WebKit::WebCompositorOutputSurface* | 88 WebKit::WebCompositorOutputSurface* |
89 WebCompositorSupportImpl::createOutputSurfaceForSoftware() { | 89 WebCompositorSupportImpl::createOutputSurfaceForSoftware() { |
90 scoped_ptr<WebCompositorSupportSoftwareOutputDevice> software_device = | 90 scoped_ptr<cc::SoftwareOutputDevice> software_device = |
91 make_scoped_ptr(new WebCompositorSupportSoftwareOutputDevice); | 91 make_scoped_ptr(new cc::SoftwareOutputDevice); |
92 return new cc::OutputSurface( | 92 return new cc::OutputSurface(software_device.Pass()); |
93 software_device.PassAs<cc::SoftwareOutputDevice>()); | |
94 } | 93 } |
95 | 94 |
96 WebLayer* WebCompositorSupportImpl::createLayer() { | 95 WebLayer* WebCompositorSupportImpl::createLayer() { |
97 return new WebKit::WebLayerImpl(); | 96 return new WebKit::WebLayerImpl(); |
98 } | 97 } |
99 | 98 |
100 WebContentLayer* WebCompositorSupportImpl::createContentLayer( | 99 WebContentLayer* WebCompositorSupportImpl::createContentLayer( |
101 WebContentLayerClient* client) { | 100 WebContentLayerClient* client) { |
102 return new WebKit::WebContentLayerImpl(client); | 101 return new WebKit::WebContentLayerImpl(client); |
103 } | 102 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 WebTransformAnimationCurve* | 144 WebTransformAnimationCurve* |
146 WebCompositorSupportImpl::createTransformAnimationCurve() { | 145 WebCompositorSupportImpl::createTransformAnimationCurve() { |
147 return new WebKit::WebTransformAnimationCurveImpl(); | 146 return new WebKit::WebTransformAnimationCurveImpl(); |
148 } | 147 } |
149 | 148 |
150 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { | 149 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { |
151 return new WebTransformOperationsImpl(); | 150 return new WebTransformOperationsImpl(); |
152 } | 151 } |
153 | 152 |
154 } // namespace webkit | 153 } // namespace webkit |
OLD | NEW |