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

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

Issue 2661523003: cc: Merge LayerTree into the LayerTreeHost. (Closed)
Patch Set: auto Created 3 years, 11 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_unittest.cc ('k') | content/renderer/gpu/gpu_benchmarking_extension.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 752f72344cfa462ec18928f2ab52ce6e54a1641c..fd3a6261e3cf5b938bf50805887de79c2eef44c0 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -443,11 +443,11 @@ void CompositorImpl::CreateLayerTreeHost() {
params.mutator_host = animation_host_.get();
host_ = cc::LayerTreeHost::CreateSingleThreaded(this, &params);
DCHECK(!host_->IsVisible());
- host_->GetLayerTree()->SetRootLayer(root_window_->GetLayer());
+ host_->SetRootLayer(root_window_->GetLayer());
host_->SetFrameSinkId(frame_sink_id_);
- host_->GetLayerTree()->SetViewportSize(size_);
+ host_->SetViewportSize(size_);
SetHasTransparentBackground(false);
- host_->GetLayerTree()->SetDeviceScaleFactor(1);
+ host_->SetDeviceScaleFactor(1);
if (needs_animate_)
host_->SetNeedsAnimate();
@@ -481,7 +481,7 @@ void CompositorImpl::SetWindowBounds(const gfx::Size& size) {
size_ = size;
if (host_)
- host_->GetLayerTree()->SetViewportSize(size);
+ host_->SetViewportSize(size);
if (display_)
display_->Resize(size);
root_window_->GetLayer()->SetBounds(size);
@@ -490,7 +490,7 @@ void CompositorImpl::SetWindowBounds(const gfx::Size& size) {
void CompositorImpl::SetHasTransparentBackground(bool transparent) {
has_transparent_background_ = transparent;
if (host_) {
- host_->GetLayerTree()->set_has_transparent_background(transparent);
+ host_->set_has_transparent_background(transparent);
// Give a delay in setting the background color to avoid the color for
// the normal mode (white) affecting the UI transition.
@@ -504,7 +504,7 @@ void CompositorImpl::SetHasTransparentBackground(bool transparent) {
}
void CompositorImpl::SetBackgroundColor(int color) {
- host_->GetLayerTree()->set_background_color(color);
+ host_->set_background_color(color);
}
void CompositorImpl::SetNeedsComposite() {
« no previous file with comments | « cc/trees/tree_synchronizer_unittest.cc ('k') | content/renderer/gpu/gpu_benchmarking_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698