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

Unified Diff: gpu/ipc/service/image_transport_surface_win.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
Index: gpu/ipc/service/image_transport_surface_win.cc
diff --git a/gpu/ipc/service/image_transport_surface_win.cc b/gpu/ipc/service/image_transport_surface_win.cc
index 80c34c31793f3355007cf4bdf7bd64c624e88184..fb27db6985fe654cd7dbabdb571ea3a96072b45f 100644
--- a/gpu/ipc/service/image_transport_surface_win.cc
+++ b/gpu/ipc/service/image_transport_surface_win.cc
@@ -20,7 +20,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);
@@ -49,7 +49,7 @@ scoped_refptr<gl::GLSurface> ImageTransportSurface::CreateNativeSurface(
}
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_overlay_mac.mm ('k') | gpu/ipc/service/pass_through_image_transport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698