Makes copying layers clone external textures.

BUG=146428
TEST=none
[email protected]

Review URL: https://codereview.chromium.org/10910242

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156571 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index c150fb3..f9fcbc92 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -220,6 +220,7 @@
   // 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);