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

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

Issue 12374028: Allow WebExternalTextureLayerClient to work with mailboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Linker Fix Created 7 years, 8 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/animation/transform_operations.h" 9 #include "cc/animation/transform_operations.h"
10 #include "cc/base/thread_impl.h" 10 #include "cc/base/thread_impl.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 return new WebLayerImpl(); 50 return new WebLayerImpl();
51 } 51 }
52 52
53 WebContentLayer* WebCompositorSupportImpl::createContentLayer( 53 WebContentLayer* WebCompositorSupportImpl::createContentLayer(
54 WebContentLayerClient* client) { 54 WebContentLayerClient* client) {
55 return new WebContentLayerImpl(client); 55 return new WebContentLayerImpl(client);
56 } 56 }
57 57
58 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( 58 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer(
59 WebExternalTextureLayerClient* client) { 59 WebExternalTextureLayerClient* client) {
60 return new WebExternalTextureLayerImpl(client); 60 return new WebExternalTextureLayerImpl(client, false);
61 }
62
63 WebExternalTextureLayer*
64 WebCompositorSupportImpl::createExternalTextureLayerForMailbox(
65 WebExternalTextureLayerClient* client) {
66 return new WebExternalTextureLayerImpl(client, true);
61 } 67 }
62 68
63 WebKit::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { 69 WebKit::WebImageLayer* WebCompositorSupportImpl::createImageLayer() {
64 return new WebImageLayerImpl(); 70 return new WebImageLayerImpl();
65 } 71 }
66 72
67 WebSolidColorLayer* WebCompositorSupportImpl::createSolidColorLayer() { 73 WebSolidColorLayer* WebCompositorSupportImpl::createSolidColorLayer() {
68 return new WebSolidColorLayerImpl(); 74 return new WebSolidColorLayerImpl();
69 } 75 }
70 76
(...skipping 18 matching lines...) Expand all
89 WebTransformAnimationCurve* 95 WebTransformAnimationCurve*
90 WebCompositorSupportImpl::createTransformAnimationCurve() { 96 WebCompositorSupportImpl::createTransformAnimationCurve() {
91 return new WebTransformAnimationCurveImpl(); 97 return new WebTransformAnimationCurveImpl();
92 } 98 }
93 99
94 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { 100 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() {
95 return new WebTransformOperationsImpl(); 101 return new WebTransformOperationsImpl();
96 } 102 }
97 103
98 } // namespace webkit 104 } // 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