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

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

Issue 1309943004: Revert of 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
209 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const { 213 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const {
210 return kNone_GradientType; 214 return kNone_GradientType;
211 } 215 }
212 216
213 const GrFragmentProcessor* SkShader::asFragmentProcessor(GrContext*, const SkMat rix&, 217 const GrFragmentProcessor* SkShader::asFragmentProcessor(GrContext*, const SkMat rix&,
214 const SkMatrix*, SkFilt erQuality, 218 const SkMatrix*, SkFilt erQuality,
215 GrProcessorDataManager* ) const { 219 GrProcessorDataManager* ) const {
216 return nullptr; 220 return nullptr;
217 } 221 }
218 222
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 #include "SkEmptyShader.h" 368 #include "SkEmptyShader.h"
365 369
366 void SkEmptyShader::toString(SkString* str) const { 370 void SkEmptyShader::toString(SkString* str) const {
367 str->append("SkEmptyShader: ("); 371 str->append("SkEmptyShader: (");
368 372
369 this->INHERITED::toString(str); 373 this->INHERITED::toString(str);
370 374
371 str->append(")"); 375 str->append(")");
372 } 376 }
373 #endif 377 #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