Index: cc/texture_layer_client.h |
diff --git a/cc/texture_layer_client.h b/cc/texture_layer_client.h |
index ec3447fee664fac68fe0a0760e6f80b56d2c88d5..a3d91b736f798cf83f3cf4226bcafdfea41b8f58 100644 |
--- a/cc/texture_layer_client.h |
+++ b/cc/texture_layer_client.h |
@@ -5,27 +5,26 @@ |
#ifndef CC_TEXTURE_LAYER_CLIENT_H_ |
#define CC_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* Context() = 0; |
danakj
2013/03/17 16:15:10
I've been naming functions like this "Context3d()"
enne (OOO)
2013/03/17 19:06:41
Sounds good. Done.
|
+ |
+ protected: |
+ virtual ~TextureLayerClient() {} |
}; |
-} |
+} // namespace cc |
#endif // CC_TEXTURE_LAYER_CLIENT_H_ |