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

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

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: mac build fix Created 6 years, 2 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 95f592881a67960f03983cabb18346b7ac7456eb..265dd733bf34b680628c6145e07d5b08ddabe74f 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.h
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.h
@@ -13,7 +13,6 @@
#include "ipc/message_filter.h"
namespace content {
-class GpuMemoryBufferImpl;
class GpuMemoryBufferFactoryHostImpl;
class CONTENT_EXPORT BrowserGpuChannelHostFactory
@@ -33,11 +32,6 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
int32 surface_id,
const GPUCreateCommandBufferConfig& init_params,
int32 route_id) override;
- virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
- size_t width,
- size_t height,
- unsigned internalformat,
- unsigned usage) override;
// Specify a task runner and callback to be used for a set of messages. The
// callback will be set up on the current GpuProcessHost, identified by
@@ -60,7 +54,6 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
private:
struct CreateRequest;
- struct AllocateGpuMemoryBufferRequest;
class EstablishRequest;
BrowserGpuChannelHostFactory();
@@ -75,10 +68,6 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
CreateCommandBufferResult result);
static void AddFilterOnIO(int gpu_host_id,
scoped_refptr<IPC::MessageFilter> filter);
- static void AllocateGpuMemoryBufferOnIO(
- AllocateGpuMemoryBufferRequest* request);
- static void OnGpuMemoryBufferCreated(AllocateGpuMemoryBufferRequest* request,
- scoped_ptr<GpuMemoryBufferImpl> buffer);
const int gpu_client_id_;
scoped_ptr<base::WaitableEvent> shutdown_event_;

Powered by Google App Engine
This is Rietveld 408576698