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

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

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 7 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) const { 214 const SkMatrix*,
215 SkFilterQuality,
216 GrRenderTarget* dst) c onst {
215 return nullptr; 217 return nullptr;
216 } 218 }
217 219
218 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const { 220 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const {
219 return nullptr; 221 return nullptr;
220 } 222 }
221 223
222 SkShader* SkShader::CreateEmptyShader() { return new SkEmptyShader; } 224 SkShader* SkShader::CreateEmptyShader() { return new SkEmptyShader; }
223 225
224 SkShader* SkShader::CreateColorShader(SkColor color) { return new SkColorShader( color); } 226 SkShader* SkShader::CreateColorShader(SkColor color) { return new SkColorShader( color); }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 info->fTileMode = SkShader::kRepeat_TileMode; 327 info->fTileMode = SkShader::kRepeat_TileMode;
326 } 328 }
327 return kColor_GradientType; 329 return kColor_GradientType;
328 } 330 }
329 331
330 #if SK_SUPPORT_GPU 332 #if SK_SUPPORT_GPU
331 333
332 #include "SkGr.h" 334 #include "SkGr.h"
333 #include "effects/GrConstColorProcessor.h" 335 #include "effects/GrConstColorProcessor.h"
334 const GrFragmentProcessor* SkColorShader::asFragmentProcessor(GrContext*, const SkMatrix&, 336 const GrFragmentProcessor* SkColorShader::asFragmentProcessor(GrContext*, const SkMatrix&,
335 const SkMatrix*, 337 const SkMatrix*, S kFilterQuality,
336 SkFilterQuality) c onst { 338 GrRenderTarget* ds t) const {
337 GrColor color = SkColorToPremulGrColor(fColor); 339 GrColor color = SkColorToPremulGrColor(fColor);
338 return GrConstColorProcessor::Create(color, GrConstColorProcessor::kModulate A_InputMode); 340 return GrConstColorProcessor::Create(color, GrConstColorProcessor::kModulate A_InputMode);
339 } 341 }
340 342
341 #endif 343 #endif
342 344
343 #ifndef SK_IGNORE_TO_STRING 345 #ifndef SK_IGNORE_TO_STRING
344 void SkColorShader::toString(SkString* str) const { 346 void SkColorShader::toString(SkString* str) const {
345 str->append("SkColorShader: ("); 347 str->append("SkColorShader: (");
346 348
(...skipping 16 matching lines...) Expand all
363 #include "SkEmptyShader.h" 365 #include "SkEmptyShader.h"
364 366
365 void SkEmptyShader::toString(SkString* str) const { 367 void SkEmptyShader::toString(SkString* str) const {
366 str->append("SkEmptyShader: ("); 368 str->append("SkEmptyShader: (");
367 369
368 this->INHERITED::toString(str); 370 this->INHERITED::toString(str);
369 371
370 str->append(")"); 372 str->append(")");
371 } 373 }
372 #endif 374 #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