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 19 matching lines...) Expand all Loading... |
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 asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix& viewM,
const SkMatrix*, | 33 bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix& viewM,
const SkMatrix*, |
34 GrColor*, GrFragmentProcessor**) const SK_OVERRIDE; | 34 GrColor*, GrFragmentProcessor**) const SK_OVERRIDE; |
35 | 35 |
36 protected: | 36 protected: |
37 SkPictureShader(SkReadBuffer&); | 37 SkPictureShader(SkReadBuffer&); |
38 void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 38 void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
39 Context* onCreateContext(const ContextRec&, void* storage) const SK_OVERRIDE
; | 39 Context* onCreateContext(const ContextRec&, void* storage) const SK_OVERRIDE
; |
40 void onPreroll() const SK_OVERRIDE; | |
41 | 40 |
42 private: | 41 private: |
43 SkPictureShader(const SkPicture*, TileMode, TileMode, const SkMatrix*, const
SkRect*); | 42 SkPictureShader(const SkPicture*, TileMode, TileMode, const SkMatrix*, const
SkRect*); |
44 | 43 |
45 SkShader* refBitmapShader(const SkMatrix&, const SkMatrix* localMatrix) cons
t; | 44 SkShader* refBitmapShader(const SkMatrix&, const SkMatrix* localMatrix) cons
t; |
46 | 45 |
47 const SkPicture* fPicture; | 46 const SkPicture* fPicture; |
48 SkRect fTile; | 47 SkRect fTile; |
49 TileMode fTmx, fTmy; | 48 TileMode fTmx, fTmy; |
50 | 49 |
(...skipping 17 matching lines...) Expand all Loading... |
68 SkShader::Context* fBitmapShaderContext; | 67 SkShader::Context* fBitmapShaderContext; |
69 void* fBitmapShaderContextStorage; | 68 void* fBitmapShaderContextStorage; |
70 | 69 |
71 typedef SkShader::Context INHERITED; | 70 typedef SkShader::Context INHERITED; |
72 }; | 71 }; |
73 | 72 |
74 typedef SkShader INHERITED; | 73 typedef SkShader INHERITED; |
75 }; | 74 }; |
76 | 75 |
77 #endif // SkPictureShader_DEFINED | 76 #endif // SkPictureShader_DEFINED |
OLD | NEW |