diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-02 22:04:02 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-02 22:04:02 +0000 |
commit | 6b8b0f08cfebb37c13f6c835c37d9ed9e982fc37 (patch) | |
tree | 03917919f3b3a4719a3d3389663af3b9dfc956cd /views/view.h | |
parent | 0ee6a765069ec9f5d1301294770ce92589eee023 (diff) | |
download | chromium_src-6b8b0f08cfebb37c13f6c835c37d9ed9e982fc37.zip chromium_src-6b8b0f08cfebb37c13f6c835c37d9ed9e982fc37.tar.gz chromium_src-6b8b0f08cfebb37c13f6c835c37d9ed9e982fc37.tar.bz2 |
Adds ability for a view to paint to a texture even it if doesn't have
a transform.
BUG=none
TEST=none
R=ben@chromium.org,wjmaclean@chromium.org
Review URL: http://codereview.chromium.org/7074048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87701 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.h')
-rw-r--r-- | views/view.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/views/view.h b/views/view.h index 016d74e..ecdd2e4 100644 --- a/views/view.h +++ b/views/view.h @@ -338,6 +338,12 @@ class View : public AcceleratorTarget { // Sets the transform to the supplied transform. void SetTransform(const ui::Transform& transform); + // Sets whether this view paints to a texture. A view paints to a texture if + // either of the following are true: + // . the view has a non-identity transform. + // . SetPaintToTexture(true) has been invoked. + void SetPaintToTexture(bool value); + // RTL positioning ----------------------------------------------------------- // Methods for accessing the bounds and position of the view, relative to its @@ -1386,6 +1392,9 @@ class View : public AcceleratorTarget { // Is the texture out of date? bool texture_needs_updating_; + // Should we paint to a texture? See description above setter for details. + bool paint_to_texture_; + // Accelerators -------------------------------------------------------------- // true if when we were added to hierarchy we were without focus manager |