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

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: 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..6d5412db40a23a04220652351643cef903227f91 100644
--- a/content/common/gpu/client/gpu_channel_host.h
+++ b/content/common/gpu/client/gpu_channel_host.h
@@ -62,6 +62,9 @@ class CONTENT_EXPORT GpuChannelHostFactory {
public:
typedef base::Callback<void(const gfx::Size)> CreateImageCallback;
+ typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)>
+ AllocateGpuMemoryBufferCallback;
+
virtual ~GpuChannelHostFactory() {}
virtual bool IsMainThread() = 0;
@@ -82,6 +85,9 @@ class CONTENT_EXPORT GpuChannelHostFactory {
size_t height,
unsigned internalformat,
unsigned usage) = 0;
+ virtual void AllocateGpuMemoryBufferAsync(
+ const gfx::GpuMemoryBufferParams& params,
+ const AllocateGpuMemoryBufferCallback& callback) = 0;
};
// Encapsulates an IPC channel between the client and one GPU process.

Powered by Google App Engine
This is Rietveld 408576698