summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-28 03:46:08 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-28 03:46:08 +0000
commit536987c84afc25114a63d61c5ae1868d60226216 (patch)
treef47b2b8fbb37fbde6554f076f5240e23cd3ddbf5 /ui
parent592a310996c99be24381de7aa05f347c12f20155 (diff)
downloadchromium_src-536987c84afc25114a63d61c5ae1868d60226216.zip
chromium_src-536987c84afc25114a63d61c5ae1868d60226216.tar.gz
chromium_src-536987c84afc25114a63d61c5ae1868d60226216.tar.bz2
Makes it so that if the size of a view with a layer changes or on creating
the layer we force the complete bounds to be painted. This way the Compositors don't have to worry about partial update of a size they've never seen. This matches old logic I removed thinking it was no longer needed. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/7272013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/gfx/compositor/layer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gfx/compositor/layer.h b/ui/gfx/compositor/layer.h
index 5b2418c..00574cc 100644
--- a/ui/gfx/compositor/layer.h
+++ b/ui/gfx/compositor/layer.h
@@ -57,6 +57,7 @@ class Layer {
// Passing NULL will cause the layer to get a texture from its compositor.
void SetTexture(ui::Texture* texture);
+ const ui::Texture* texture() const { return texture_.get(); }
// Resets the bitmap of the texture.
void SetBitmap(const SkBitmap& bitmap, const gfx::Point& origin);