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

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

Issue 1311963007: switch to isABitmap, deprecate SK_SUPPORT_LEGACY_SHADERBITMAPTYPE (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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/SkLocalMatrixShader.h ('k') | no next file » | 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 mc = kFixedStepInX_MatrixClass; 199 mc = kFixedStepInX_MatrixClass;
200 } else { 200 } else {
201 mc = kPerspective_MatrixClass; 201 mc = kPerspective_MatrixClass;
202 } 202 }
203 } 203 }
204 return mc; 204 return mc;
205 } 205 }
206 206
207 ////////////////////////////////////////////////////////////////////////////// 207 //////////////////////////////////////////////////////////////////////////////
208 208
209 SkShader::BitmapType SkShader::asABitmap(SkBitmap*, SkMatrix*, TileMode*) const {
210 return kNone_BitmapType;
211 }
212
213 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const { 209 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const {
214 return kNone_GradientType; 210 return kNone_GradientType;
215 } 211 }
216 212
217 const GrFragmentProcessor* SkShader::asFragmentProcessor(GrContext*, const SkMat rix&, 213 const GrFragmentProcessor* SkShader::asFragmentProcessor(GrContext*, const SkMat rix&,
218 const SkMatrix*, SkFilt erQuality, 214 const SkMatrix*, SkFilt erQuality,
219 GrProcessorDataManager* ) const { 215 GrProcessorDataManager* ) const {
220 return nullptr; 216 return nullptr;
221 } 217 }
222 218
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 #include "SkEmptyShader.h" 364 #include "SkEmptyShader.h"
369 365
370 void SkEmptyShader::toString(SkString* str) const { 366 void SkEmptyShader::toString(SkString* str) const {
371 str->append("SkEmptyShader: ("); 367 str->append("SkEmptyShader: (");
372 368
373 this->INHERITED::toString(str); 369 this->INHERITED::toString(str);
374 370
375 str->append(")"); 371 str->append(")");
376 } 372 }
377 #endif 373 #endif
OLDNEW
« no previous file with comments | « src/core/SkLocalMatrixShader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698