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

Unified Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h

Issue 14456004: GPU client side changes for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Created 7 years, 8 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: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
index e04e9e2141c39f58930ce37241af00014f9fdd5a..32472ad3791146312ac97d0116a56b46bd580e9c 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
@@ -102,6 +102,9 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl
virtual void bufferData(WGC3Denum target, WGC3Dsizeiptr size,
const void* data, WGC3Denum usage);
+ virtual void imageBufferDataCHROMIUM(WGC3Denum target,
+ WGC3Dsizei width,
+ WGC3Dsizei height);
virtual void bufferSubData(WGC3Denum target, WGC3Dintptr offset,
WGC3Dsizeiptr size, const void* data);
@@ -556,6 +559,9 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl
// instead of going through WebGraphicsContext3D.
void ClearContext();
+ void CreateImageForGpuMemoryBuffer(WGC3Dsizei width, WGC3Dsizei height);
+ void DeleteImageForGpuMemoryBuffer();
+ void DeleteImageForGpuMemoryBuffer(WebGLId id);
bool is_offscreen_;
// Only used when not offscreen.

Powered by Google App Engine
This is Rietveld 408576698