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

Unified Diff: cc/layers/texture_layer_client.h

Issue 12670009: cc: Chromify TextureLayerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 months 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/layers/texture_layer.cc ('k') | ui/compositor/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer_client.h
diff --git a/cc/layers/texture_layer_client.h b/cc/layers/texture_layer_client.h
index f0a9ee0c507c3e45f683dcfb3685bfe86b059800..39f1e80d4cb6997db6445379e205090b71b2c56b 100644
--- a/cc/layers/texture_layer_client.h
+++ b/cc/layers/texture_layer_client.h
@@ -5,27 +5,26 @@
#ifndef CC_LAYERS_TEXTURE_LAYER_CLIENT_H_
#define CC_LAYERS_TEXTURE_LAYER_CLIENT_H_
-namespace WebKit {
-class WebGraphicsContext3D;
-}
+namespace WebKit { class WebGraphicsContext3D; }
namespace cc {
class ResourceUpdateQueue;
class TextureLayerClient {
-public:
- // Called to prepare this layer's texture for compositing. The client may queue a texture
- // upload or copy on the ResourceUpdateQueue.
- // Returns the texture ID to be used for compositing.
- virtual unsigned prepareTexture(ResourceUpdateQueue&) = 0;
-
- // Returns the context that is providing the texture. Used for rate limiting and detecting lost context.
- virtual WebKit::WebGraphicsContext3D* context() = 0;
-
-protected:
- virtual ~TextureLayerClient() { }
+ public:
+ // Called to prepare this layer's texture for compositing. The client may
+ // queue a texture upload or copy on the ResourceUpdateQueue.
+ // Returns the texture ID to be used for compositing.
+ virtual unsigned PrepareTexture(ResourceUpdateQueue* queue) = 0;
+
+ // Returns the context that is providing the texture. Used for rate limiting
+ // and detecting lost context.
+ virtual WebKit::WebGraphicsContext3D* Context3d() = 0;
+
+ protected:
+ virtual ~TextureLayerClient() {}
};
-}
+} // namespace cc
#endif // CC_LAYERS_TEXTURE_LAYER_CLIENT_H_
« no previous file with comments | « cc/layers/texture_layer.cc ('k') | ui/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698