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

Unified Diff: content/common/gpu/gpu_channel_manager.h

Issue 302603004: Plumb GpuMemoryBuffer allocation to GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 6 years, 6 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: content/common/gpu/gpu_channel_manager.h
diff --git a/content/common/gpu/gpu_channel_manager.h b/content/common/gpu/gpu_channel_manager.h
index b6667be99291b35f6b997855511bc83a34d67c2e..cc38630fc154d00439373af2cfaafda6333ffcb6 100644
--- a/content/common/gpu/gpu_channel_manager.h
+++ b/content/common/gpu/gpu_channel_manager.h
@@ -28,6 +28,7 @@ class WaitableEvent;
namespace gfx {
class GLShareGroup;
+struct GpuMemoryBufferHandle;
}
namespace gpu {
@@ -127,6 +128,13 @@ class GpuChannelManager : public IPC::Listener,
void OnDeleteImage(int32 client_id, int32 image_id, int32 sync_point);
void OnDeleteImageSyncPointRetired(ImageOperation*);
void OnLoadedShader(std::string shader);
+ void OnCreateGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
+ size_t width,
+ size_t height,
+ unsigned internalformat,
+ unsigned usage);
+ void OnDestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
+ int32 sync_point);
void OnLoseAllContexts();

Powered by Google App Engine
This is Rietveld 408576698