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

Unified Diff: content/browser/renderer_host/delegated_frame_host.cc

Issue 2136413002: Update Surface ID Terminology (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed webkit_unit_tests Created 4 years, 5 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/browser/renderer_host/delegated_frame_host.cc
diff --git a/content/browser/renderer_host/delegated_frame_host.cc b/content/browser/renderer_host/delegated_frame_host.cc
index 78e5ca788099f9423101c2b98495572cc9e105c2..b07e84ae940d8bae98987a6d32055c38da40b5e0 100644
--- a/content/browser/renderer_host/delegated_frame_host.cc
+++ b/content/browser/renderer_host/delegated_frame_host.cc
@@ -44,7 +44,7 @@ void SatisfyCallback(cc::SurfaceManager* manager,
const cc::SurfaceSequence& sequence) {
std::vector<uint32_t> sequences;
sequences.push_back(sequence.sequence);
- manager->DidSatisfySequences(sequence.id_namespace, &sequences);
+ manager->DidSatisfySequences(sequence.client_id, &sequences);
}
void RequireCallback(cc::SurfaceManager* manager,
@@ -78,7 +78,7 @@ DelegatedFrameHost::DelegatedFrameHost(DelegatedFrameHostClient* client)
factory->GetContextFactory()->AddObserver(this);
id_allocator_ = factory->GetContextFactory()->CreateSurfaceIdAllocator();
factory->GetSurfaceManager()->RegisterSurfaceFactoryClient(
- id_allocator_->id_namespace(), this);
+ id_allocator_->client_id(), this);
}
void DelegatedFrameHost::WasShown(const ui::LatencyInfo& latency_info) {
@@ -204,8 +204,8 @@ void DelegatedFrameHost::EndFrameSubscription() {
frame_subscriber_.reset();
}
-uint32_t DelegatedFrameHost::GetSurfaceIdNamespace() {
- return id_allocator_->id_namespace();
+uint32_t DelegatedFrameHost::GetSurfaceClientId() {
+ return id_allocator_->client_id();
}
cc::SurfaceId DelegatedFrameHost::SurfaceIdAtPoint(
@@ -817,7 +817,7 @@ DelegatedFrameHost::~DelegatedFrameHost() {
if (!surface_id_.is_null())
surface_factory_->Destroy(surface_id_);
factory->GetSurfaceManager()->UnregisterSurfaceFactoryClient(
- id_allocator_->id_namespace());
+ id_allocator_->client_id());
DCHECK(!vsync_manager_.get());
}
@@ -833,9 +833,9 @@ void DelegatedFrameHost::SetCompositor(ui::Compositor* compositor) {
vsync_manager_->AddObserver(this);
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
- uint32_t parent = compositor->surface_id_allocator()->id_namespace();
+ uint32_t parent = compositor->surface_id_allocator()->client_id();
factory->GetSurfaceManager()->RegisterSurfaceNamespaceHierarchy(
- parent, id_allocator_->id_namespace());
+ parent, id_allocator_->client_id());
}
void DelegatedFrameHost::ResetCompositor() {
@@ -853,9 +853,9 @@ void DelegatedFrameHost::ResetCompositor() {
}
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
- uint32_t parent = compositor_->surface_id_allocator()->id_namespace();
+ uint32_t parent = compositor_->surface_id_allocator()->client_id();
factory->GetSurfaceManager()->UnregisterSurfaceNamespaceHierarchy(
- parent, id_allocator_->id_namespace());
+ parent, id_allocator_->client_id());
compositor_ = nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698