OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkPictureShader_DEFINED | 8 #ifndef SkPictureShader_DEFINED |
9 #define SkPictureShader_DEFINED | 9 #define SkPictureShader_DEFINED |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 static sk_sp<SkShader> Make(sk_sp<SkPicture>, TileMode, TileMode, const SkMa
trix*, | 24 static sk_sp<SkShader> Make(sk_sp<SkPicture>, TileMode, TileMode, const SkMa
trix*, |
25 const SkRect*); | 25 const SkRect*); |
26 | 26 |
27 SK_TO_STRING_OVERRIDE() | 27 SK_TO_STRING_OVERRIDE() |
28 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureShader) | 28 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureShader) |
29 | 29 |
30 #if SK_SUPPORT_GPU | 30 #if SK_SUPPORT_GPU |
31 const GrFragmentProcessor* asFragmentProcessor(GrContext*, | 31 const GrFragmentProcessor* asFragmentProcessor(GrContext*, |
32 const SkMatrix& viewM, | 32 const SkMatrix& viewM, |
33 const SkMatrix*, | 33 const SkMatrix*, |
34 SkFilterQuality) const overri
de; | 34 SkFilterQuality, |
| 35 SkSourceGammaTreatment) const
override; |
35 #endif | 36 #endif |
36 | 37 |
37 protected: | 38 protected: |
38 SkPictureShader(SkReadBuffer&); | 39 SkPictureShader(SkReadBuffer&); |
39 void flatten(SkWriteBuffer&) const override; | 40 void flatten(SkWriteBuffer&) const override; |
40 size_t onContextSize(const ContextRec&) const override; | 41 size_t onContextSize(const ContextRec&) const override; |
41 Context* onCreateContext(const ContextRec&, void* storage) const override; | 42 Context* onCreateContext(const ContextRec&, void* storage) const override; |
42 | 43 |
43 private: | 44 private: |
44 SkPictureShader(sk_sp<SkPicture>, TileMode, TileMode, const SkMatrix*, const
SkRect*); | 45 SkPictureShader(sk_sp<SkPicture>, TileMode, TileMode, const SkMatrix*, const
SkRect*); |
(...skipping 25 matching lines...) Expand all Loading... |
70 SkShader::Context* fBitmapShaderContext; | 71 SkShader::Context* fBitmapShaderContext; |
71 void* fBitmapShaderContextStorage; | 72 void* fBitmapShaderContextStorage; |
72 | 73 |
73 typedef SkShader::Context INHERITED; | 74 typedef SkShader::Context INHERITED; |
74 }; | 75 }; |
75 | 76 |
76 typedef SkShader INHERITED; | 77 typedef SkShader INHERITED; |
77 }; | 78 }; |
78 | 79 |
79 #endif // SkPictureShader_DEFINED | 80 #endif // SkPictureShader_DEFINED |
OLD | NEW |