summaryrefslogtreecommitdiffstats
path: root/views/view.h
diff options
context:
space:
mode:
authorwjmaclean@chromium.org <wjmaclean@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-10 16:43:27 +0000
committerwjmaclean@chromium.org <wjmaclean@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-10 16:43:27 +0000
commitc3870f4f8eb28a1e1685426368758e2cd8754e03 (patch)
tree251094ddb06d759955749a30b9cb271feff0a581 /views/view.h
parent9a7a1f3ff43d10f7b8f5071fdd0d903691bd72ec (diff)
downloadchromium_src-c3870f4f8eb28a1e1685426368758e2cd8754e03.zip
chromium_src-c3870f4f8eb28a1e1685426368758e2cd8754e03.tar.gz
chromium_src-c3870f4f8eb28a1e1685426368758e2cd8754e03.tar.bz2
Remove COMPOSITOR_2 flag, old compositor code.
BUG=none TEST=compiles, run manually Review URL: http://codereview.chromium.org/6975051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.h')
-rw-r--r--views/view.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/views/view.h b/views/view.h
index 84fd459..d5df2b9 100644
--- a/views/view.h
+++ b/views/view.h
@@ -1002,12 +1002,6 @@ 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
@@ -1030,7 +1024,6 @@ class View : public AcceleratorTarget {
// Invoked from |PaintComposite| if this view has a texture and before the
// texture is rendered by the compositor.
virtual void OnWillCompositeTexture();
-#endif
// Returns true if this view should paint using a texture.
virtual bool ShouldPaintToTexture() const;
@@ -1229,10 +1222,8 @@ 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();
@@ -1384,22 +1375,12 @@ class View : public AcceleratorTarget {
// Accelerated painting ------------------------------------------------------
-#if !defined(COMPOSITOR_2)
- // Each transformed view will maintain its own canvas.
- scoped_ptr<gfx::Canvas> canvas_;
-
- // Texture ID used for accelerated painting.
- // TODO(sadrul): This will eventually be replaced by an abstract texture
- // object.
- ui::TextureID texture_id_;
-#else
scoped_ptr<ui::Texture> texture_;
// If not empty and Paint() is invoked, the canvas is created with the
// specified size.
// TODO(sky): this should be passed in.
gfx::Rect texture_clip_rect_;
-#endif
// Is the texture out of date?
bool texture_needs_updating_;