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" |
11 #include "skia/ext/refptr.h" | 11 #include "skia/ext/refptr.h" |
12 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
13 #include "third_party/skia/include/core/SkImageFilter.h" | 13 #include "third_party/skia/include/core/SkImageFilter.h" |
14 #include "third_party/skia/include/core/SkRegion.h" | 14 #include "third_party/skia/include/core/SkRegion.h" |
15 #include "third_party/skia/include/core/SkScalar.h" | 15 #include "third_party/skia/include/core/SkScalar.h" |
16 #include "ui/gfx/geometry/point.h" | 16 #include "ui/gfx/geometry/point.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 namespace trace_event { | 19 namespace debug { |
20 class TracedValue; | 20 class TracedValue; |
21 } | 21 } |
22 | 22 class Value; |
23 // TODO(ssid): remove these aliases after the tracing clients are moved to the | |
24 // new trace_event namespace. See crbug.com/451032. ETA: March 2015 | |
25 namespace debug { | |
26 using ::base::trace_event::TracedValue; | |
27 } | 23 } |
28 class Value; | |
29 } // namespace base | |
30 | 24 |
31 namespace cc { | 25 namespace cc { |
32 | 26 |
33 class CC_EXPORT FilterOperation { | 27 class CC_EXPORT FilterOperation { |
34 public: | 28 public: |
35 enum FilterType { | 29 enum FilterType { |
36 GRAYSCALE, | 30 GRAYSCALE, |
37 SEPIA, | 31 SEPIA, |
38 SATURATE, | 32 SATURATE, |
39 HUE_ROTATE, | 33 HUE_ROTATE, |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 SkColor drop_shadow_color_; | 252 SkColor drop_shadow_color_; |
259 skia::RefPtr<SkImageFilter> image_filter_; | 253 skia::RefPtr<SkImageFilter> image_filter_; |
260 SkScalar matrix_[20]; | 254 SkScalar matrix_[20]; |
261 int zoom_inset_; | 255 int zoom_inset_; |
262 SkRegion region_; | 256 SkRegion region_; |
263 }; | 257 }; |
264 | 258 |
265 } // namespace cc | 259 } // namespace cc |
266 | 260 |
267 #endif // CC_OUTPUT_FILTER_OPERATION_H_ | 261 #endif // CC_OUTPUT_FILTER_OPERATION_H_ |
OLD | NEW |