Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Side by Side Diff: webkit/compositor_bindings/web_compositor_support_impl.cc

Issue 14651027: Move webkit/compositor_bindings into webkit/renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "webkit/compositor_bindings/web_compositor_support_impl.h"
6
7 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop_proxy.h"
9 #include "cc/animation/transform_operations.h"
10 #include "cc/base/thread_impl.h"
11 #include "cc/output/output_surface.h"
12 #include "cc/output/software_output_device.h"
13 #include "webkit/compositor_bindings/web_animation_impl.h"
14 #include "webkit/compositor_bindings/web_content_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"
17 #include "webkit/compositor_bindings/web_image_layer_impl.h"
18 #include "webkit/compositor_bindings/web_layer_impl.h"
19 #include "webkit/compositor_bindings/web_scrollbar_layer_impl.h"
20 #include "webkit/compositor_bindings/web_solid_color_layer_impl.h"
21 #include "webkit/compositor_bindings/web_transform_animation_curve_impl.h"
22 #include "webkit/compositor_bindings/web_transform_operations_impl.h"
23 #include "webkit/glue/webthread_impl.h"
24 #include "webkit/support/webkit_support.h"
25
26 using WebKit::WebAnimation;
27 using WebKit::WebAnimationCurve;
28 using WebKit::WebContentLayer;
29 using WebKit::WebContentLayerClient;
30 using WebKit::WebExternalTextureLayer;
31 using WebKit::WebExternalTextureLayerClient;
32 using WebKit::WebFloatAnimationCurve;
33 using WebKit::WebImageLayer;
34 using WebKit::WebLayer;
35 using WebKit::WebScrollbar;
36 using WebKit::WebScrollbarLayer;
37 using WebKit::WebScrollbarThemeGeometry;
38 using WebKit::WebScrollbarThemePainter;
39 using WebKit::WebSolidColorLayer;
40 using WebKit::WebTransformAnimationCurve;
41 using WebKit::WebTransformOperations;
42
43 namespace webkit {
44
45 WebCompositorSupportImpl::WebCompositorSupportImpl() {}
46
47 WebCompositorSupportImpl::~WebCompositorSupportImpl() {}
48
49 WebLayer* WebCompositorSupportImpl::createLayer() {
50 return new WebLayerImpl();
51 }
52
53 WebContentLayer* WebCompositorSupportImpl::createContentLayer(
54 WebContentLayerClient* client) {
55 return new WebContentLayerImpl(client);
56 }
57
58 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer(
59 WebExternalTextureLayerClient* client) {
60 return new WebExternalTextureLayerImpl(client, false);
61 }
62
63 WebExternalTextureLayer*
64 WebCompositorSupportImpl::createExternalTextureLayerForMailbox(
65 WebExternalTextureLayerClient* client) {
66 return new WebExternalTextureLayerImpl(client, true);
67 }
68
69 WebKit::WebImageLayer* WebCompositorSupportImpl::createImageLayer() {
70 return new WebImageLayerImpl();
71 }
72
73 WebSolidColorLayer* WebCompositorSupportImpl::createSolidColorLayer() {
74 return new WebSolidColorLayerImpl();
75 }
76
77 WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer(
78 WebScrollbar* scrollbar,
79 WebScrollbarThemePainter painter,
80 WebScrollbarThemeGeometry* geometry) {
81 return new WebScrollbarLayerImpl(scrollbar, painter, geometry);
82 }
83
84 WebAnimation* WebCompositorSupportImpl::createAnimation(
85 const WebKit::WebAnimationCurve& curve,
86 WebKit::WebAnimation::TargetProperty target,
87 int animation_id) {
88 return new WebAnimationImpl(curve, target, animation_id, 0);
89 }
90
91 WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() {
92 return new WebFloatAnimationCurveImpl();
93 }
94
95 WebTransformAnimationCurve*
96 WebCompositorSupportImpl::createTransformAnimationCurve() {
97 return new WebTransformAnimationCurveImpl();
98 }
99
100 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() {
101 return new WebTransformOperationsImpl();
102 }
103
104 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_compositor_support_impl.h ('k') | webkit/compositor_bindings/web_content_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698