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

Unified Diff: ui/compositor/layer.h

Issue 10910242: Makes copying layers clone external textures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 8 years, 3 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
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index c150fb3733c6680161acfc9ec77c31f982772608..f9fcbc9208246dbb3eb655747676951ea4f70368 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -220,6 +220,7 @@ class COMPOSITOR_EXPORT Layer
// Assigns a new external texture. |texture| can be NULL to disable external
// updates.
void SetExternalTexture(ui::Texture* texture);
+ ui::Texture* external_texture() { return texture_.get(); }
// Sets the layer's fill color. May only be called for LAYER_SOLID_COLOR.
void SetColor(SkColor color);

Powered by Google App Engine
This is Rietveld 408576698