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

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

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_overlay_mac.h
diff --git a/gpu/ipc/service/image_transport_surface_overlay_mac.h b/gpu/ipc/service/image_transport_surface_overlay_mac.h
index 6abb4d4edb7a6a80febffb5e4b10bb1ea240f364..d2261e151a865cc0d7135424689a7045e5b03a59 100644
--- a/gpu/ipc/service/image_transport_surface_overlay_mac.h
+++ b/gpu/ipc/service/image_transport_surface_overlay_mac.h
@@ -35,7 +35,8 @@ namespace gpu {
class ImageTransportSurfaceOverlayMac : public gl::GLSurface,
public ui::GpuSwitchingObserver {
public:
- explicit ImageTransportSurfaceOverlayMac(GpuCommandBufferStub* stub);
+ explicit ImageTransportSurfaceOverlayMac(
+ base::WeakPtr<ImageTransportSurfaceDelegate> delegate);
// GLSurface implementation
bool Initialize(gl::GLSurface::Format format) override;
@@ -77,7 +78,7 @@ class ImageTransportSurfaceOverlayMac : public gl::GLSurface,
std::vector<ui::LatencyInfo> latency_info);
gfx::SwapResult SwapBuffersInternal(const gfx::Rect& pixel_damage_rect);
- base::WeakPtr<GpuCommandBufferStub> stub_;
+ base::WeakPtr<ImageTransportSurfaceDelegate> delegate_;
std::vector<ui::LatencyInfo> latency_info_;
bool use_remote_layer_api_;
« no previous file with comments | « gpu/ipc/service/image_transport_surface_mac.mm ('k') | gpu/ipc/service/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698