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

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: fix win_aura DCHECK() Created 8 years 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 | « gpu/command_buffer/service/texture_definition.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index fa621a3c5535eb89b729147aec2d70f55dfbfef3..1a2324f1cf2a7d8d37490eea0b1a2e4738fbd697 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -112,14 +112,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);
« no previous file with comments | « gpu/command_buffer/service/texture_definition.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698