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 12 matching lines...) Expand all Loading... |
23 public: | 23 public: |
24 static SkPictureShader* Create(const SkPicture*, TileMode, TileMode, const S
kMatrix*, | 24 static SkPictureShader* Create(const SkPicture*, TileMode, TileMode, const S
kMatrix*, |
25 const SkRect*); | 25 const SkRect*); |
26 virtual ~SkPictureShader(); | 26 virtual ~SkPictureShader(); |
27 | 27 |
28 virtual size_t contextSize() const SK_OVERRIDE; | 28 virtual size_t contextSize() const SK_OVERRIDE; |
29 | 29 |
30 SK_TO_STRING_OVERRIDE() | 30 SK_TO_STRING_OVERRIDE() |
31 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureShader) | 31 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureShader) |
32 | 32 |
33 bool asNewEffect(GrContext*, const SkPaint&, const SkMatrix*, GrColor*, GrEf
fect**) | 33 bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix*, GrColo
r*, |
34 const SK_OVERRIDE; | 34 GrFragmentProcessor**) const SK_OVERRIDE; |
35 | 35 |
36 protected: | 36 protected: |
37 SkPictureShader(SkReadBuffer&); | 37 SkPictureShader(SkReadBuffer&); |
38 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 38 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
39 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; | 39 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; |
40 | 40 |
41 private: | 41 private: |
42 SkPictureShader(const SkPicture*, TileMode, TileMode, const SkMatrix*, const
SkRect*); | 42 SkPictureShader(const SkPicture*, TileMode, TileMode, const SkMatrix*, const
SkRect*); |
43 | 43 |
44 SkShader* refBitmapShader(const SkMatrix&, const SkMatrix* localMatrix) cons
t; | 44 SkShader* refBitmapShader(const SkMatrix&, const SkMatrix* localMatrix) cons
t; |
(...skipping 26 matching lines...) Expand all Loading... |
71 SkShader::Context* fBitmapShaderContext; | 71 SkShader::Context* fBitmapShaderContext; |
72 void* fBitmapShaderContextStorage; | 72 void* fBitmapShaderContextStorage; |
73 | 73 |
74 typedef SkShader::Context INHERITED; | 74 typedef SkShader::Context INHERITED; |
75 }; | 75 }; |
76 | 76 |
77 typedef SkShader INHERITED; | 77 typedef SkShader INHERITED; |
78 }; | 78 }; |
79 | 79 |
80 #endif // SkPictureShader_DEFINED | 80 #endif // SkPictureShader_DEFINED |
OLD | NEW |