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

Unified Diff: cc/trees/layer_tree_host_common.h

Issue 12676029: cc: Fix capitalization style in chromified files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.h
diff --git a/cc/trees/layer_tree_host_common.h b/cc/trees/layer_tree_host_common.h
index 7644c91db81e8fd35ded6aaefd5fd21455632e15..84ad8c177e3d99cac97ffafa25e4e7b088c56c64 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -98,8 +98,8 @@ bool LayerTreeHostCommon::RenderSurfaceContributesToTarget(
// A layer will either contribute its own content, or its render surface's
// content, to the target surface. The layer contributes its surface's content
// when both the following are true:
- // (1) The layer actually has a renderSurface, and
- // (2) The layer's renderSurface is not the same as the targetSurface.
+ // (1) The layer actually has a render surface, and
+ // (2) The layer's render surface is not the same as the target surface.
//
// Otherwise, the layer just contributes itself to the target surface.
@@ -131,12 +131,12 @@ template <class Function, typename LayerType>
void LayerTreeHostCommon::CallFunctionForSubtree(LayerType* root_layer) {
Function()(root_layer);
- if (LayerType* maskLayer = root_layer->mask_layer())
- Function()(maskLayer);
- if (LayerType* replicaLayer = root_layer->replica_layer()) {
- Function()(replicaLayer);
- if (LayerType* maskLayer = replicaLayer->mask_layer())
- Function()(maskLayer);
+ if (LayerType* mask_layer = root_layer->mask_layer())
+ Function()(mask_layer);
+ if (LayerType* replica_layer = root_layer->replica_layer()) {
+ Function()(replica_layer);
+ if (LayerType* mask_layer = replica_layer->mask_layer())
+ Function()(mask_layer);
}
for (size_t i = 0; i < root_layer->children().size(); ++i) {
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698