OLD | NEW |
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 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 private: | 920 private: |
921 std::string name_; | 921 std::string name_; |
922 }; | 922 }; |
923 | 923 |
924 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> | 924 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
925 Layer::TakeDebugInfo(cc::Layer* layer) { | 925 Layer::TakeDebugInfo(cc::Layer* layer) { |
926 return base::WrapUnique(new LayerDebugInfo(name_)); | 926 return base::WrapUnique(new LayerDebugInfo(name_)); |
927 } | 927 } |
928 | 928 |
929 void Layer::didUpdateMainThreadScrollingReasons() {} | 929 void Layer::didUpdateMainThreadScrollingReasons() {} |
| 930 void Layer::didChangeScrollbarsHidden(bool) {} |
930 | 931 |
931 void Layer::CollectAnimators( | 932 void Layer::CollectAnimators( |
932 std::vector<scoped_refptr<LayerAnimator>>* animators) { | 933 std::vector<scoped_refptr<LayerAnimator>>* animators) { |
933 if (animator_ && animator_->is_animating()) | 934 if (animator_ && animator_->is_animating()) |
934 animators->push_back(animator_); | 935 animators->push_back(animator_); |
935 for (auto* child : children_) | 936 for (auto* child : children_) |
936 child->CollectAnimators(animators); | 937 child->CollectAnimators(animators); |
937 } | 938 } |
938 | 939 |
939 void Layer::StackRelativeTo(Layer* child, Layer* other, bool above) { | 940 void Layer::StackRelativeTo(Layer* child, Layer* other, bool above) { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 const auto it = std::find_if(mirrors_.begin(), mirrors_.end(), | 1173 const auto it = std::find_if(mirrors_.begin(), mirrors_.end(), |
1173 [mirror](const std::unique_ptr<LayerMirror>& mirror_ptr) { | 1174 [mirror](const std::unique_ptr<LayerMirror>& mirror_ptr) { |
1174 return mirror_ptr.get() == mirror; | 1175 return mirror_ptr.get() == mirror; |
1175 }); | 1176 }); |
1176 | 1177 |
1177 DCHECK(it != mirrors_.end()); | 1178 DCHECK(it != mirrors_.end()); |
1178 mirrors_.erase(it); | 1179 mirrors_.erase(it); |
1179 } | 1180 } |
1180 | 1181 |
1181 } // namespace ui | 1182 } // namespace ui |
OLD | NEW |