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

Unified Diff: cc/resources/resource_provider.h

Issue 14409006: cc: Changes to use GL API for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Cosmetic fixes Created 7 years, 7 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
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;

Powered by Google App Engine
This is Rietveld 408576698