| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 214 const SkMatrix*, SkFilt
erQuality, |
| 215 GrProcessorDataManager*
) const { | 215 GrProcessorDataManager*
) const { |
| 216 return nullptr; | 216 return nullptr; |
| 217 } | 217 } |
| 218 | 218 |
| 219 #if SK_SUPPORT_GPU |
| 220 |
| 221 #include "effects/GrXfermodeFragmentProcessor.h" |
| 222 |
| 223 const GrFragmentProcessor* SkShader::MulFragmentProcesorOuputByInputAlpha( |
| 224 const GrFragmentProcessor* fp) { |
| 225 return GrXfermodeFragmentProcessor::CreateFromDstProcessor(fp, SkXfermode::k
DstIn_Mode); |
| 226 } |
| 227 |
| 228 #endif |
| 229 |
| 219 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const { | 230 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const { |
| 220 return nullptr; | 231 return nullptr; |
| 221 } | 232 } |
| 222 | 233 |
| 223 SkShader* SkShader::CreateEmptyShader() { return new SkEmptyShader; } | 234 SkShader* SkShader::CreateEmptyShader() { return new SkEmptyShader; } |
| 224 | 235 |
| 225 SkShader* SkShader::CreateColorShader(SkColor color) { return new SkColorShader(
color); } | 236 SkShader* SkShader::CreateColorShader(SkColor color) { return new SkColorShader(
color); } |
| 226 | 237 |
| 227 SkShader* SkShader::CreateBitmapShader(const SkBitmap& src, TileMode tmx, TileMo
de tmy, | 238 SkShader* SkShader::CreateBitmapShader(const SkBitmap& src, TileMode tmx, TileMo
de tmy, |
| 228 const SkMatrix* localMatrix) { | 239 const SkMatrix* localMatrix) { |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 #include "SkEmptyShader.h" | 375 #include "SkEmptyShader.h" |
| 365 | 376 |
| 366 void SkEmptyShader::toString(SkString* str) const { | 377 void SkEmptyShader::toString(SkString* str) const { |
| 367 str->append("SkEmptyShader: ("); | 378 str->append("SkEmptyShader: ("); |
| 368 | 379 |
| 369 this->INHERITED::toString(str); | 380 this->INHERITED::toString(str); |
| 370 | 381 |
| 371 str->append(")"); | 382 str->append(")"); |
| 372 } | 383 } |
| 373 #endif | 384 #endif |
| OLD | NEW |