Index: content/browser/renderer_host/image_transport_client.cc |
diff --git a/content/browser/renderer_host/image_transport_client.cc b/content/browser/renderer_host/image_transport_client.cc |
index 16439fb874d48da8cbf3c04751b885e1d7eeb3e6..c5a71c3cc14b33c34cf4cc1abaea6790d51b3a54 100644 |
--- a/content/browser/renderer_host/image_transport_client.cc |
+++ b/content/browser/renderer_host/image_transport_client.cc |
@@ -55,11 +55,11 @@ class ImageTransportClientEGL : public ImageTransportClient { |
} |
} |
- virtual unsigned int Initialize(uint64* surface_id) { |
+ virtual unsigned int Initialize(uint64* surface_handle) { |
scoped_ptr<gfx::ScopedMakeCurrent> bind(resources_->GetScopedMakeCurrent()); |
image_ = eglCreateImageKHR( |
gfx::GLSurfaceEGL::GetHardwareDisplay(), EGL_NO_CONTEXT, |
- EGL_NATIVE_PIXMAP_KHR, reinterpret_cast<void*>(*surface_id), NULL); |
+ EGL_NATIVE_PIXMAP_KHR, reinterpret_cast<void*>(*surface_handle), NULL); |
if (!image_) |
return 0; |
GLuint texture = CreateTexture(); |
@@ -100,7 +100,7 @@ class ImageTransportClientGLX : public ImageTransportClient { |
XFreePixmap(dpy, pixmap_); |
} |
- virtual unsigned int Initialize(uint64* surface_id) { |
+ virtual unsigned int Initialize(uint64* surface_handle) { |
TRACE_EVENT0("renderer_host", "ImageTransportClientGLX::Initialize"); |
Display* dpy = static_cast<Display*>(resources_->GetDisplay()); |
@@ -112,7 +112,7 @@ class ImageTransportClientGLX : public ImageTransportClient { |
// We receive a window here rather than a pixmap directly because drivers |
// require (or required) that the pixmap used to create the GL texture be |
// created in the same process as the texture. |
- pixmap_ = XCompositeNameWindowPixmap(dpy, *surface_id); |
+ pixmap_ = XCompositeNameWindowPixmap(dpy, *surface_handle); |
const int pixmapAttribs[] = { |
GLX_TEXTURE_TARGET_EXT, GLX_TEXTURE_2D_EXT, |
@@ -233,19 +233,19 @@ class ImageTransportClientOSMesa : public ImageTransportClient { |
virtual ~ImageTransportClientOSMesa() { |
} |
- virtual unsigned int Initialize(uint64* surface_id) { |
+ virtual unsigned int Initialize(uint64* surface_handle) { |
// We expect to make the id here, so don't want the other end giving us one |
jonathan.backer
2012/01/16 19:47:26
s/id/handle?
piman
2012/01/17 19:40:54
Done. Thanks.
|
- DCHECK_EQ(*surface_id, static_cast<uint64>(0)); |
+ DCHECK_EQ(*surface_handle, static_cast<uint64>(0)); |
// It's possible that this ID gneration could clash with IDs from other |
// AcceleratedSurfaceContainerTouch* objects, however we should never have |
// ids active from more than one type at the same time, so we have free |
// reign of the id namespace. |
- *surface_id = next_id_++; |
+ *surface_handle = next_id_++; |
jonathan.backer
2012/01/16 19:47:26
s/next_id_/next_handle_?
piman
2012/01/17 19:40:54
Done.
|
shared_mem_.reset( |
TransportDIB::Create(size_.GetArea() * 4, // GL_RGBA=4 B/px |
- *surface_id)); |
+ *surface_handle)); |
if (!shared_mem_.get()) |
return 0; |