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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 void Append(const FilterOperation& filter); | 37 void Append(const FilterOperation& filter); |
38 | 38 |
39 // Removes all filter operations. | 39 // Removes all filter operations. |
40 void Clear(); | 40 void Clear(); |
41 | 41 |
42 bool IsEmpty() const; | 42 bool IsEmpty() const; |
43 | 43 |
44 void GetOutsets(int* top, int* right, int* bottom, int* left) const; | 44 void GetOutsets(int* top, int* right, int* bottom, int* left) const; |
45 bool HasFilterThatMovesPixels() const; | 45 bool HasFilterThatMovesPixels() const; |
46 bool HasFilterThatAffectsOpacity() const; | 46 bool HasFilterThatAffectsOpacity() const; |
| 47 bool HasReferenceFilter() const; |
47 | 48 |
48 size_t size() const { | 49 size_t size() const { |
49 return operations_.size(); | 50 return operations_.size(); |
50 } | 51 } |
51 | 52 |
52 const FilterOperation& at(size_t index) const { | 53 const FilterOperation& at(size_t index) const { |
53 DCHECK_LT(index, size()); | 54 DCHECK_LT(index, size()); |
54 return operations_[index]; | 55 return operations_[index]; |
55 } | 56 } |
56 | 57 |
(...skipping 12 matching lines...) Expand all Loading... |
69 | 70 |
70 scoped_ptr<base::Value> AsValue() const; | 71 scoped_ptr<base::Value> AsValue() const; |
71 | 72 |
72 private: | 73 private: |
73 std::vector<FilterOperation> operations_; | 74 std::vector<FilterOperation> operations_; |
74 }; | 75 }; |
75 | 76 |
76 } // namespace cc | 77 } // namespace cc |
77 | 78 |
78 #endif // CC_OUTPUT_FILTER_OPERATIONS_H_ | 79 #endif // CC_OUTPUT_FILTER_OPERATIONS_H_ |
OLD | NEW |