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

Unified Diff: cc/test/test_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 | « cc/test/test_compositor_frame_sink.h ('k') | components/display_compositor/gpu_compositor_frame_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_compositor_frame_sink.cc
diff --git a/cc/test/test_compositor_frame_sink.cc b/cc/test/test_compositor_frame_sink.cc
index 25eb8e5589a86674b095957124b1f3b3e9ff0f9f..12869c7f1d7d0cfd065274004ed6853c4c6bbe22 100644
--- a/cc/test/test_compositor_frame_sink.cc
+++ b/cc/test/test_compositor_frame_sink.cc
@@ -127,11 +127,11 @@ void TestCompositorFrameSink::DetachFromClient() {
void TestCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
test_client_->DisplayReceivedCompositorFrame(frame);
- if (!delegated_local_frame_id_.is_valid()) {
- delegated_local_frame_id_ = surface_id_allocator_->GenerateId();
+ if (!delegated_local_surface_id_.is_valid()) {
+ delegated_local_surface_id_ = surface_id_allocator_->GenerateId();
}
- display_->SetLocalFrameId(delegated_local_frame_id_,
- frame.metadata.device_scale_factor);
+ display_->SetLocalSurfaceId(delegated_local_surface_id_,
+ frame.metadata.device_scale_factor);
gfx::Size frame_size = frame.render_pass_list.back()->output_rect.size();
display_->Resize(frame_size);
@@ -148,7 +148,7 @@ void TestCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
base::Unretained(this));
}
- surface_factory_->SubmitCompositorFrame(delegated_local_frame_id_,
+ surface_factory_->SubmitCompositorFrame(delegated_local_surface_id_,
std::move(frame), draw_callback);
for (std::unique_ptr<CopyOutputRequest>& copy_request : copy_requests_) {
@@ -174,7 +174,7 @@ void TestCompositorFrameSink::DidDrawCallback() {
void TestCompositorFrameSink::ForceReclaimResources() {
if (capabilities_.can_force_reclaim_resources &&
- delegated_local_frame_id_.is_valid()) {
+ delegated_local_surface_id_.is_valid()) {
surface_factory_->ClearSurface();
}
}
« no previous file with comments | « cc/test/test_compositor_frame_sink.h ('k') | components/display_compositor/gpu_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698