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

Unified Diff: gpu/ipc/service/image_transport_surface.h

Issue 2492583002: Decouple PassThroughImageTransportSurface from GpuCommandBufferStub (Closed)
Patch Set: Another mac fix 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.h
diff --git a/gpu/ipc/service/image_transport_surface.h b/gpu/ipc/service/image_transport_surface.h
index de5993248efb38c4d867b052366c318beda98b92..972e56131560a452e63b9cf862d7e27e835c93a2 100644
--- a/gpu/ipc/service/image_transport_surface.h
+++ b/gpu/ipc/service/image_transport_surface.h
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "build/build_config.h"
#include "gpu/gpu_export.h"
#include "gpu/ipc/common/surface_handle.h"
@@ -16,7 +17,7 @@
namespace gpu {
class GpuChannelManager;
-class GpuCommandBufferStub;
+class ImageTransportSurfaceDelegate;
// The GPU process is agnostic as to how it displays results. On some platforms
// it renders directly to window. On others it renders offscreen and transports
@@ -34,7 +35,7 @@ class ImageTransportSurface {
// scoped_refptr should be returned.
static scoped_refptr<gl::GLSurface> CreateNativeSurface(
GpuChannelManager* manager,
- GpuCommandBufferStub* stub,
+ base::WeakPtr<ImageTransportSurfaceDelegate> stub,
SurfaceHandle surface_handle,
gl::GLSurface::Format format);

Powered by Google App Engine
This is Rietveld 408576698