Allow View to have a layer whose texture is updated externally.

This will be used to display texture produced by the GPU process for the RWHVV via the browser compositor.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/7231012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90362 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ui/gfx/compositor/layer.h b/ui/gfx/compositor/layer.h
index 72faad1..5b2418c9 100644
--- a/ui/gfx/compositor/layer.h
+++ b/ui/gfx/compositor/layer.h
@@ -55,6 +55,9 @@
   const Compositor* compositor() const { return compositor_; }
   Compositor* compositor() { return compositor_; }
 
+  // Passing NULL will cause the layer to get a texture from its compositor.
+  void SetTexture(ui::Texture* texture);
+
   // Resets the bitmap of the texture.
   void SetBitmap(const SkBitmap& bitmap, const gfx::Point& origin);