Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1156)

Side by Side Diff: src/core/SkShader.cpp

Issue 2175563003: Bundle SkShader::asFragmentProcessor arguments in a struct (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix indentation to be less arbitrary Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkPictureShader.cpp ('k') | src/effects/SkPerlinNoiseShader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/core/SkPictureShader.cpp ('k') | src/effects/SkPerlinNoiseShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698