| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 BLUR, | 42 BLUR, |
| 43 DROP_SHADOW, | 43 DROP_SHADOW, |
| 44 COLOR_MATRIX, | 44 COLOR_MATRIX, |
| 45 ZOOM, | 45 ZOOM, |
| 46 REFERENCE, | 46 REFERENCE, |
| 47 SATURATING_BRIGHTNESS, // Not used in CSS/SVG. | 47 SATURATING_BRIGHTNESS, // Not used in CSS/SVG. |
| 48 ALPHA_THRESHOLD, // Not used in CSS/SVG. | 48 ALPHA_THRESHOLD, // Not used in CSS/SVG. |
| 49 FILTER_TYPE_LAST = ALPHA_THRESHOLD | 49 FILTER_TYPE_LAST = ALPHA_THRESHOLD |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 FilterOperation(); |
| 53 |
| 52 FilterOperation(const FilterOperation& other); | 54 FilterOperation(const FilterOperation& other); |
| 53 | 55 |
| 54 ~FilterOperation(); | 56 ~FilterOperation(); |
| 55 | 57 |
| 56 FilterType type() const { return type_; } | 58 FilterType type() const { return type_; } |
| 57 | 59 |
| 58 float amount() const { | 60 float amount() const { |
| 59 DCHECK_NE(type_, COLOR_MATRIX); | 61 DCHECK_NE(type_, COLOR_MATRIX); |
| 60 DCHECK_NE(type_, REFERENCE); | 62 DCHECK_NE(type_, REFERENCE); |
| 61 return amount_; | 63 return amount_; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 SkColor drop_shadow_color_; | 261 SkColor drop_shadow_color_; |
| 260 sk_sp<SkImageFilter> image_filter_; | 262 sk_sp<SkImageFilter> image_filter_; |
| 261 SkScalar matrix_[20]; | 263 SkScalar matrix_[20]; |
| 262 int zoom_inset_; | 264 int zoom_inset_; |
| 263 SkRegion region_; | 265 SkRegion region_; |
| 264 }; | 266 }; |
| 265 | 267 |
| 266 } // namespace cc | 268 } // namespace cc |
| 267 | 269 |
| 268 #endif // CC_OUTPUT_FILTER_OPERATION_H_ | 270 #endif // CC_OUTPUT_FILTER_OPERATION_H_ |
| OLD | NEW |