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

Side by Side Diff: ui/compositor/layer.cc

Issue 1419913002: Remove blink::WebLayerClient and WebGraphicsLayerDebugInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge with origin/master Created 5 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/compositor/layer.h" 5 #include "ui/compositor/layer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 base::DictionaryValue dictionary; 805 base::DictionaryValue dictionary;
806 dictionary.SetString("layer_name", name_); 806 dictionary.SetString("layer_name", name_);
807 base::JSONWriter::Write(dictionary, out); 807 base::JSONWriter::Write(dictionary, out);
808 } 808 }
809 809
810 private: 810 private:
811 ~LayerDebugInfo() override {} 811 ~LayerDebugInfo() override {}
812 std::string name_; 812 std::string name_;
813 }; 813 };
814 814
815 scoped_refptr<base::trace_event::ConvertableToTraceFormat> 815 scoped_refptr<base::trace_event::ConvertableToTraceFormat> Layer::TakeDebugInfo(
816 Layer::TakeDebugInfo() { 816 cc::Layer* layer) {
817 return new LayerDebugInfo(name_); 817 return new LayerDebugInfo(name_);
818 } 818 }
819 819
820 void Layer::OnAnimationStarted(const cc::AnimationEvent& event) { 820 void Layer::OnAnimationStarted(const cc::AnimationEvent& event) {
821 if (animator_.get()) 821 if (animator_.get())
822 animator_->OnThreadedAnimationStarted(event); 822 animator_->OnThreadedAnimationStarted(event);
823 } 823 }
824 824
825 void Layer::CollectAnimators( 825 void Layer::CollectAnimators(
826 std::vector<scoped_refptr<LayerAnimator>>* animators) { 826 std::vector<scoped_refptr<LayerAnimator>>* animators) {
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 animator_->RemoveFromCollection(collection); 1092 animator_->RemoveFromCollection(collection);
1093 for (auto* child : children_) 1093 for (auto* child : children_)
1094 child->RemoveAnimatorsInTreeFromCollection(collection); 1094 child->RemoveAnimatorsInTreeFromCollection(collection);
1095 } 1095 }
1096 1096
1097 bool Layer::IsAnimating() const { 1097 bool Layer::IsAnimating() const {
1098 return animator_.get() && animator_->is_animating(); 1098 return animator_.get() && animator_->is_animating();
1099 } 1099 }
1100 1100
1101 } // namespace ui 1101 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698