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

Side by Side Diff: cc/layers/layer_impl.cc

Issue 12259027: cc: Simplify the logic for deciding to update tile priorities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sper simple x2 Created 7 years, 8 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
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/layers/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "cc/animation/animation_registrar.h" 10 #include "cc/animation/animation_registrar.h"
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 if (replica_layer_) 618 if (replica_layer_)
619 replica_layer_->set_parent(this); 619 replica_layer_->set_parent(this);
620 NoteLayerPropertyChangedForSubtree(); 620 NoteLayerPropertyChangedForSubtree();
621 } 621 }
622 622
623 scoped_ptr<LayerImpl> LayerImpl::TakeReplicaLayer() { 623 scoped_ptr<LayerImpl> LayerImpl::TakeReplicaLayer() {
624 replica_layer_id_ = -1; 624 replica_layer_id_ = -1;
625 return replica_layer_.Pass(); 625 return replica_layer_.Pass();
626 } 626 }
627 627
628 bool LayerImpl::NeedsFirstTimeUpdateTilePriorities() const {
629 return false;
630 }
631
628 ScrollbarLayerImpl* LayerImpl::ToScrollbarLayer() { 632 ScrollbarLayerImpl* LayerImpl::ToScrollbarLayer() {
629 return NULL; 633 return NULL;
630 } 634 }
631 635
632 void LayerImpl::SetDrawsContent(bool draws_content) { 636 void LayerImpl::SetDrawsContent(bool draws_content) {
633 if (draws_content_ == draws_content) 637 if (draws_content_ == draws_content)
634 return; 638 return;
635 639
636 draws_content_ = draws_content; 640 draws_content_ = draws_content;
637 NoteLayerPropertyChanged(); 641 NoteLayerPropertyChanged();
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 dict->Set("layer_quad", MathUtil::AsValue(layer_quad).release()); 967 dict->Set("layer_quad", MathUtil::AsValue(layer_quad).release());
964 } 968 }
965 969
966 scoped_ptr<base::Value> LayerImpl::AsValue() const { 970 scoped_ptr<base::Value> LayerImpl::AsValue() const {
967 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 971 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
968 AsValueInto(state.get()); 972 AsValueInto(state.get());
969 return state.PassAs<base::Value>(); 973 return state.PassAs<base::Value>();
970 } 974 }
971 975
972 } // namespace cc 976 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698