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

Unified Diff: webkit/compositor_bindings/web_external_texture_layer_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/compositor_bindings/web_external_texture_layer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor_bindings/web_external_texture_layer_impl.cc
diff --git a/webkit/compositor_bindings/web_external_texture_layer_impl.cc b/webkit/compositor_bindings/web_external_texture_layer_impl.cc
index 979e754678c4a4ddf6e5a075d5092b678f57d591..4095aa000e741cc9a99dba71ff85374b1b3a8f05 100644
--- a/webkit/compositor_bindings/web_external_texture_layer_impl.cc
+++ b/webkit/compositor_bindings/web_external_texture_layer_impl.cc
@@ -16,13 +16,13 @@ using namespace cc;
namespace WebKit {
WebExternalTextureLayerImpl::WebExternalTextureLayerImpl(
- WebExternalTextureLayerClient* client)
+ WebExternalTextureLayerClient* client, bool single_buffer)
: client_(client) {
scoped_refptr<TextureLayer> layer;
if (client_)
- layer = TextureLayer::Create(this);
+ layer = TextureLayer::Create(this, single_buffer);
else
- layer = TextureLayer::Create(NULL);
+ layer = TextureLayer::Create(NULL, single_buffer);
layer->SetIsDrawable(true);
layer_.reset(new WebLayerImpl(layer));
}
« no previous file with comments | « webkit/compositor_bindings/web_external_texture_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698