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

Unified Diff: content/renderer/android/synchronous_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
Index: content/renderer/android/synchronous_compositor_frame_sink.cc
diff --git a/content/renderer/android/synchronous_compositor_frame_sink.cc b/content/renderer/android/synchronous_compositor_frame_sink.cc
index 0c447b6677b7593286b49e2770533f15959273f6..161880d33251e06666a2bdaf356bda7f3a33a689 100644
--- a/content/renderer/android/synchronous_compositor_frame_sink.cc
+++ b/content/renderer/android/synchronous_compositor_frame_sink.cc
@@ -245,13 +245,13 @@ void SynchronousCompositorFrameSink::SubmitCompositorFrame(
// the |frame| for the software path below.
submit_frame.metadata = frame.metadata.Clone();
- if (!root_local_frame_id_.is_valid()) {
- root_local_frame_id_ = surface_id_allocator_->GenerateId();
- child_local_frame_id_ = surface_id_allocator_->GenerateId();
+ if (!root_local_surface_id_.is_valid()) {
+ root_local_surface_id_ = surface_id_allocator_->GenerateId();
+ child_local_surface_id_ = surface_id_allocator_->GenerateId();
}
- display_->SetLocalFrameId(root_local_frame_id_,
- frame.metadata.device_scale_factor);
+ display_->SetLocalSurfaceId(root_local_surface_id_,
+ frame.metadata.device_scale_factor);
// The layer compositor should be giving a frame that covers the
// |sw_viewport_for_current_draw_| but at 0,0.
@@ -295,11 +295,12 @@ void SynchronousCompositorFrameSink::SubmitCompositorFrame(
SkBlendMode::kSrcOver, 0 /* sorting_context_id */);
surface_quad->SetNew(
shared_quad_state, gfx::Rect(child_size), gfx::Rect(child_size),
- cc::SurfaceId(kChildFrameSinkId, child_local_frame_id_));
+ cc::SurfaceId(kChildFrameSinkId, child_local_surface_id_));
- child_factory_->SubmitCompositorFrame(
- child_local_frame_id_, std::move(frame), base::Bind(&NoOpDrawCallback));
- root_factory_->SubmitCompositorFrame(root_local_frame_id_,
+ child_factory_->SubmitCompositorFrame(child_local_surface_id_,
+ std::move(frame),
+ base::Bind(&NoOpDrawCallback));
+ root_factory_->SubmitCompositorFrame(root_local_surface_id_,
std::move(embed_frame),
base::Bind(&NoOpDrawCallback));
display_->DrawAndSwap();
« no previous file with comments | « content/renderer/android/synchronous_compositor_frame_sink.h ('k') | services/ui/public/cpp/window_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698