Chromium Code Reviews| Index: cc/resources/resource_provider.h |
| diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h |
| index 6f146d916ba64aa3a9cde12c015fece97e6b66a4..f683a89570af22aaaa29a71fe7c01901abf6637c 100644 |
| --- a/cc/resources/resource_provider.h |
| +++ b/cc/resources/resource_provider.h |
| @@ -292,6 +292,14 @@ class CC_EXPORT ResourceProvider { |
| bool DidSetPixelsComplete(ResourceId id); |
| void AbortSetPixels(ResourceId id); |
| + // Methods for GLImage zero-copy API. |
|
reveman
2013/05/20 23:16:01
I think these functions could need a bit more of a
kaanb
2013/05/21 00:52:29
Done.
|
| + void AcquireImage(ResourceId id); |
| + void ReleaseImage(ResourceId id); |
| + uint8_t* MapImage(ResourceId id); |
| + void UnmapImage(ResourceId id); |
| + void BindImage(ResourceId id); |
| + int GetImageStride(ResourceId id); |
| + |
| // For tests only! This prevents detecting uninitialized reads. |
| // Use SetPixels or LockForWrite to allocate implicitly. |
| void AllocateForTesting(ResourceId id); |
| @@ -347,6 +355,7 @@ class CC_EXPORT ResourceProvider { |
| GLenum format; |
| // TODO(skyostil): Use a separate sampler object for filter state. |
| GLenum filter; |
| + unsigned image_id; |
| ResourceType type; |
| }; |
| typedef base::hash_map<ResourceId, Resource> ResourceMap; |