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

Side by Side Diff: cc/trees/layer_tree_impl.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/occlusion_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_impl.h" 5 #include "cc/trees/layer_tree_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "cc/animation/animation.h" 8 #include "cc/animation/animation.h"
9 #include "cc/animation/animation_id_provider.h" 9 #include "cc/animation/animation_id_provider.h"
10 #include "cc/animation/keyframed_animation_curve.h" 10 #include "cc/animation/keyframed_animation_curve.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 if (!needs_update_draw_properties_) { 271 if (!needs_update_draw_properties_) {
272 if (reason == UPDATE_ACTIVE_TREE_FOR_DRAW && root_layer()) 272 if (reason == UPDATE_ACTIVE_TREE_FOR_DRAW && root_layer())
273 LayerTreeHostCommon::CallFunctionForSubtree<UpdateTilePrioritiesForLayer>( 273 LayerTreeHostCommon::CallFunctionForSubtree<UpdateTilePrioritiesForLayer>(
274 root_layer()); 274 root_layer());
275 return; 275 return;
276 } 276 }
277 277
278 needs_update_draw_properties_ = false; 278 needs_update_draw_properties_ = false;
279 render_surface_layer_list_.clear(); 279 render_surface_layer_list_.clear();
280 280
281 // For maxTextureSize. 281 // For max_texture_size.
282 if (!layer_tree_host_impl_->renderer()) 282 if (!layer_tree_host_impl_->renderer())
283 return; 283 return;
284 284
285 if (!root_layer()) 285 if (!root_layer())
286 return; 286 return;
287 287
288 if (root_scroll_layer_) { 288 if (root_scroll_layer_) {
289 root_scroll_layer_->SetImplTransform(ImplTransform()); 289 root_scroll_layer_->SetImplTransform(ImplTransform());
290 // Setting the impl transform re-sets this. 290 // Setting the impl transform re-sets this.
291 needs_update_draw_properties_ = false; 291 needs_update_draw_properties_ = false;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 void LayerTreeImpl::RegisterLayer(LayerImpl* layer) { 364 void LayerTreeImpl::RegisterLayer(LayerImpl* layer) {
365 DCHECK(!LayerById(layer->id())); 365 DCHECK(!LayerById(layer->id()));
366 layer_id_map_[layer->id()] = layer; 366 layer_id_map_[layer->id()] = layer;
367 } 367 }
368 368
369 void LayerTreeImpl::UnregisterLayer(LayerImpl* layer) { 369 void LayerTreeImpl::UnregisterLayer(LayerImpl* layer) {
370 DCHECK(LayerById(layer->id())); 370 DCHECK(LayerById(layer->id()));
371 layer_id_map_.erase(layer->id()); 371 layer_id_map_.erase(layer->id());
372 } 372 }
373 373
374 void LayerTreeImpl::PushPersistedState(LayerTreeImpl* pendingTree) { 374 void LayerTreeImpl::PushPersistedState(LayerTreeImpl* pending_tree) {
375 int id = currently_scrolling_layer_ ? currently_scrolling_layer_->id() : 0; 375 int id = currently_scrolling_layer_ ? currently_scrolling_layer_->id() : 0;
376 pendingTree->SetCurrentlyScrollingLayer( 376 pending_tree->SetCurrentlyScrollingLayer(
377 LayerTreeHostCommon::FindLayerInSubtree(pendingTree->root_layer(), id)); 377 LayerTreeHostCommon::FindLayerInSubtree(pending_tree->root_layer(), id));
378 } 378 }
379 379
380 static void DidBecomeActiveRecursive(LayerImpl* layer) { 380 static void DidBecomeActiveRecursive(LayerImpl* layer) {
381 layer->DidBecomeActive(); 381 layer->DidBecomeActive();
382 for (size_t i = 0; i < layer->children().size(); ++i) 382 for (size_t i = 0; i < layer->children().size(); ++i)
383 DidBecomeActiveRecursive(layer->children()[i]); 383 DidBecomeActiveRecursive(layer->children()[i]);
384 } 384 }
385 385
386 void LayerTreeImpl::DidBecomeActive() { 386 void LayerTreeImpl::DidBecomeActive() {
387 if (root_layer()) 387 if (root_layer())
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 } 423 }
424 424
425 Proxy* LayerTreeImpl::proxy() const { 425 Proxy* LayerTreeImpl::proxy() const {
426 return layer_tree_host_impl_->proxy(); 426 return layer_tree_host_impl_->proxy();
427 } 427 }
428 428
429 const LayerTreeSettings& LayerTreeImpl::settings() const { 429 const LayerTreeSettings& LayerTreeImpl::settings() const {
430 return layer_tree_host_impl_->settings(); 430 return layer_tree_host_impl_->settings();
431 } 431 }
432 432
433 const RendererCapabilities& LayerTreeImpl::rendererCapabilities() const { 433 const RendererCapabilities& LayerTreeImpl::GetRendererCapabilities() const {
434 return layer_tree_host_impl_->GetRendererCapabilities(); 434 return layer_tree_host_impl_->GetRendererCapabilities();
435 } 435 }
436 436
437 OutputSurface* LayerTreeImpl::output_surface() const { 437 OutputSurface* LayerTreeImpl::output_surface() const {
438 return layer_tree_host_impl_->output_surface(); 438 return layer_tree_host_impl_->output_surface();
439 } 439 }
440 440
441 ResourceProvider* LayerTreeImpl::resource_provider() const { 441 ResourceProvider* LayerTreeImpl::resource_provider() const {
442 return layer_tree_host_impl_->resource_provider(); 442 return layer_tree_host_impl_->resource_provider();
443 } 443 }
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 StartFadeOutAnimation(PinchZoomScrollbarVertical()); 656 StartFadeOutAnimation(PinchZoomScrollbarVertical());
657 } 657 }
658 658
659 bool LayerTreeImpl::HasPinchZoomScrollbars() const { 659 bool LayerTreeImpl::HasPinchZoomScrollbars() const {
660 return pinch_zoom_scrollbar_horizontal_layer_id_ != Layer::INVALID_ID && 660 return pinch_zoom_scrollbar_horizontal_layer_id_ != Layer::INVALID_ID &&
661 pinch_zoom_scrollbar_vertical_layer_id_ != Layer::INVALID_ID; 661 pinch_zoom_scrollbar_vertical_layer_id_ != Layer::INVALID_ID;
662 } 662 }
663 663
664 664
665 } // namespace cc 665 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/occlusion_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698