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

Unified Diff: content/browser/renderer_host/offscreen_canvas_surface_impl.h

Issue 2695603002: Replace OffscreenCanvasSurfaceClient with DisplayCompositorClient (Closed)
Patch Set: Delete unused import surface_info Created 3 years, 10 months 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: content/browser/renderer_host/offscreen_canvas_surface_impl.h
diff --git a/content/browser/renderer_host/offscreen_canvas_surface_impl.h b/content/browser/renderer_host/offscreen_canvas_surface_impl.h
index 50733d2e37f8612230c8e2cae9b48566cdbc6ae3..0004126c6da03bdc94f26ad00b8eff664c8f18de 100644
--- a/content/browser/renderer_host/offscreen_canvas_surface_impl.h
+++ b/content/browser/renderer_host/offscreen_canvas_surface_impl.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_IMPL_H_
#define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_IMPL_H_
+#include "cc/ipc/display_compositor.mojom.h"
#include "cc/surfaces/surface_id.h"
#include "cc/surfaces/surface_id_allocator.h"
#include "mojo/public/cpp/bindings/interface_request.h"
@@ -16,15 +17,14 @@ namespace content {
class CONTENT_EXPORT OffscreenCanvasSurfaceImpl
: public blink::mojom::OffscreenCanvasSurface {
public:
- OffscreenCanvasSurfaceImpl(
- const cc::FrameSinkId& parent_frame_sink_id,
- const cc::FrameSinkId& frame_sink_id,
- blink::mojom::OffscreenCanvasSurfaceClientPtr client);
+ OffscreenCanvasSurfaceImpl(const cc::FrameSinkId& parent_frame_sink_id,
+ const cc::FrameSinkId& frame_sink_id,
+ cc::mojom::DisplayCompositorClientPtr client);
~OffscreenCanvasSurfaceImpl() override;
static void Create(const cc::FrameSinkId& parent_frame_sink_id,
const cc::FrameSinkId& frame_sink_id,
- blink::mojom::OffscreenCanvasSurfaceClientPtr client,
+ cc::mojom::DisplayCompositorClientPtr client,
blink::mojom::OffscreenCanvasSurfaceRequest request);
void OnSurfaceCreated(const cc::SurfaceInfo& surface_info);
@@ -45,7 +45,7 @@ class CONTENT_EXPORT OffscreenCanvasSurfaceImpl
}
private:
- blink::mojom::OffscreenCanvasSurfaceClientPtr client_;
+ cc::mojom::DisplayCompositorClientPtr client_;
mojo::StrongBindingPtr<blink::mojom::OffscreenCanvasSurface> binding_;
// Surface-related state

Powered by Google App Engine
This is Rietveld 408576698