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

Unified Diff: gpu/ipc/service/image_transport_surface_android.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.h ('k') | gpu/ipc/service/image_transport_surface_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/image_transport_surface_android.cc
diff --git a/gpu/ipc/service/image_transport_surface_android.cc b/gpu/ipc/service/image_transport_surface_android.cc
index 6b9caa2116b1973a5ec005d830856906ae291ee8..da0b962633f872c0c3721a2f97e53c4bbefffaba 100644
--- a/gpu/ipc/service/image_transport_surface_android.cc
+++ b/gpu/ipc/service/image_transport_surface_android.cc
@@ -15,7 +15,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) {
if (gl::GetGLImplementation() == gl::kGLImplementationMockGL)
@@ -37,7 +37,7 @@ scoped_refptr<gl::GLSurface> ImageTransportSurface::CreateNativeSurface(
return scoped_refptr<gl::GLSurface>();
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.h ('k') | gpu/ipc/service/image_transport_surface_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698