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

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

Issue 12774006: cc: Chromify Layer and LayerImpl classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MoreAndroidCompilings Created 7 years, 9 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/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 8127b19b6f85e925f05ca840ca447ba215cefbab..753f20d33c564512d867a010de42981b4313465a 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -115,7 +115,7 @@ jobject CompositorImpl::GetSurface(int surface_id) {
}
CompositorImpl::CompositorImpl(Compositor::Client* client)
- : root_layer_(cc::Layer::create()),
+ : root_layer_(cc::Layer::Create()),
has_transparent_background_(false),
window_(NULL),
surface_id_(0),
@@ -133,8 +133,8 @@ void CompositorImpl::Composite() {
}
void CompositorImpl::SetRootLayer(scoped_refptr<cc::Layer> root_layer) {
- root_layer_->removeAllChildren();
- root_layer_->addChild(root_layer);
+ root_layer_->RemoveAllChildren();
+ root_layer_->AddChild(root_layer);
}
void CompositorImpl::SetWindowSurface(ANativeWindow* window) {
@@ -222,7 +222,7 @@ void CompositorImpl::SetWindowBounds(const gfx::Size& size) {
size_ = size;
if (host_)
host_->setViewportSize(size, size);
- root_layer_->setBounds(size);
+ root_layer_->SetBounds(size);
}
void CompositorImpl::SetHasTransparentBackground(bool flag) {
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698