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

Unified Diff: ui/compositor/compositor.h

Issue 11194042: Implement TextureImageTransportSurface using texture mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased, fixed post sub buffer, use multiple mailbox names 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
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 10f8efcab6fb67f5283fc757076654a060d97308..20231657341cfc7fa24a60a054c597f63a0c8834 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -104,14 +104,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);

Powered by Google App Engine
This is Rietveld 408576698