OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SkPictureShader_DEFINED | 9 #ifndef SkPictureShader_DEFINED |
10 #define SkPictureShader_DEFINED | 10 #define SkPictureShader_DEFINED |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 public: | 55 public: |
56 static Context* Create(void* storage, const SkPictureShader&, const Cont
extRec&, | 56 static Context* Create(void* storage, const SkPictureShader&, const Cont
extRec&, |
57 SkShader* bitmapShader); | 57 SkShader* bitmapShader); |
58 | 58 |
59 virtual ~PictureShaderContext(); | 59 virtual ~PictureShaderContext(); |
60 | 60 |
61 uint32_t getFlags() const override; | 61 uint32_t getFlags() const override; |
62 | 62 |
63 ShadeProc asAShadeProc(void** ctx) override; | 63 ShadeProc asAShadeProc(void** ctx) override; |
64 void shadeSpan(int x, int y, SkPMColor dstC[], int count) override; | 64 void shadeSpan(int x, int y, SkPMColor dstC[], int count) override; |
65 void shadeSpan16(int x, int y, uint16_t dstC[], int count) override; | |
66 | 65 |
67 private: | 66 private: |
68 PictureShaderContext(const SkPictureShader&, const ContextRec&, SkShader
* bitmapShader); | 67 PictureShaderContext(const SkPictureShader&, const ContextRec&, SkShader
* bitmapShader); |
69 | 68 |
70 SkAutoTUnref<SkShader> fBitmapShader; | 69 SkAutoTUnref<SkShader> fBitmapShader; |
71 SkShader::Context* fBitmapShaderContext; | 70 SkShader::Context* fBitmapShaderContext; |
72 void* fBitmapShaderContextStorage; | 71 void* fBitmapShaderContextStorage; |
73 | 72 |
74 typedef SkShader::Context INHERITED; | 73 typedef SkShader::Context INHERITED; |
75 }; | 74 }; |
76 | 75 |
77 typedef SkShader INHERITED; | 76 typedef SkShader INHERITED; |
78 }; | 77 }; |
79 | 78 |
80 #endif // SkPictureShader_DEFINED | 79 #endif // SkPictureShader_DEFINED |
OLD | NEW |