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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 return mc; | 218 return mc; |
219 } | 219 } |
220 | 220 |
221 ////////////////////////////////////////////////////////////////////////////// | 221 ////////////////////////////////////////////////////////////////////////////// |
222 | 222 |
223 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const { | 223 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const { |
224 return kNone_GradientType; | 224 return kNone_GradientType; |
225 } | 225 } |
226 | 226 |
227 #if SK_SUPPORT_GPU | 227 #if SK_SUPPORT_GPU |
228 sk_sp<GrFragmentProcessor> SkShader::asFragmentProcessor(GrContext*, const SkMat
rix&, | 228 sk_sp<GrFragmentProcessor> SkShader::asFragmentProcessor(const AsFPArgs&) const
{ |
229 const SkMatrix*, SkFilt
erQuality, | |
230 SkSourceGammaTreatment)
const { | |
231 return nullptr; | 229 return nullptr; |
232 } | 230 } |
233 #endif | 231 #endif |
234 | 232 |
235 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const { | 233 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const { |
236 return nullptr; | 234 return nullptr; |
237 } | 235 } |
238 | 236 |
239 sk_sp<SkShader> SkShader::MakeEmptyShader() { return sk_make_sp<SkEmptyShader>()
; } | 237 sk_sp<SkShader> SkShader::MakeEmptyShader() { return sk_make_sp<SkEmptyShader>()
; } |
240 | 238 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 } | 294 } |
297 #endif | 295 #endif |
298 | 296 |
299 #ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR | 297 #ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR |
300 #include "SkXfermode.h" | 298 #include "SkXfermode.h" |
301 sk_sp<SkShader> SkShader::MakeComposeShader(sk_sp<SkShader> dst, sk_sp<SkShader>
src, | 299 sk_sp<SkShader> SkShader::MakeComposeShader(sk_sp<SkShader> dst, sk_sp<SkShader>
src, |
302 SkXfermode* xfer) { | 300 SkXfermode* xfer) { |
303 return MakeComposeShader(std::move(dst), std::move(src), sk_ref_sp(xfer)); | 301 return MakeComposeShader(std::move(dst), std::move(src), sk_ref_sp(xfer)); |
304 } | 302 } |
305 #endif | 303 #endif |
OLD | NEW |