| 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 #ifndef CC_OUTPUT_FILTER_OPERATIONS_H_ | 5 #ifndef CC_OUTPUT_FILTER_OPERATIONS_H_ |
| 6 #define CC_OUTPUT_FILTER_OPERATIONS_H_ | 6 #define CC_OUTPUT_FILTER_OPERATIONS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // linearly interpolating at each position a |progress| fraction of the way | 83 // linearly interpolating at each position a |progress| fraction of the way |
| 84 // from the filter in |from| to the filter in this. If |from| and this are of | 84 // from the filter in |from| to the filter in this. If |from| and this are of |
| 85 // different lengths, they are treated as having the same length by padding | 85 // different lengths, they are treated as having the same length by padding |
| 86 // the shorter sequence with no-op filters of the same type as the filters in | 86 // the shorter sequence with no-op filters of the same type as the filters in |
| 87 // the corresponding positions in the longer sequence. If either sequence has | 87 // the corresponding positions in the longer sequence. If either sequence has |
| 88 // a reference filter or if there is a type mismatch at some position, returns | 88 // a reference filter or if there is a type mismatch at some position, returns |
| 89 // a copy of this. | 89 // a copy of this. |
| 90 FilterOperations Blend(const FilterOperations& from, double progress) const; | 90 FilterOperations Blend(const FilterOperations& from, double progress) const; |
| 91 | 91 |
| 92 void AsValueInto(base::trace_event::TracedValue* value) const; | 92 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 93 std::string ToString() const; |
| 93 | 94 |
| 94 private: | 95 private: |
| 95 std::vector<FilterOperation> operations_; | 96 std::vector<FilterOperation> operations_; |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } // namespace cc | 99 } // namespace cc |
| 99 | 100 |
| 100 #endif // CC_OUTPUT_FILTER_OPERATIONS_H_ | 101 #endif // CC_OUTPUT_FILTER_OPERATIONS_H_ |
| OLD | NEW |