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

Unified Diff: android_webview/browser/surfaces_instance.cc

Issue 2468633002: Replaced cc::Display::SetSurfaceId() with SetLocalFrameId() (Closed)
Patch Set: rebase and minor bug fixes 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
« no previous file with comments | « no previous file | blimp/client/support/compositor/blimp_embedder_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/surfaces_instance.cc
diff --git a/android_webview/browser/surfaces_instance.cc b/android_webview/browser/surfaces_instance.cc
index 0f71caa7a623c87bb055ab301d68608190f00bc6..2803531ca5e4871dfef9bd99701f761888896aa7 100644
--- a/android_webview/browser/surfaces_instance.cc
+++ b/android_webview/browser/surfaces_instance.cc
@@ -69,10 +69,10 @@ SurfacesInstance::SurfacesInstance()
output_surface_holder->capabilities().max_frames_pending));
display_.reset(new cc::Display(
nullptr /* shared_bitmap_manager */,
- nullptr /* gpu_memory_buffer_manager */, settings,
+ nullptr /* gpu_memory_buffer_manager */, settings, frame_sink_id_,
std::move(begin_frame_source), std::move(output_surface_holder),
std::move(scheduler), std::move(texture_mailbox_deleter)));
- display_->Initialize(this, surface_manager_.get(), frame_sink_id_);
+ display_->Initialize(this, surface_manager_.get());
display_->SetVisible(true);
DCHECK(!g_surfaces_instance);
@@ -139,7 +139,7 @@ void SurfacesInstance::DrawAndSwap(const gfx::Size& viewport,
if (!root_id_.is_valid()) {
root_id_ = surface_id_allocator_->GenerateId();
surface_factory_->Create(root_id_);
- display_->SetSurfaceId(cc::SurfaceId(frame_sink_id_, root_id_), 1.f);
+ display_->SetLocalFrameId(root_id_, 1.f);
}
surface_factory_->SubmitCompositorFrame(root_id_, std::move(frame),
cc::SurfaceFactory::DrawCallback());
« no previous file with comments | « no previous file | blimp/client/support/compositor/blimp_embedder_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698