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

Unified Diff: cc/io_surface_draw_quad.h

Issue 11411050: cc: Make the DrawQuad subclasses into struct-like classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 1 month 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 | « cc/heads_up_display_layer_impl.cc ('k') | cc/io_surface_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/io_surface_draw_quad.h
diff --git a/cc/io_surface_draw_quad.h b/cc/io_surface_draw_quad.h
index 432960c06c98c6db2964b29dab771a6f2e0b95bb..2bce6b706b7b6850947dbeafd3fbdc2329b9161b 100644
--- a/cc/io_surface_draw_quad.h
+++ b/cc/io_surface_draw_quad.h
@@ -13,25 +13,37 @@
namespace cc {
class CC_EXPORT IOSurfaceDrawQuad : public DrawQuad {
-public:
- enum Orientation {
- Flipped,
- Unflipped
- };
-
- static scoped_ptr<IOSurfaceDrawQuad> create(const SharedQuadState*, const gfx::Rect&, const gfx::Rect& opaqueRect, const gfx::Size& ioSurfaceSize, unsigned ioSurfaceTextureId, Orientation);
-
- gfx::Size ioSurfaceSize() const { return m_ioSurfaceSize; }
- unsigned ioSurfaceTextureId() const { return m_ioSurfaceTextureId; }
- Orientation orientation() const { return m_orientation; }
-
- static const IOSurfaceDrawQuad* materialCast(const DrawQuad*);
-private:
- IOSurfaceDrawQuad(const SharedQuadState*, const gfx::Rect&, const gfx::Rect& opaqueRect, const gfx::Size& ioSurfaceSize, unsigned ioSurfaceTextureId, Orientation);
-
- gfx::Size m_ioSurfaceSize;
- unsigned m_ioSurfaceTextureId;
- Orientation m_orientation;
+ public:
+ enum Orientation {
+ FLIPPED,
+ UNFLIPPED
+ };
+
+ static scoped_ptr<IOSurfaceDrawQuad> Create();
+
+ void SetNew(const SharedQuadState* shared_quad_state,
+ gfx::Rect rect,
+ gfx::Rect opaque_rect,
+ gfx::Size io_surface_size,
+ unsigned io_surface_texture_id,
+ Orientation orientation);
+
+ void SetAll(const SharedQuadState* shared_quad_state,
+ gfx::Rect rect,
+ gfx::Rect opaque_rect,
+ gfx::Rect visible_rect,
+ bool needs_blending,
+ gfx::Size io_surface_size,
+ unsigned io_surface_texture_id,
+ Orientation orientation);
+
+ gfx::Size io_surface_size;
+ unsigned io_surface_texture_id;
+ Orientation orientation;
+
+ static const IOSurfaceDrawQuad* MaterialCast(const DrawQuad*);
+ private:
+ IOSurfaceDrawQuad();
};
}
« no previous file with comments | « cc/heads_up_display_layer_impl.cc ('k') | cc/io_surface_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698