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

Unified Diff: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h

Issue 1974163003: Expose GpuMemoryBufferId through glGetImageivCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Created 4 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: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
index e91d658174720388eddfed0913b0f22bff8b823d..ea9fac95f94649a224a41059b3774c35203f7cc1 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
@@ -156,7 +156,7 @@ private:
// All information associated with a CHROMIUM image.
struct ImageInfo {
ImageInfo() {}
- ImageInfo(GLuint imageId, GLuint textureId);
+ ImageInfo(GLuint imageId, GLuint textureId, GLint gpuMemoryBufferId);
// Whether this structure holds references to a CHROMIUM image.
bool empty();
@@ -166,6 +166,9 @@ private:
// The id of the texture bound to the CHROMIUM image.
GLuint m_textureId = 0;
+
+ // The id of the GpuMemoryBuffer backing the texture and CHROMIUM image.
+ GLint m_gpuMemoryBufferId = -1;
};
#endif // USE_IOSURFACE_FOR_2D_CANVAS
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.cc ('k') | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698