Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Unified Diff: views/view.h

Issue 6975051: Remove COMPOSITOR_2 flag, old compositor code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change conditional compile defines. Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/run_all_unittests.cc ('k') | views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.h
diff --git a/views/view.h b/views/view.h
index 84fd459efdef47614390459c8d84515ef15b7705..d5df2b98017d3e6bb26d394665361812b9addf64 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_;
« no previous file with comments | « views/run_all_unittests.cc ('k') | views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698