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 #include "SkBitmapProcShader.h" | 8 #include "SkBitmapProcShader.h" |
9 #include "SkEmptyShader.h" | 9 #include "SkEmptyShader.h" |
10 #include "SkReadBuffer.h" | 10 #include "SkReadBuffer.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 ////////////////////////////////////////////////////////////////////////////// | 201 ////////////////////////////////////////////////////////////////////////////// |
202 | 202 |
203 SkShader::BitmapType SkShader::asABitmap(SkBitmap*, SkMatrix*, TileMode*) const
{ | 203 SkShader::BitmapType SkShader::asABitmap(SkBitmap*, SkMatrix*, TileMode*) const
{ |
204 return kNone_BitmapType; | 204 return kNone_BitmapType; |
205 } | 205 } |
206 | 206 |
207 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const { | 207 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const { |
208 return kNone_GradientType; | 208 return kNone_GradientType; |
209 } | 209 } |
210 | 210 |
211 GrEffectRef* SkShader::asNewEffect(GrContext*, const SkPaint&, const SkMatrix*)
const { | 211 bool SkShader::asNewEffect(GrContext* context, const SkPaint& paint, GrColor* gr
Color, |
212 return NULL; | 212 GrEffectRef** grEffect, const SkMatrix* localMatrixOr
Null) const { |
| 213 *grEffect = NULL; |
| 214 return false; |
213 } | 215 } |
214 | 216 |
215 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const { | 217 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const { |
216 return NULL; | 218 return NULL; |
217 } | 219 } |
218 | 220 |
219 SkShader* SkShader::CreateEmptyShader() { | 221 SkShader* SkShader::CreateEmptyShader() { |
220 return SkNEW(SkEmptyShader); | 222 return SkNEW(SkEmptyShader); |
221 } | 223 } |
222 | 224 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 #include "SkEmptyShader.h" | 362 #include "SkEmptyShader.h" |
361 | 363 |
362 void SkEmptyShader::toString(SkString* str) const { | 364 void SkEmptyShader::toString(SkString* str) const { |
363 str->append("SkEmptyShader: ("); | 365 str->append("SkEmptyShader: ("); |
364 | 366 |
365 this->INHERITED::toString(str); | 367 this->INHERITED::toString(str); |
366 | 368 |
367 str->append(")"); | 369 str->append(")"); |
368 } | 370 } |
369 #endif | 371 #endif |
OLD | NEW |