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

Unified Diff: cc/layer_tree_impl.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
« no previous file with comments | « cc/layer_tree_impl.h ('k') | cc/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_impl.cc
diff --git a/cc/layer_tree_impl.cc b/cc/layer_tree_impl.cc
index 92cb69367c86138cec6dae1979c68be9e39a1e7d..1af316d743da69d39baede19e13dc0d085f48cf3 100644
--- a/cc/layer_tree_impl.cc
+++ b/cc/layer_tree_impl.cc
@@ -87,7 +87,7 @@ scoped_ptr<LayerImpl> LayerTreeImpl::DetachLayerTree() {
return root_layer_.Pass();
}
-void LayerTreeImpl::pushPropertiesTo(LayerTreeImpl* target_tree) {
+void LayerTreeImpl::PushPropertiesTo(LayerTreeImpl* target_tree) {
target_tree->SetPageScaleFactorAndLimits(
page_scale_factor(), min_page_scale_factor(), max_page_scale_factor());
target_tree->SetPageScaleDelta(
@@ -178,7 +178,7 @@ gfx::SizeF LayerTreeImpl::ScrollableViewportSize() const {
LayerImpl* clip_layer = NULL;
if (root_scroll_layer_)
clip_layer = root_scroll_layer_->parent();
- if (clip_layer && clip_layer->masksToBounds()) {
+ if (clip_layer && clip_layer->masks_to_bounds()) {
view_bounds = clip_layer->bounds();
} else {
view_bounds = gfx::ScaleSize(device_viewport_size(),
@@ -200,7 +200,7 @@ void LayerTreeImpl::UpdateMaxScrollOffset() {
// having a vertical scrollbar but no horizontal overflow.
max_scroll.ClampToMin(gfx::Vector2dF());
- root_scroll_layer_->setMaxScrollOffset(gfx::ToFlooredVector2d(max_scroll));
+ root_scroll_layer_->SetMaxScrollOffset(gfx::ToFlooredVector2d(max_scroll));
}
gfx::Transform LayerTreeImpl::ImplTransform() const {
@@ -211,7 +211,7 @@ gfx::Transform LayerTreeImpl::ImplTransform() const {
struct UpdateTilePrioritiesForLayer {
void operator()(LayerImpl *layer) {
- layer->updateTilePriorities();
+ layer->UpdateTilePriorities();
}
};
@@ -234,7 +234,7 @@ void LayerTreeImpl::UpdateDrawProperties(UpdateDrawPropertiesReason reason) {
return;
if (root_scroll_layer_) {
- root_scroll_layer_->setImplTransform(ImplTransform());
+ root_scroll_layer_->SetImplTransform(ImplTransform());
// Setting the impl transform re-sets this.
needs_update_draw_properties_ = false;
}
@@ -264,7 +264,7 @@ static void ClearRenderSurfacesOnLayerImplRecursive(LayerImpl* current)
DCHECK(current);
for (size_t i = 0; i < current->children().size(); ++i)
ClearRenderSurfacesOnLayerImplRecursive(current->children()[i]);
- current->clearRenderSurface();
+ current->ClearRenderSurface();
}
void LayerTreeImpl::ClearRenderSurfaces() {
@@ -283,7 +283,7 @@ bool LayerTreeImpl::AreVisibleResourcesReady() const {
LayerIteratorType end = LayerIteratorType::end(&render_surface_layer_list_);
for (LayerIteratorType it = LayerIteratorType::begin(
&render_surface_layer_list_); it != end; ++it) {
- if (it.representsItself() && !(*it)->areVisibleResourcesReady())
+ if (it.representsItself() && !(*it)->AreVisibleResourcesReady())
return false;
}
@@ -324,7 +324,7 @@ void LayerTreeImpl::PushPersistedState(LayerTreeImpl* pendingTree) {
}
static void DidBecomeActiveRecursive(LayerImpl* layer) {
- layer->didBecomeActive();
+ layer->DidBecomeActive();
for (size_t i = 0; i < layer->children().size(); ++i)
DidBecomeActiveRecursive(layer->children()[i]);
}
« no previous file with comments | « cc/layer_tree_impl.h ('k') | cc/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698