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

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

Issue 12720022: cc: add layer usage hint to texture layer Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
OLDNEW
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/software_output_device.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 WebLayer* WebCompositorSupportImpl::createLayer() { 91 WebLayer* WebCompositorSupportImpl::createLayer() {
92 return new WebKit::WebLayerImpl(); 92 return new WebKit::WebLayerImpl();
93 } 93 }
94 94
95 WebContentLayer* WebCompositorSupportImpl::createContentLayer( 95 WebContentLayer* WebCompositorSupportImpl::createContentLayer(
96 WebContentLayerClient* client) { 96 WebContentLayerClient* client) {
97 return new WebKit::WebContentLayerImpl(client); 97 return new WebKit::WebContentLayerImpl(client);
98 } 98 }
99 99
100 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( 100 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer(
101 WebExternalTextureLayerClient* client) { 101 WebExternalTextureLayerClient* client, bool single_buffer) {
102 return new WebKit::WebExternalTextureLayerImpl(client); 102 return new WebKit::WebExternalTextureLayerImpl(client, single_buffer);
103 } 103 }
104 104
105 WebKit::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { 105 WebKit::WebImageLayer* WebCompositorSupportImpl::createImageLayer() {
106 return new WebKit::WebImageLayerImpl(); 106 return new WebKit::WebImageLayerImpl();
107 } 107 }
108 108
109 WebSolidColorLayer* WebCompositorSupportImpl::createSolidColorLayer() { 109 WebSolidColorLayer* WebCompositorSupportImpl::createSolidColorLayer() {
110 return new WebKit::WebSolidColorLayerImpl(); 110 return new WebKit::WebSolidColorLayerImpl();
111 } 111 }
112 112
(...skipping 23 matching lines...) Expand all
136 WebTransformAnimationCurve* 136 WebTransformAnimationCurve*
137 WebCompositorSupportImpl::createTransformAnimationCurve() { 137 WebCompositorSupportImpl::createTransformAnimationCurve() {
138 return new WebKit::WebTransformAnimationCurveImpl(); 138 return new WebKit::WebTransformAnimationCurveImpl();
139 } 139 }
140 140
141 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { 141 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() {
142 return new WebTransformOperationsImpl(); 142 return new WebTransformOperationsImpl();
143 } 143 }
144 144
145 } // namespace webkit 145 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_compositor_support_impl.h ('k') | webkit/compositor_bindings/web_external_texture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698