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

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

Issue 22875045: cc: Remove unnecessary "default" cases from switch statements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix HasFilterThatMovesPixels()/HasFilterThatAffectsOpacity() Created 7 years, 3 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/resources/tile_priority.cc ('k') | cc/trees/layer_tree_impl.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_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 break; 538 break;
539 539
540 case AnimationEvent::Finished: 540 case AnimationEvent::Finished:
541 (*iter).second->NotifyAnimationFinished((*events)[event_index], 541 (*iter).second->NotifyAnimationFinished((*events)[event_index],
542 wall_clock_time.ToDoubleT()); 542 wall_clock_time.ToDoubleT());
543 break; 543 break;
544 544
545 case AnimationEvent::PropertyUpdate: 545 case AnimationEvent::PropertyUpdate:
546 (*iter).second->NotifyAnimationPropertyUpdate((*events)[event_index]); 546 (*iter).second->NotifyAnimationPropertyUpdate((*events)[event_index]);
547 break; 547 break;
548
549 default:
550 NOTREACHED();
551 } 548 }
552 } 549 }
553 } 550 }
554 } 551 }
555 552
556 void LayerTreeHost::SetRootLayer(scoped_refptr<Layer> root_layer) { 553 void LayerTreeHost::SetRootLayer(scoped_refptr<Layer> root_layer) {
557 if (root_layer_.get() == root_layer.get()) 554 if (root_layer_.get() == root_layer.get())
558 return; 555 return;
559 556
560 if (root_layer_.get()) 557 if (root_layer_.get())
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 void LayerTreeHost::DidLoseUIResources() { 1169 void LayerTreeHost::DidLoseUIResources() {
1173 // When output surface is lost, we need to recreate the resource. 1170 // When output surface is lost, we need to recreate the resource.
1174 for (UIResourceClientMap::iterator iter = ui_resource_client_map_.begin(); 1171 for (UIResourceClientMap::iterator iter = ui_resource_client_map_.begin();
1175 iter != ui_resource_client_map_.end(); 1172 iter != ui_resource_client_map_.end();
1176 ++iter) { 1173 ++iter) {
1177 UIResourceLost(iter->first); 1174 UIResourceLost(iter->first);
1178 } 1175 }
1179 } 1176 }
1180 1177
1181 } // namespace cc 1178 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile_priority.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698