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_OPERATION_H_ | 5 #ifndef CC_OUTPUT_FILTER_OPERATION_H_ |
6 #define CC_OUTPUT_FILTER_OPERATION_H_ | 6 #define CC_OUTPUT_FILTER_OPERATION_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 INVERT, | 30 INVERT, |
31 BRIGHTNESS, | 31 BRIGHTNESS, |
32 CONTRAST, | 32 CONTRAST, |
33 OPACITY, | 33 OPACITY, |
34 BLUR, | 34 BLUR, |
35 DROP_SHADOW, | 35 DROP_SHADOW, |
36 COLOR_MATRIX, | 36 COLOR_MATRIX, |
37 ZOOM, | 37 ZOOM, |
38 REFERENCE, | 38 REFERENCE, |
39 SATURATING_BRIGHTNESS, // Not used in CSS/SVG. | 39 SATURATING_BRIGHTNESS, // Not used in CSS/SVG. |
| 40 FILTER_TYPE_LAST = SATURATING_BRIGHTNESS |
40 }; | 41 }; |
41 | 42 |
42 FilterOperation(const FilterOperation& other); | 43 FilterOperation(const FilterOperation& other); |
43 | 44 |
44 ~FilterOperation(); | 45 ~FilterOperation(); |
45 | 46 |
46 FilterType type() const { return type_; } | 47 FilterType type() const { return type_; } |
47 | 48 |
48 float amount() const { | 49 float amount() const { |
49 DCHECK_NE(type_, COLOR_MATRIX); | 50 DCHECK_NE(type_, COLOR_MATRIX); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 gfx::Point drop_shadow_offset_; | 213 gfx::Point drop_shadow_offset_; |
213 SkColor drop_shadow_color_; | 214 SkColor drop_shadow_color_; |
214 skia::RefPtr<SkImageFilter> image_filter_; | 215 skia::RefPtr<SkImageFilter> image_filter_; |
215 SkScalar matrix_[20]; | 216 SkScalar matrix_[20]; |
216 int zoom_inset_; | 217 int zoom_inset_; |
217 }; | 218 }; |
218 | 219 |
219 } // namespace cc | 220 } // namespace cc |
220 | 221 |
221 #endif // CC_OUTPUT_FILTER_OPERATION_H_ | 222 #endif // CC_OUTPUT_FILTER_OPERATION_H_ |
OLD | NEW |