| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/output/filter_operations.h" | 5 #include "cc/output/filter_operations.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 #include <numeric> | 10 #include <numeric> |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 void FilterOperations::AsValueInto( | 239 void FilterOperations::AsValueInto( |
| 240 base::trace_event::TracedValue* value) const { | 240 base::trace_event::TracedValue* value) const { |
| 241 for (size_t i = 0; i < operations_.size(); ++i) { | 241 for (size_t i = 0; i < operations_.size(); ++i) { |
| 242 value->BeginDictionary(); | 242 value->BeginDictionary(); |
| 243 operations_[i].AsValueInto(value); | 243 operations_[i].AsValueInto(value); |
| 244 value->EndDictionary(); | 244 value->EndDictionary(); |
| 245 } | 245 } |
| 246 } | 246 } |
| 247 | 247 |
| 248 std::string FilterOperations::ToString() const { |
| 249 base::trace_event::TracedValue value; |
| 250 value.BeginArray("FilterOperations"); |
| 251 AsValueInto(&value); |
| 252 value.EndArray(); |
| 253 return value.ToString(); |
| 254 } |
| 255 |
| 248 } // namespace cc | 256 } // namespace cc |
| OLD | NEW |