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

Unified Diff: blimp/client/core/compositor/blimp_compositor.cc

Issue 2382873002: Replace usage of SurfaceId's client_id with FrameSinkId (Closed)
Patch Set: Rebased Created 4 years, 2 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 | « android_webview/browser/surfaces_instance.cc ('k') | blimp/client/public/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/compositor/blimp_compositor.cc
diff --git a/blimp/client/core/compositor/blimp_compositor.cc b/blimp/client/core/compositor/blimp_compositor.cc
index b38bb723e0eeb0a534fc2631a8b0cf3af0987f93..fbe2cc90230e8baba30fe4fe96e65a942028fdba 100644
--- a/blimp/client/core/compositor/blimp_compositor.cc
+++ b/blimp/client/core/compositor/blimp_compositor.cc
@@ -41,7 +41,7 @@ void SatisfyCallback(cc::SurfaceManager* manager,
const cc::SurfaceSequence& sequence) {
std::vector<uint32_t> sequences;
sequences.push_back(sequence.sequence);
- manager->DidSatisfySequences(sequence.client_id, &sequences);
+ manager->DidSatisfySequences(sequence.frame_sink_id, &sequences);
}
void RequireCallback(cc::SurfaceManager* manager,
@@ -73,9 +73,9 @@ BlimpCompositor::BlimpCompositor(
DCHECK(thread_checker_.CalledOnValidThread());
surface_id_allocator_ = base::MakeUnique<cc::SurfaceIdAllocator>(
- GetEmbedderDeps()->AllocateSurfaceClientId());
- GetEmbedderDeps()->GetSurfaceManager()->RegisterSurfaceClientId(
- surface_id_allocator_->client_id());
+ GetEmbedderDeps()->AllocateFrameSinkId());
+ GetEmbedderDeps()->GetSurfaceManager()->RegisterFrameSinkId(
+ surface_id_allocator_->frame_sink_id());
CreateLayerTreeHost();
}
@@ -83,8 +83,8 @@ BlimpCompositor::~BlimpCompositor() {
DCHECK(thread_checker_.CalledOnValidThread());
DestroyLayerTreeHost();
- GetEmbedderDeps()->GetSurfaceManager()->InvalidateSurfaceClientId(
- surface_id_allocator_->client_id());
+ GetEmbedderDeps()->GetSurfaceManager()->InvalidateFrameSinkId(
+ surface_id_allocator_->frame_sink_id());
CheckPendingCommitCounts(true /* flush */);
}
« no previous file with comments | « android_webview/browser/surfaces_instance.cc ('k') | blimp/client/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698