summaryrefslogtreecommitdiffstats
path: root/content/browser/gpu/gpu_process_host.h
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-08 02:23:49 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-08 02:23:49 +0000
commit47940c847f7ac66275bc3470c32134f50f10bd6c (patch)
tree2adc8ca47152a49c10ee627bb7750bcad51166e9 /content/browser/gpu/gpu_process_host.h
parent32cfc187ed05a324764f875ae0dada6e64c29c19 (diff)
downloadchromium_src-47940c847f7ac66275bc3470c32134f50f10bd6c.zip
chromium_src-47940c847f7ac66275bc3470c32134f50f10bd6c.tar.gz
chromium_src-47940c847f7ac66275bc3470c32134f50f10bd6c.tar.bz2
PluginWindowHandle -> GLSurfaceHandle for GPU process rendering surfaces.
PluginWindowHandle is limited to just a native window handle, and isn't expressive enough to handle a variety of cases (present and future): 1- no render surface (offscreen) 2- a transport surface (for a renderer, requiring synchonization on swap), allocated by the browser as a native window (desktop linux, win) 3- a transport surface, without a native window handle, allocated by the GPU process (mac, linux aura) The discrimination between some of these cases (e.g. desktop linux vs linux aura) is currently done with small hacks, which this CL cleans up. But mostly this is to prepare for new cases: 4- a main surface (for the UI), allocated by the browser as a native window (aura) - in this CL 5- a transport surface in the form of a texture in the UI gl context (aura) - in a future CL BUG=99516 TEST=run chrome, go to poster circle. Check that everything works, including with resizing the window. Review URL: http://codereview.chromium.org/9353001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120910 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/gpu/gpu_process_host.h')
-rw-r--r--content/browser/gpu/gpu_process_host.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h
index e0cd91b..c1394cb 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -71,7 +71,7 @@ class GpuProcessHost : public content::BrowserChildProcessHostDelegate,
// Tells the GPU process to create a new command buffer that draws into the
// window associated with the given renderer.
void CreateViewCommandBuffer(
- gfx::PluginWindowHandle compositing_surface,
+ gfx::GLSurfaceHandle compositing_surface,
int surface_id,
int client_id,
const GPUCreateCommandBufferConfig& init_params,