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

Unified Diff: ui/compositor/layer.cc

Issue 13972011: Aura: Keep the external texture until we've updated compositor references to it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 9bb17daf8e48bf937adbb2d3b63823184a183a21..c96ac53612f229a1994e0cadef309be998b24e21 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -487,6 +487,10 @@ void Layer::SwitchCCLayerForTest() {
}
void Layer::SetExternalTexture(Texture* texture) {
+ // Hold a ref to the old |Texture| until we have updated all
+ // compositor references to the texture id that it holds.
+ scoped_refptr<ui::Texture> old_texture = texture_;
+
DCHECK_EQ(type_, LAYER_TEXTURED);
DCHECK(!solid_color_layer_);
bool has_texture = !!texture;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698