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

Unified Diff: content/browser/gpu/browser_gpu_channel_host_factory.h

Issue 540443002: Enable sync allocation of GpuMemoryBuffers from the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting Created 6 years, 3 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/browser/gpu/browser_gpu_channel_host_factory.h
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.h b/content/browser/gpu/browser_gpu_channel_host_factory.h
index 30c2939a669ce899469530f405092296ec688951..ed6174aeae2c7211b97a43c93d53410faeb5fa9f 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.h
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.h
@@ -14,6 +14,7 @@
#include "ipc/message_filter.h"
namespace content {
+class GpuMemoryBufferImpl;
class CONTENT_EXPORT BrowserGpuChannelHostFactory
: public GpuChannelHostFactory,
@@ -91,6 +92,9 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
AllocateGpuMemoryBufferRequest* request);
static void DeleteGpuMemoryBufferOnIO(
scoped_ptr<gfx::GpuMemoryBuffer> buffer);
+ static void GpuMemoryBufferImplCreatedOnIO(
+ AllocateGpuMemoryBufferRequest* request,
+ scoped_ptr<GpuMemoryBufferImpl> buffer);
void OnGpuMemoryBufferCreated(uint32 request_id,
const gfx::GpuMemoryBufferHandle& handle);

Powered by Google App Engine
This is Rietveld 408576698