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

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

Issue 278963002: add localmatrix parameter to shader's asNewEffect (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/core/SkPictureShader.cpp ('k') | src/effects/SkPerlinNoiseShader.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 "SkBitmapProcShader.h" 8 #include "SkBitmapProcShader.h"
9 #include "SkEmptyShader.h" 9 #include "SkEmptyShader.h"
10 #include "SkReadBuffer.h" 10 #include "SkReadBuffer.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 ////////////////////////////////////////////////////////////////////////////// 204 //////////////////////////////////////////////////////////////////////////////
205 205
206 SkShader::BitmapType SkShader::asABitmap(SkBitmap*, SkMatrix*, TileMode*) const { 206 SkShader::BitmapType SkShader::asABitmap(SkBitmap*, SkMatrix*, TileMode*) const {
207 return kNone_BitmapType; 207 return kNone_BitmapType;
208 } 208 }
209 209
210 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const { 210 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const {
211 return kNone_GradientType; 211 return kNone_GradientType;
212 } 212 }
213 213
214 GrEffectRef* SkShader::asNewEffect(GrContext*, const SkPaint&) const { 214 GrEffectRef* SkShader::asNewEffect(GrContext*, const SkPaint&, const SkMatrix*) const {
215 return NULL; 215 return NULL;
216 } 216 }
217 217
218 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const { 218 SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const {
219 return NULL; 219 return NULL;
220 } 220 }
221 221
222 SkShader* SkShader::CreateEmptyShader() { 222 SkShader* SkShader::CreateEmptyShader() {
223 return SkNEW(SkEmptyShader); 223 return SkNEW(SkEmptyShader);
224 } 224 }
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 #include "SkEmptyShader.h" 363 #include "SkEmptyShader.h"
364 364
365 void SkEmptyShader::toString(SkString* str) const { 365 void SkEmptyShader::toString(SkString* str) const {
366 str->append("SkEmptyShader: ("); 366 str->append("SkEmptyShader: (");
367 367
368 this->INHERITED::toString(str); 368 this->INHERITED::toString(str);
369 369
370 str->append(")"); 370 str->append(")");
371 } 371 }
372 #endif 372 #endif
OLDNEW
« no previous file with comments | « src/core/SkPictureShader.cpp ('k') | src/effects/SkPerlinNoiseShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698