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

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

Issue 2037413002: Add SkSourceGammaTreatment enum so we know how to create mips (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix DM compilation Created 4 years, 6 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/core/SkSpecialImage.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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 return mc; 214 return mc;
215 } 215 }
216 216
217 ////////////////////////////////////////////////////////////////////////////// 217 //////////////////////////////////////////////////////////////////////////////
218 218
219 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const { 219 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const {
220 return kNone_GradientType; 220 return kNone_GradientType;
221 } 221 }
222 222
223 const GrFragmentProcessor* SkShader::asFragmentProcessor(GrContext*, const SkMat rix&, 223 const GrFragmentProcessor* SkShader::asFragmentProcessor(GrContext*, const SkMat rix&,
224 const SkMatrix*, SkFilt erQuality) const { 224 const SkMatrix*, SkFilt erQuality,
225 SkSourceGammaTreatment) const {
225 return nullptr; 226 return nullptr;
226 } 227 }
227 228
228 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const { 229 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const {
229 return nullptr; 230 return nullptr;
230 } 231 }
231 232
232 sk_sp<SkShader> SkShader::MakeEmptyShader() { return sk_make_sp<SkEmptyShader>() ; } 233 sk_sp<SkShader> SkShader::MakeEmptyShader() { return sk_make_sp<SkEmptyShader>() ; }
233 234
234 sk_sp<SkShader> SkShader::MakeColorShader(SkColor color) { return sk_make_sp<SkC olorShader>(color); } 235 sk_sp<SkShader> SkShader::MakeColorShader(SkColor color) { return sk_make_sp<SkC olorShader>(color); }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 } 290 }
290 #endif 291 #endif
291 292
292 #ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR 293 #ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR
293 #include "SkXfermode.h" 294 #include "SkXfermode.h"
294 sk_sp<SkShader> SkShader::MakeComposeShader(sk_sp<SkShader> dst, sk_sp<SkShader> src, 295 sk_sp<SkShader> SkShader::MakeComposeShader(sk_sp<SkShader> dst, sk_sp<SkShader> src,
295 SkXfermode* xfer) { 296 SkXfermode* xfer) {
296 return MakeComposeShader(std::move(dst), std::move(src), sk_ref_sp(xfer)); 297 return MakeComposeShader(std::move(dst), std::move(src), sk_ref_sp(xfer));
297 } 298 }
298 #endif 299 #endif
OLDNEW
« no previous file with comments | « src/core/SkPictureShader.cpp ('k') | src/core/SkSpecialImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698