OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_PAINT_PAINT_FLAGS_H_ | 5 #ifndef CC_PAINT_PAINT_FLAGS_H_ |
6 #define CC_PAINT_PAINT_FLAGS_H_ | 6 #define CC_PAINT_PAINT_FLAGS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "cc/paint/paint_export.h" | 9 #include "cc/paint/paint_export.h" |
10 #include "third_party/skia/include/core/SkCanvas.h" | 10 #include "third_party/skia/include/core/SkCanvas.h" |
11 #include "third_party/skia/include/core/SkColorFilter.h" | 11 #include "third_party/skia/include/core/SkColorFilter.h" |
12 #include "third_party/skia/include/core/SkDrawLooper.h" | 12 #include "third_party/skia/include/core/SkDrawLooper.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/SkMaskFilter.h" | 14 #include "third_party/skia/include/core/SkMaskFilter.h" |
15 #include "third_party/skia/include/core/SkPaint.h" | 15 #include "third_party/skia/include/core/SkPaint.h" |
16 #include "third_party/skia/include/core/SkPathEffect.h" | 16 #include "third_party/skia/include/core/SkPathEffect.h" |
| 17 #include "third_party/skia/include/core/SkShader.h" |
17 #include "third_party/skia/include/core/SkTypeface.h" | 18 #include "third_party/skia/include/core/SkTypeface.h" |
18 | 19 |
19 namespace cc { | 20 namespace cc { |
20 | 21 |
21 using PaintShader = SkShader; | 22 using PaintShader = SkShader; |
22 | 23 |
23 class CC_PAINT_EXPORT PaintFlags { | 24 class CC_PAINT_EXPORT PaintFlags { |
24 public: | 25 public: |
25 enum Style { | 26 enum Style { |
26 kFill_Style = SkPaint::kFill_Style, | 27 kFill_Style = SkPaint::kFill_Style, |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 return flags.paint_; | 219 return flags.paint_; |
219 } | 220 } |
220 | 221 |
221 ALWAYS_INLINE const SkPaint* ToSkPaint(const PaintFlags* flags) { | 222 ALWAYS_INLINE const SkPaint* ToSkPaint(const PaintFlags* flags) { |
222 return &flags->paint_; | 223 return &flags->paint_; |
223 } | 224 } |
224 | 225 |
225 } // namespace cc | 226 } // namespace cc |
226 | 227 |
227 #endif // CC_PAINT_PAINT_FLAGS_H_ | 228 #endif // CC_PAINT_PAINT_FLAGS_H_ |
OLD | NEW |