diff options
author | wjmaclean@chromium.org <wjmaclean@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-03 21:19:32 +0000 |
---|---|---|
committer | wjmaclean@chromium.org <wjmaclean@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-03 21:19:32 +0000 |
commit | 6483195d6640a3727cc6e6e717718bd08036154b (patch) | |
tree | 06e3051b10858270a1e33c1ddf601f8259bbe21d /views/view.h | |
parent | c80ae8e8d69a89f9f97133ac076b6904c0a27fee (diff) | |
download | chromium_src-6483195d6640a3727cc6e6e717718bd08036154b.zip chromium_src-6483195d6640a3727cc6e6e717718bd08036154b.tar.gz chromium_src-6483195d6640a3727cc6e6e717718bd08036154b.tar.bz2 |
First draft of patch for setting texture_needs_updating_.
BUG=
TEST=
Review URL: http://codereview.chromium.org/7058019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87865 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.h')
-rw-r--r-- | views/view.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/views/view.h b/views/view.h index d60fa43..f000b85 100644 --- a/views/view.h +++ b/views/view.h @@ -1009,9 +1009,17 @@ class View : public AcceleratorTarget { // Accelerated painting ------------------------------------------------------ #if !defined(COMPOSITOR_2) + // Performs accelerated painting using the compositor. virtual void PaintComposite(ui::Compositor* compositor); #else + + // Invoked from SchedulePaintInRect. Invokes SchedulePaintInternal on the + // parent. This does not mark the texture as dirty. It's assumed the caller + // has done this. You should not need to invoke this, use SchedulePaint or + // SchedulePaintInRect instead. + virtual void SchedulePaintInternal(const gfx::Rect& r); + // If our texture is out of date invokes Paint() with a canvas that is then // copied to the texture. If the texture is not out of date recursively // descends in case any children needed their textures updated. @@ -1222,6 +1230,11 @@ class View : public AcceleratorTarget { // Accelerated painting ------------------------------------------------------ +#if defined(COMPOSITOR_2) + // Marks the texture this view draws into as dirty. + void MarkTextureDirty(); +#endif + // Releases the texture of this and recurses through all children. void ResetTexture(); |