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

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

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/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 a442d160e65c135a4439e6655450ec141852a31e..f514b63efa425dd7d5f919f19373800923c3a8ec 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.h
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.h
@@ -34,10 +34,12 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
const GPUCreateCommandBufferConfig& init_params,
int32 route_id) OVERRIDE;
virtual void CreateImage(
- gfx::PluginWindowHandle window,
+ const gfx::GpuMemoryBufferHandle& handle,
+ const gfx::Size& size,
+ unsigned internalformat,
int32 image_id,
const CreateImageCallback& callback) OVERRIDE;
- virtual void DeleteImage(int32 image_idu, int32 sync_point) OVERRIDE;
+ virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE;
virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
size_t width,
size_t height,
@@ -87,13 +89,15 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
const GPUCreateCommandBufferConfig& init_params);
static void CommandBufferCreatedOnIO(CreateRequest* request, bool succeeded);
void CreateImageOnIO(
- gfx::PluginWindowHandle window,
+ const gfx::GpuMemoryBufferHandle& handle,
+ const gfx::Size& size,
+ unsigned internalformat,
int32 image_id,
const CreateImageCallback& callback);
static void ImageCreatedOnIO(
- const CreateImageCallback& callback, const gfx::Size size);
+ const CreateImageCallback& callback, bool succeeded);
static void OnImageCreated(
- const CreateImageCallback& callback, const gfx::Size size);
+ const CreateImageCallback& callback, bool succeeded);
void DeleteImageOnIO(int32 image_id, int32 sync_point);
static void AddFilterOnIO(int gpu_host_id,
scoped_refptr<IPC::MessageFilter> filter);
« no previous file with comments | « no previous file | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | content/browser/gpu/gpu_process_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698