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

Unified Diff: trunk/src/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc

Issue 224153003: Revert 261380 "cc: Remove TextureLayer::SetTextureId and Texture..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | « trunk/src/ui/compositor/layer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
===================================================================
--- trunk/src/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc (revision 261457)
+++ trunk/src/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc (working copy)
@@ -39,7 +39,9 @@
void WebExternalTextureLayerImpl::clearTexture() {
TextureLayer *layer = static_cast<TextureLayer*>(layer_->layer());
- layer->ClearTexture();
+ layer->WillModifyTexture();
+ layer->SetTextureMailbox(cc::TextureMailbox(),
+ scoped_ptr<cc::SingleReleaseCallback>());
}
void WebExternalTextureLayerImpl::setOpaque(bool opaque) {
« no previous file with comments | « trunk/src/ui/compositor/layer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698