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

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

Issue 1388113002: Bye bye processor data manager (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove files Created 5 years, 2 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/SkXfermode.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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 return mc; 204 return mc;
205 } 205 }
206 206
207 ////////////////////////////////////////////////////////////////////////////// 207 //////////////////////////////////////////////////////////////////////////////
208 208
209 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const { 209 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const {
210 return kNone_GradientType; 210 return kNone_GradientType;
211 } 211 }
212 212
213 const GrFragmentProcessor* SkShader::asFragmentProcessor(GrContext*, const SkMat rix&, 213 const GrFragmentProcessor* SkShader::asFragmentProcessor(GrContext*, const SkMat rix&,
214 const SkMatrix*, SkFilt erQuality, 214 const SkMatrix*, SkFilt erQuality) const {
215 GrProcessorDataManager* ) const {
216 return nullptr; 215 return nullptr;
217 } 216 }
218 217
219 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const { 218 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const {
220 return nullptr; 219 return nullptr;
221 } 220 }
222 221
223 SkShader* SkShader::CreateEmptyShader() { return new SkEmptyShader; } 222 SkShader* SkShader::CreateEmptyShader() { return new SkEmptyShader; }
224 223
225 SkShader* SkShader::CreateColorShader(SkColor color) { return new SkColorShader( color); } 224 SkShader* SkShader::CreateColorShader(SkColor color) { return new SkColorShader( color); }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 info->fTileMode = SkShader::kRepeat_TileMode; 325 info->fTileMode = SkShader::kRepeat_TileMode;
327 } 326 }
328 return kColor_GradientType; 327 return kColor_GradientType;
329 } 328 }
330 329
331 #if SK_SUPPORT_GPU 330 #if SK_SUPPORT_GPU
332 331
333 #include "SkGr.h" 332 #include "SkGr.h"
334 #include "effects/GrConstColorProcessor.h" 333 #include "effects/GrConstColorProcessor.h"
335 const GrFragmentProcessor* SkColorShader::asFragmentProcessor(GrContext*, const SkMatrix&, 334 const GrFragmentProcessor* SkColorShader::asFragmentProcessor(GrContext*, const SkMatrix&,
336 const SkMatrix*, S kFilterQuality, 335 const SkMatrix*,
337 GrProcessorDataMan ager*) const { 336 SkFilterQuality) c onst {
338 GrColor color = SkColorToPremulGrColor(fColor); 337 GrColor color = SkColorToPremulGrColor(fColor);
339 return GrConstColorProcessor::Create(color, GrConstColorProcessor::kModulate A_InputMode); 338 return GrConstColorProcessor::Create(color, GrConstColorProcessor::kModulate A_InputMode);
340 } 339 }
341 340
342 #endif 341 #endif
343 342
344 #ifndef SK_IGNORE_TO_STRING 343 #ifndef SK_IGNORE_TO_STRING
345 void SkColorShader::toString(SkString* str) const { 344 void SkColorShader::toString(SkString* str) const {
346 str->append("SkColorShader: ("); 345 str->append("SkColorShader: (");
347 346
(...skipping 16 matching lines...) Expand all
364 #include "SkEmptyShader.h" 363 #include "SkEmptyShader.h"
365 364
366 void SkEmptyShader::toString(SkString* str) const { 365 void SkEmptyShader::toString(SkString* str) const {
367 str->append("SkEmptyShader: ("); 366 str->append("SkEmptyShader: (");
368 367
369 this->INHERITED::toString(str); 368 this->INHERITED::toString(str);
370 369
371 str->append(")"); 370 str->append(")");
372 } 371 }
373 #endif 372 #endif
OLDNEW
« no previous file with comments | « src/core/SkPictureShader.cpp ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698