Index: cc/output/filter_operations.cc |
diff --git a/cc/output/filter_operations.cc b/cc/output/filter_operations.cc |
index dcdd4803fd60756b00ed365c8926573b4431eecf..443d7ecae6e556542ce1814a79c61c382418bb8e 100644 |
--- a/cc/output/filter_operations.cc |
+++ b/cc/output/filter_operations.cc |
@@ -2,11 +2,10 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include <cmath> |
+ |
#include "cc/output/filter_operations.h" |
-#include <cmath> |
- |
-#include "base/debug/trace_event_argument.h" |
#include "base/values.h" |
#include "cc/output/filter_operation.h" |
@@ -197,12 +196,11 @@ |
return blended_filters; |
} |
-void FilterOperations::AsValueInto(base::debug::TracedValue* value) const { |
- for (size_t i = 0; i < operations_.size(); ++i) { |
- value->BeginDictionary(); |
- operations_[i].AsValueInto(value); |
- value->EndDictionary(); |
- } |
+scoped_ptr<base::Value> FilterOperations::AsValue() const { |
+ scoped_ptr<base::ListValue> value(new base::ListValue); |
+ for (size_t i = 0; i < operations_.size(); ++i) |
+ value->Append(operations_[i].AsValue().release()); |
+ return value.PassAs<base::Value>(); |
} |
} // namespace cc |