| 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" | |
| 11 #include "skia/ext/refptr.h" | 10 #include "skia/ext/refptr.h" |
| 12 #include "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
| 13 #include "third_party/skia/include/core/SkImageFilter.h" | 12 #include "third_party/skia/include/core/SkImageFilter.h" |
| 14 #include "third_party/skia/include/core/SkRegion.h" | 13 #include "third_party/skia/include/core/SkRegion.h" |
| 15 #include "third_party/skia/include/core/SkScalar.h" | 14 #include "third_party/skia/include/core/SkScalar.h" |
| 16 #include "ui/gfx/geometry/point.h" | 15 #include "ui/gfx/geometry/point.h" |
| 17 | 16 |
| 18 namespace base { | 17 namespace base { |
| 19 namespace trace_event { | 18 namespace trace_event { |
| 20 class TracedValue; | 19 class TracedValue; |
| 21 } | 20 } |
| 22 class Value; | 21 class Value; |
| 23 } | 22 } |
| 24 | 23 |
| 25 namespace cc { | 24 namespace cc { |
| 26 | 25 |
| 27 class CC_EXPORT FilterOperation { | 26 class FilterOperation { |
| 28 public: | 27 public: |
| 29 enum FilterType { | 28 enum FilterType { |
| 30 GRAYSCALE, | 29 GRAYSCALE, |
| 31 SEPIA, | 30 SEPIA, |
| 32 SATURATE, | 31 SATURATE, |
| 33 HUE_ROTATE, | 32 HUE_ROTATE, |
| 34 INVERT, | 33 INVERT, |
| 35 BRIGHTNESS, | 34 BRIGHTNESS, |
| 36 CONTRAST, | 35 CONTRAST, |
| 37 OPACITY, | 36 OPACITY, |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 SkColor drop_shadow_color_; | 251 SkColor drop_shadow_color_; |
| 253 skia::RefPtr<SkImageFilter> image_filter_; | 252 skia::RefPtr<SkImageFilter> image_filter_; |
| 254 SkScalar matrix_[20]; | 253 SkScalar matrix_[20]; |
| 255 int zoom_inset_; | 254 int zoom_inset_; |
| 256 SkRegion region_; | 255 SkRegion region_; |
| 257 }; | 256 }; |
| 258 | 257 |
| 259 } // namespace cc | 258 } // namespace cc |
| 260 | 259 |
| 261 #endif // CC_OUTPUT_FILTER_OPERATION_H_ | 260 #endif // CC_OUTPUT_FILTER_OPERATION_H_ |
| OLD | NEW |