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

Unified Diff: content/common/gpu/client/gpu_channel_host.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, 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: content/common/gpu/client/gpu_channel_host.h
diff --git a/content/common/gpu/client/gpu_channel_host.h b/content/common/gpu/client/gpu_channel_host.h
index 4f5b74f010d3ad22d4ee963a1751d5cf4ace05b1..2de8065dae17b4fe161312a3610969c16ae5a512 100644
--- a/content/common/gpu/client/gpu_channel_host.h
+++ b/content/common/gpu/client/gpu_channel_host.h
@@ -84,6 +84,24 @@ class CONTENT_EXPORT GpuChannelHostFactory {
unsigned usage) = 0;
};
+class CONTENT_EXPORT GpuChannelHostGpuBufferFactory {
reveman 2014/06/02 22:47:33 We need a better name for this and I think it's pr
+ public:
+ typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)>
+ CreateGpuMemoryBufferCallback;
+
+ virtual ~GpuChannelHostGpuBufferFactory() {}
reveman 2014/06/02 22:47:33 The dtor doesn't have to be part of the interface.
+
+ virtual void CreateGpuMemoryBuffer(
+ size_t width,
+ size_t height,
+ unsigned internalformat,
+ unsigned usage,
+ const gfx::GpuMemoryBufferHandle& handle,
reveman 2014/06/02 22:47:33 nit: maybe have the handle be first parameter. it'
+ const CreateGpuMemoryBufferCallback& callback) = 0;
+ virtual void DeleteGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
reveman 2014/06/02 22:47:33 Hm, should this be "Delete" or "Destroy"? Not sure
+ int32 sync_point) = 0;
+};
+
// Encapsulates an IPC channel between the client and one GPU process.
// On the GPU process side there's a corresponding GpuChannel.
// Every method can be called on any thread with a message loop, except for the

Powered by Google App Engine
This is Rietveld 408576698