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

Side by Side Diff: cc/output/filter_operations.cc

Issue 2574713003: Add toString() for paint property node classes (Closed)
Patch Set: Update test Created 4 years 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
« no previous file with comments | « cc/output/filter_operations.h ('k') | cc/output/filter_operations_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/output/filter_operations.h ('k') | cc/output/filter_operations_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698