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 "SkAtomics.h" | 8 #include "SkAtomics.h" |
9 #include "SkBitmapProcShader.h" | 9 #include "SkBitmapProcShader.h" |
10 #include "SkColorShader.h" | 10 #include "SkColorShader.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 return mc; | 204 return mc; |
205 } | 205 } |
206 | 206 |
207 ////////////////////////////////////////////////////////////////////////////// | 207 ////////////////////////////////////////////////////////////////////////////// |
208 | 208 |
209 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const { | 209 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const { |
210 return kNone_GradientType; | 210 return kNone_GradientType; |
211 } | 211 } |
212 | 212 |
213 const GrFragmentProcessor* SkShader::asFragmentProcessor(GrContext*, const SkMat
rix&, | 213 const GrFragmentProcessor* SkShader::asFragmentProcessor(GrContext*, const SkMat
rix&, |
214 const SkMatrix*, SkFilt
erQuality) const { | 214 const SkMatrix*, |
| 215 SkFilterQuality, |
| 216 GrRenderTarget* dst) c
onst { |
215 return nullptr; | 217 return nullptr; |
216 } | 218 } |
217 | 219 |
218 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const { | 220 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const { |
219 return nullptr; | 221 return nullptr; |
220 } | 222 } |
221 | 223 |
222 SkShader* SkShader::CreateEmptyShader() { return new SkEmptyShader; } | 224 SkShader* SkShader::CreateEmptyShader() { return new SkEmptyShader; } |
223 | 225 |
224 SkShader* SkShader::CreateColorShader(SkColor color) { return new SkColorShader(
color); } | 226 SkShader* SkShader::CreateColorShader(SkColor color) { return new SkColorShader(
color); } |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 info->fTileMode = SkShader::kRepeat_TileMode; | 327 info->fTileMode = SkShader::kRepeat_TileMode; |
326 } | 328 } |
327 return kColor_GradientType; | 329 return kColor_GradientType; |
328 } | 330 } |
329 | 331 |
330 #if SK_SUPPORT_GPU | 332 #if SK_SUPPORT_GPU |
331 | 333 |
332 #include "SkGr.h" | 334 #include "SkGr.h" |
333 #include "effects/GrConstColorProcessor.h" | 335 #include "effects/GrConstColorProcessor.h" |
334 const GrFragmentProcessor* SkColorShader::asFragmentProcessor(GrContext*, const
SkMatrix&, | 336 const GrFragmentProcessor* SkColorShader::asFragmentProcessor(GrContext*, const
SkMatrix&, |
335 const SkMatrix*, | 337 const SkMatrix*, S
kFilterQuality, |
336 SkFilterQuality) c
onst { | 338 GrRenderTarget* ds
t) const { |
337 GrColor color = SkColorToPremulGrColor(fColor); | 339 GrColor color = SkColorToPremulGrColor(fColor); |
338 return GrConstColorProcessor::Create(color, GrConstColorProcessor::kModulate
A_InputMode); | 340 return GrConstColorProcessor::Create(color, GrConstColorProcessor::kModulate
A_InputMode); |
339 } | 341 } |
340 | 342 |
341 #endif | 343 #endif |
342 | 344 |
343 #ifndef SK_IGNORE_TO_STRING | 345 #ifndef SK_IGNORE_TO_STRING |
344 void SkColorShader::toString(SkString* str) const { | 346 void SkColorShader::toString(SkString* str) const { |
345 str->append("SkColorShader: ("); | 347 str->append("SkColorShader: ("); |
346 | 348 |
(...skipping 16 matching lines...) Expand all Loading... |
363 #include "SkEmptyShader.h" | 365 #include "SkEmptyShader.h" |
364 | 366 |
365 void SkEmptyShader::toString(SkString* str) const { | 367 void SkEmptyShader::toString(SkString* str) const { |
366 str->append("SkEmptyShader: ("); | 368 str->append("SkEmptyShader: ("); |
367 | 369 |
368 this->INHERITED::toString(str); | 370 this->INHERITED::toString(str); |
369 | 371 |
370 str->append(")"); | 372 str->append(")"); |
371 } | 373 } |
372 #endif | 374 #endif |
OLD | NEW |