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

Unified Diff: gpu/ipc/service/image_transport_surface_linux.cc

Issue 2492583002: Decouple PassThroughImageTransportSurface from GpuCommandBufferStub (Closed)
Patch Set: Addressed Antoine's comments Created 4 years, 1 month 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 | « gpu/ipc/service/image_transport_surface_delegate.cc ('k') | gpu/ipc/service/image_transport_surface_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/image_transport_surface_linux.cc
diff --git a/gpu/ipc/service/image_transport_surface_linux.cc b/gpu/ipc/service/image_transport_surface_linux.cc
index d9929791fa415fc9db7fc155d23523f2663cdba6..2ead75180513681b5d39be84f554a7820cacd76c 100644
--- a/gpu/ipc/service/image_transport_surface_linux.cc
+++ b/gpu/ipc/service/image_transport_surface_linux.cc
@@ -12,7 +12,7 @@ namespace gpu {
// static
scoped_refptr<gl::GLSurface> ImageTransportSurface::CreateNativeSurface(
GpuChannelManager* manager,
- GpuCommandBufferStub* stub,
+ base::WeakPtr<ImageTransportSurfaceDelegate> delegate,
SurfaceHandle surface_handle,
gl::GLSurface::Format format) {
DCHECK_NE(surface_handle, kNullSurfaceHandle);
@@ -25,7 +25,7 @@ scoped_refptr<gl::GLSurface> ImageTransportSurface::CreateNativeSurface(
if (!surface)
return surface;
return scoped_refptr<gl::GLSurface>(
- new PassThroughImageTransportSurface(stub, surface.get()));
+ new PassThroughImageTransportSurface(delegate, surface.get()));
}
} // namespace gpu
« no previous file with comments | « gpu/ipc/service/image_transport_surface_delegate.cc ('k') | gpu/ipc/service/image_transport_surface_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698