OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
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 SkCoreBlitters_DEFINED | 8 #ifndef SkCoreBlitters_DEFINED |
9 #define SkCoreBlitters_DEFINED | 9 #define SkCoreBlitters_DEFINED |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 */ | 34 */ |
35 SkShaderBlitter(const SkBitmap& device, const SkPaint& paint, | 35 SkShaderBlitter(const SkBitmap& device, const SkPaint& paint, |
36 SkShader::Context* shaderContext); | 36 SkShader::Context* shaderContext); |
37 virtual ~SkShaderBlitter(); | 37 virtual ~SkShaderBlitter(); |
38 | 38 |
39 /** | 39 /** |
40 * Create a new shader context and uses it instead of the old one if succe
ssful. | 40 * Create a new shader context and uses it instead of the old one if succe
ssful. |
41 * Will create the context at the same location as the old one (this is sa
fe | 41 * Will create the context at the same location as the old one (this is sa
fe |
42 * because the shader itself is unchanged). | 42 * because the shader itself is unchanged). |
43 */ | 43 */ |
44 virtual bool resetShaderContext(const SkBitmap& device, const SkPaint& paint
, | 44 virtual bool resetShaderContext(const SkShader::ContextRec&) SK_OVERRIDE; |
45 const SkMatrix& matrix) SK_OVERRIDE; | |
46 | 45 |
47 virtual SkShader::Context* getShaderContext() const SK_OVERRIDE { return fSh
aderContext; } | 46 virtual SkShader::Context* getShaderContext() const SK_OVERRIDE { return fSh
aderContext; } |
48 | 47 |
49 protected: | 48 protected: |
50 uint32_t fShaderFlags; | 49 uint32_t fShaderFlags; |
51 const SkShader* fShader; | 50 const SkShader* fShader; |
52 SkShader::Context* fShaderContext; | 51 SkShader::Context* fShaderContext; |
53 | 52 |
54 private: | 53 private: |
55 // illegal | 54 // illegal |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 194 |
196 These pre-conditions must be handled by the caller, in our case | 195 These pre-conditions must be handled by the caller, in our case |
197 SkBlitter::Choose(...) | 196 SkBlitter::Choose(...) |
198 */ | 197 */ |
199 | 198 |
200 SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, const SkPaint& paint, | 199 SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, const SkPaint& paint, |
201 SkShader::Context* shaderContext, | 200 SkShader::Context* shaderContext, |
202 SkTBlitterAllocator* allocator); | 201 SkTBlitterAllocator* allocator); |
203 | 202 |
204 #endif | 203 #endif |
OLD | NEW |