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

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

Issue 19463010: Revert 212008 "cc: Remove TextureLayer::SetTextureId and Texture..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 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 212317)
+++ trunk/src/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc (working copy)
@@ -35,7 +35,8 @@
void WebExternalTextureLayerImpl::clearTexture() {
TextureLayer *layer = static_cast<TextureLayer*>(layer_->layer());
- layer->ClearTexture();
+ layer->WillModifyTexture();
+ layer->SetTextureMailbox(cc::TextureMailbox());
}
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