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

Unified Diff: content/browser/gpu/gpu_process_host.cc

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: rebase Created 6 years, 5 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
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index fec7353ec096e9c256eeca845e18d3795b24d7de..f123addefee525e1206fddb3d5822821e2b6a621 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -571,7 +571,6 @@ bool GpuProcessHost::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(GpuHostMsg_ChannelEstablished, OnChannelEstablished)
IPC_MESSAGE_HANDLER(GpuHostMsg_CommandBufferCreated, OnCommandBufferCreated)
IPC_MESSAGE_HANDLER(GpuHostMsg_DestroyCommandBuffer, OnDestroyCommandBuffer)
- IPC_MESSAGE_HANDLER(GpuHostMsg_ImageCreated, OnImageCreated)
IPC_MESSAGE_HANDLER(GpuHostMsg_GpuMemoryBufferCreated,
OnGpuMemoryBufferCreated)
IPC_MESSAGE_HANDLER(GpuHostMsg_DidCreateOffscreenContext,
@@ -658,31 +657,6 @@ void GpuProcessHost::CreateViewCommandBuffer(
}
}
-void GpuProcessHost::CreateImage(gfx::PluginWindowHandle window,
- int client_id,
- int image_id,
- const CreateImageCallback& callback) {
- TRACE_EVENT0("gpu", "GpuProcessHost::CreateImage");
-
- DCHECK(CalledOnValidThread());
-
- if (Send(new GpuMsg_CreateImage(window, client_id, image_id))) {
- create_image_requests_.push(callback);
- } else {
- callback.Run(gfx::Size());
- }
-}
-
-void GpuProcessHost::DeleteImage(int client_id,
- int image_id,
- int sync_point) {
- TRACE_EVENT0("gpu", "GpuProcessHost::DeleteImage");
-
- DCHECK(CalledOnValidThread());
-
- Send(new GpuMsg_DeleteImage(client_id, image_id, sync_point));
-}
-
void GpuProcessHost::CreateGpuMemoryBuffer(
const gfx::GpuMemoryBufferHandle& handle,
const gfx::Size& size,
@@ -773,17 +747,6 @@ void GpuProcessHost::OnDestroyCommandBuffer(int32 surface_id) {
}
}
-void GpuProcessHost::OnImageCreated(const gfx::Size size) {
- TRACE_EVENT0("gpu", "GpuProcessHost::OnImageCreated");
-
- if (create_image_requests_.empty())
- return;
-
- CreateImageCallback callback = create_image_requests_.front();
- create_image_requests_.pop();
- callback.Run(size);
-}
-
void GpuProcessHost::OnGpuMemoryBufferCreated(
const gfx::GpuMemoryBufferHandle& handle) {
TRACE_EVENT0("gpu", "GpuProcessHost::OnGpuMemoryBufferCreated");
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698