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

Unified Diff: components/display_compositor/gpu_compositor_frame_sink.cc

Issue 2661543002: Rename LocalFrameId to LocalSurfaceId (Closed)
Patch Set: c Created 3 years, 11 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
« no previous file with comments | « components/display_compositor/gpu_compositor_frame_sink.h ('k') | components/exo/compositor_frame_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/display_compositor/gpu_compositor_frame_sink.cc
diff --git a/components/display_compositor/gpu_compositor_frame_sink.cc b/components/display_compositor/gpu_compositor_frame_sink.cc
index 02b38f9d039573ff070e3942e50439932b8ca79c..9a6347f146602e13ddc0e7a36ba5759fb34f825f 100644
--- a/components/display_compositor/gpu_compositor_frame_sink.cc
+++ b/components/display_compositor/gpu_compositor_frame_sink.cc
@@ -55,15 +55,15 @@ void GpuCompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) {
}
void GpuCompositorFrameSink::SubmitCompositorFrame(
- const cc::LocalFrameId& local_frame_id,
+ const cc::LocalSurfaceId& local_surface_id,
cc::CompositorFrame frame) {
cc::SurfaceId start_surface_id = surface_tracker_.current_surface_id();
- surface_tracker_.UpdateReferences(local_frame_id,
+ surface_tracker_.UpdateReferences(local_surface_id,
frame.metadata.referenced_surfaces);
// TODO(kylechar): Move adding top-level root references to
// GpuDisplayCompositorFrameSink.
- support_.SubmitCompositorFrame(local_frame_id, std::move(frame));
+ support_.SubmitCompositorFrame(local_surface_id, std::move(frame));
// Get the list of surfaces to add/remove from |surface_tracker_| so we can
// append to them before adding/removing.
@@ -81,7 +81,7 @@ void GpuCompositorFrameSink::SubmitCompositorFrame(
// The first frame will not have a valid |start_surface_id| and there will
// be no surface to remove.
- if (start_surface_id.local_frame_id().is_valid()) {
+ if (start_surface_id.local_surface_id().is_valid()) {
references_to_remove.push_back(
cc::SurfaceReference(top_level_root_surface_id, start_surface_id));
}
@@ -96,9 +96,9 @@ void GpuCompositorFrameSink::SubmitCompositorFrame(
surface_manager_->RemoveSurfaceReferences(references_to_remove);
}
-void GpuCompositorFrameSink::Require(const cc::LocalFrameId& local_frame_id,
+void GpuCompositorFrameSink::Require(const cc::LocalSurfaceId& local_surface_id,
const cc::SurfaceSequence& sequence) {
- support_.Require(local_frame_id, sequence);
+ support_.Require(local_surface_id, sequence);
}
void GpuCompositorFrameSink::Satisfy(const cc::SurfaceSequence& sequence) {
« no previous file with comments | « components/display_compositor/gpu_compositor_frame_sink.h ('k') | components/exo/compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698