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

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

Issue 2253143002: Revert of cc: Move data to LayerTree from LayerTreeHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@layer_tree_change
Patch Set: Created 4 years, 4 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/trees/tree_synchronizer.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index 7922764ae84b28834b51f03a916ed9cbb52be225..bc9028a6bbc7b25838370f3dbdc5f75757075abd 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -503,12 +503,11 @@
params.animation_host = cc::AnimationHost::CreateMainInstance();
host_ = cc::LayerTreeHost::CreateSingleThreaded(this, &params);
DCHECK(!host_->visible());
- host_->GetLayerTree()->SetRootLayer(root_window_->GetLayer());
+ host_->SetRootLayer(root_window_->GetLayer());
host_->set_surface_client_id(surface_id_allocator_->client_id());
- host_->GetLayerTree()->SetViewportSize(size_);
- host_->GetLayerTree()->set_has_transparent_background(
- has_transparent_background_);
- host_->GetLayerTree()->SetDeviceScaleFactor(device_scale_factor_);
+ host_->SetViewportSize(size_);
+ host_->set_has_transparent_background(has_transparent_background_);
+ host_->SetDeviceScaleFactor(device_scale_factor_);
if (needs_animate_)
host_->SetNeedsAnimate();
@@ -540,7 +539,7 @@
void CompositorImpl::setDeviceScaleFactor(float factor) {
device_scale_factor_ = factor;
if (host_)
- host_->GetLayerTree()->SetDeviceScaleFactor(factor);
+ host_->SetDeviceScaleFactor(factor);
}
void CompositorImpl::SetWindowBounds(const gfx::Size& size) {
@@ -549,7 +548,7 @@
size_ = size;
if (host_)
- host_->GetLayerTree()->SetViewportSize(size);
+ host_->SetViewportSize(size);
if (display_)
display_->Resize(size);
root_window_->GetLayer()->SetBounds(size);
@@ -558,7 +557,7 @@
void CompositorImpl::SetHasTransparentBackground(bool flag) {
has_transparent_background_ = flag;
if (host_)
- host_->GetLayerTree()->set_has_transparent_background(flag);
+ host_->set_has_transparent_background(flag);
}
void CompositorImpl::SetNeedsComposite() {
« no previous file with comments | « cc/trees/tree_synchronizer.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698