| OLD | NEW |
| 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/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "cc/animation/animation_registrar.h" | 9 #include "cc/animation/animation_registrar.h" |
| 10 #include "cc/animation/scrollbar_animation_controller.h" | 10 #include "cc/animation/scrollbar_animation_controller.h" |
| (...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1179 | 1179 |
| 1180 if (reasons & kCompositingReasonPositionFixed) | 1180 if (reasons & kCompositingReasonPositionFixed) |
| 1181 reason_list->AppendString("Is fixed position"); | 1181 reason_list->AppendString("Is fixed position"); |
| 1182 | 1182 |
| 1183 if (reasons & kCompositingReasonPositionSticky) | 1183 if (reasons & kCompositingReasonPositionSticky) |
| 1184 reason_list->AppendString("Is sticky position"); | 1184 reason_list->AppendString("Is sticky position"); |
| 1185 | 1185 |
| 1186 if (reasons & kCompositingReasonOverflowScrollingTouch) | 1186 if (reasons & kCompositingReasonOverflowScrollingTouch) |
| 1187 reason_list->AppendString("Is a scrollable overflow element"); | 1187 reason_list->AppendString("Is a scrollable overflow element"); |
| 1188 | 1188 |
| 1189 if (reasons & kCompositingReasonBlending) | |
| 1190 reason_list->AppendString("Has a blend mode"); | |
| 1191 | |
| 1192 if (reasons & kCompositingReasonAssumedOverlap) | 1189 if (reasons & kCompositingReasonAssumedOverlap) |
| 1193 reason_list->AppendString("Might overlap a composited animation"); | 1190 reason_list->AppendString("Might overlap a composited animation"); |
| 1194 | 1191 |
| 1195 if (reasons & kCompositingReasonOverlap) | 1192 if (reasons & kCompositingReasonOverlap) |
| 1196 reason_list->AppendString("Overlaps other composited content"); | 1193 reason_list->AppendString("Overlaps other composited content"); |
| 1197 | 1194 |
| 1198 if (reasons & kCompositingReasonNegativeZIndexChildren) { | 1195 if (reasons & kCompositingReasonNegativeZIndexChildren) { |
| 1199 reason_list->AppendString("Might overlap negative z-index " | 1196 reason_list->AppendString("Might overlap negative z-index " |
| 1200 "composited content"); | 1197 "composited content"); |
| 1201 } | 1198 } |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1306 | 1303 |
| 1307 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; } | 1304 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; } |
| 1308 | 1305 |
| 1309 scoped_ptr<base::Value> LayerImpl::AsValue() const { | 1306 scoped_ptr<base::Value> LayerImpl::AsValue() const { |
| 1310 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); | 1307 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); |
| 1311 AsValueInto(state.get()); | 1308 AsValueInto(state.get()); |
| 1312 return state.PassAs<base::Value>(); | 1309 return state.PassAs<base::Value>(); |
| 1313 } | 1310 } |
| 1314 | 1311 |
| 1315 } // namespace cc | 1312 } // namespace cc |
| OLD | NEW |