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

Unified Diff: ui/compositor/compositor.cc

Issue 2317753002: cc: Abstract the LayerTreeHost. (Closed)
Patch Set: Rebase Created 4 years, 3 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 | « content/renderer/gpu/render_widget_compositor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index a08204f612aeabd79e75fb50544840835788f396..9247e1096745723ddade6b276c244cef37c84464 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -212,7 +212,7 @@ Compositor::Compositor(ui::ContextFactory* context_factory,
animation_timeline_.get());
host_->GetLayerTree()->SetRootLayer(root_web_layer_);
- host_->set_surface_client_id(surface_id_allocator_->client_id());
+ host_->SetSurfaceClientId(surface_id_allocator_->client_id());
host_->SetVisible(true);
}
@@ -270,7 +270,7 @@ void Compositor::SetOutputSurface(
host_->SetOutputSurface(std::move(output_surface));
// Visibility is reset when the output surface is lost, so update it to match
// the Compositor's.
- context_factory_->SetDisplayVisible(this, host_->visible());
+ context_factory_->SetDisplayVisible(this, host_->IsVisible());
}
void Compositor::ScheduleDraw() {
@@ -356,7 +356,7 @@ void Compositor::SetVisible(bool visible) {
}
bool Compositor::IsVisible() {
- return host_->visible();
+ return host_->IsVisible();
}
bool Compositor::ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) {
@@ -517,7 +517,7 @@ void Compositor::SetOutputIsSecure(bool output_is_secure) {
}
const cc::LayerTreeDebugState& Compositor::GetLayerTreeDebugState() const {
- return host_->debug_state();
+ return host_->GetDebugState();
}
void Compositor::SetLayerTreeDebugState(
@@ -526,7 +526,7 @@ void Compositor::SetLayerTreeDebugState(
}
const cc::RendererSettings& Compositor::GetRendererSettings() const {
- return host_->settings().renderer_settings;
+ return host_->GetSettings().renderer_settings;
}
scoped_refptr<CompositorLock> Compositor::GetCompositorLock() {
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698