Index: ui/compositor/compositor.h |
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h |
index c5dc3ba076a19d948fe0e2a811291ea65d0cd9d9..a1927fe1eabc9febee4c8465a539cc9f6187e176 100644 |
--- a/ui/compositor/compositor.h |
+++ b/ui/compositor/compositor.h |
@@ -103,14 +103,17 @@ class COMPOSITOR_EXPORT Texture : public base::RefCounted<Texture> { |
virtual unsigned int PrepareTexture() = 0; |
virtual WebKit::WebGraphicsContext3D* HostContext3D() = 0; |
+ virtual void Consume(const gfx::Size& new_size) {} |
+ virtual void Produce() {} |
+ |
protected: |
virtual ~Texture(); |
+ gfx::Size size_; // in pixel |
private: |
friend class base::RefCounted<Texture>; |
bool flipped_; |
- gfx::Size size_; // in pixel |
float device_scale_factor_; |
DISALLOW_COPY_AND_ASSIGN(Texture); |