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

Unified Diff: components/display_compositor/offscreen_canvas_compositor_frame_sink.h

Issue 2703503002: WIP: move OffscreenCanvas into new display compositor
Patch Set: Refine connection lost 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: components/display_compositor/offscreen_canvas_compositor_frame_sink.h
diff --git a/components/display_compositor/gpu_offscreen_compositor_frame_sink.h b/components/display_compositor/offscreen_canvas_compositor_frame_sink.h
similarity index 61%
copy from components/display_compositor/gpu_offscreen_compositor_frame_sink.h
copy to components/display_compositor/offscreen_canvas_compositor_frame_sink.h
index 6720a6eae8630112690af5c04b1394fec22085b0..7c9d92b9a08533189c1f82d14dafba34da537f37 100644
--- a/components/display_compositor/gpu_offscreen_compositor_frame_sink.h
+++ b/components/display_compositor/offscreen_canvas_compositor_frame_sink.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_
-#define COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_
+#ifndef COMPONENTS_DISPLAY_COMPOSITOR_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_
+#define COMPONENTS_DISPLAY_COMPOSITOR_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_
#include "components/display_compositor/display_compositor_export.h"
#include "components/display_compositor/gpu_compositor_frame_sink.h"
@@ -11,25 +11,24 @@
namespace display_compositor {
-class DISPLAY_COMPOSITOR_EXPORT GpuOffscreenCompositorFrameSink
+class DISPLAY_COMPOSITOR_EXPORT OffscreenCanvasCompositorFrameSink
: public GpuCompositorFrameSink {
public:
- GpuOffscreenCompositorFrameSink(
+ OffscreenCanvasCompositorFrameSink(
GpuCompositorFrameSinkDelegate* delegate,
cc::SurfaceManager* surface_manager,
const cc::FrameSinkId& frame_sink_id,
cc::mojom::MojoCompositorFrameSinkRequest request,
- cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
cc::mojom::MojoCompositorFrameSinkClientPtr client);
- ~GpuOffscreenCompositorFrameSink() override;
+ ~OffscreenCanvasCompositorFrameSink() override;
private:
mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_;
- DISALLOW_COPY_AND_ASSIGN(GpuOffscreenCompositorFrameSink);
+ DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSink);
};
} // namespace display_compositor
-#endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_
+#endif // COMPONENTS_DISPLAY_COMPOSITOR_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_

Powered by Google App Engine
This is Rietveld 408576698