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

Unified Diff: services/ui/surfaces/gpu_compositor_frame_sink.h

Issue 2527443002: Display Compositor: Allocate LocalFrameId in client. (Closed)
Patch Set: Rebased + Restored BUILD files 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: services/ui/surfaces/gpu_compositor_frame_sink.h
diff --git a/services/ui/surfaces/gpu_compositor_frame_sink.h b/services/ui/surfaces/gpu_compositor_frame_sink.h
index 0509d43d112b653cf1763063f007fe78865fa8e4..1a1422ddb53856036676ae525d8940899f000b8c 100644
--- a/services/ui/surfaces/gpu_compositor_frame_sink.h
+++ b/services/ui/surfaces/gpu_compositor_frame_sink.h
@@ -57,7 +57,8 @@ class GpuCompositorFrameSink : public cc::mojom::MojoCompositorFrameSink,
// cc::mojom::MojoCompositorFrameSink:
void SetNeedsBeginFrame(bool needs_begin_frame) override;
- void SubmitCompositorFrame(cc::CompositorFrame frame) override;
+ void SubmitCompositorFrame(const cc::LocalFrameId& local_frame_id,
+ cc::CompositorFrame frame) override;
// cc::mojom::MojoCompositorFrameSinkPrivate:
void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override;
@@ -97,14 +98,12 @@ class GpuCompositorFrameSink : public cc::mojom::MojoCompositorFrameSink,
DisplayCompositor* display_compositor_; // owns this.
- gfx::Size last_submitted_frame_size_;
// GpuCompositorFrameSink holds a cc::Display if it created with
// non-null gpu::SurfaceHandle. In the window server, the display root
// window's CompositorFrameSink will have a valid gpu::SurfaceHandle.
std::unique_ptr<cc::Display> display_;
cc::LocalFrameId local_frame_id_;
- cc::SurfaceIdAllocator surface_id_allocator_;
cc::SurfaceFactory surface_factory_;
// Counts the number of CompositorFrames that have been submitted and have not
// yet received an ACK.
« no previous file with comments | « services/ui/public/cpp/window_compositor_frame_sink.cc ('k') | services/ui/surfaces/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698