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: ui/android/delegated_frame_host_android.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 | « ui/android/delegated_frame_host_android.h ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/delegated_frame_host_android.cc
diff --git a/ui/android/delegated_frame_host_android.cc b/ui/android/delegated_frame_host_android.cc
index feb9e24abcce19ad057da8d30c979430690f4598..5b6ecf9b42f12453d9c4d0671b595c1ff1594cc5 100644
--- a/ui/android/delegated_frame_host_android.cc
+++ b/ui/android/delegated_frame_host_android.cc
@@ -109,7 +109,7 @@ void DelegatedFrameHostAndroid::SubmitCompositorFrame(
DCHECK(!current_frame_);
current_frame_ = base::MakeUnique<FrameData>();
- current_frame_->local_frame_id = surface_id_allocator_->GenerateId();
+ current_frame_->local_surface_id = surface_id_allocator_->GenerateId();
current_frame_->surface_size = surface_size;
current_frame_->top_controls_height = frame.metadata.top_controls_height;
current_frame_->top_controls_shown_ratio =
@@ -121,18 +121,18 @@ void DelegatedFrameHostAndroid::SubmitCompositorFrame(
current_frame_->has_transparent_background =
root_pass->has_transparent_background;
current_frame_->viewport_selection = frame.metadata.selection;
- surface_factory_->SubmitCompositorFrame(current_frame_->local_frame_id,
+ surface_factory_->SubmitCompositorFrame(current_frame_->local_surface_id,
std::move(frame), draw_callback);
content_layer_ = CreateSurfaceLayer(
surface_manager_, cc::SurfaceId(surface_factory_->frame_sink_id(),
- current_frame_->local_frame_id),
+ current_frame_->local_surface_id),
current_frame_->surface_size,
!current_frame_->has_transparent_background);
view_->GetLayer()->AddChild(content_layer_);
UpdateBackgroundLayer();
} else {
- surface_factory_->SubmitCompositorFrame(current_frame_->local_frame_id,
+ surface_factory_->SubmitCompositorFrame(current_frame_->local_surface_id,
std::move(frame), draw_callback);
}
}
@@ -150,7 +150,7 @@ void DelegatedFrameHostAndroid::RequestCopyOfSurface(
scoped_refptr<cc::Layer> readback_layer = CreateSurfaceLayer(
surface_manager_, cc::SurfaceId(surface_factory_->frame_sink_id(),
- current_frame_->local_frame_id),
+ current_frame_->local_surface_id),
current_frame_->surface_size,
!current_frame_->has_transparent_background);
readback_layer->SetHideLayerAndSubtree(true);
« no previous file with comments | « ui/android/delegated_frame_host_android.h ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698