| 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();
|
| };
|
|
|
| }
|
|
|