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

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

Issue 754083002: Add Sk prefix to CreateBitmapShader. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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/SkDraw.cpp ('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 "SkBitmapProcShader.h" 8 #include "SkBitmapProcShader.h"
9 #include "SkColorShader.h" 9 #include "SkColorShader.h"
10 #include "SkEmptyShader.h" 10 #include "SkEmptyShader.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 SkShader* SkShader::CreateEmptyShader() { 235 SkShader* SkShader::CreateEmptyShader() {
236 return SkNEW(SkEmptyShader); 236 return SkNEW(SkEmptyShader);
237 } 237 }
238 238
239 SkShader* SkShader::CreateColorShader(SkColor color) { 239 SkShader* SkShader::CreateColorShader(SkColor color) {
240 return SkNEW_ARGS(SkColorShader, (color)); 240 return SkNEW_ARGS(SkColorShader, (color));
241 } 241 }
242 242
243 SkShader* SkShader::CreateBitmapShader(const SkBitmap& src, TileMode tmx, TileMo de tmy, 243 SkShader* SkShader::CreateBitmapShader(const SkBitmap& src, TileMode tmx, TileMo de tmy,
244 const SkMatrix* localMatrix) { 244 const SkMatrix* localMatrix) {
245 return ::CreateBitmapShader(src, tmx, tmy, localMatrix, NULL); 245 return SkCreateBitmapShader(src, tmx, tmy, localMatrix, NULL);
246 } 246 }
247 247
248 SkShader* SkShader::CreatePictureShader(SkPicture* src, TileMode tmx, TileMode t my, 248 SkShader* SkShader::CreatePictureShader(SkPicture* src, TileMode tmx, TileMode t my,
249 const SkMatrix* localMatrix, const SkRec t* tile) { 249 const SkMatrix* localMatrix, const SkRec t* tile) {
250 return SkPictureShader::Create(src, tmx, tmy, localMatrix, tile); 250 return SkPictureShader::Create(src, tmx, tmy, localMatrix, tile);
251 } 251 }
252 252
253 #ifndef SK_IGNORE_TO_STRING 253 #ifndef SK_IGNORE_TO_STRING
254 void SkShader::toString(SkString* str) const { 254 void SkShader::toString(SkString* str) const {
255 if (!fLocalMatrix.isIdentity()) { 255 if (!fLocalMatrix.isIdentity()) {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 #include "SkEmptyShader.h" 411 #include "SkEmptyShader.h"
412 412
413 void SkEmptyShader::toString(SkString* str) const { 413 void SkEmptyShader::toString(SkString* str) const {
414 str->append("SkEmptyShader: ("); 414 str->append("SkEmptyShader: (");
415 415
416 this->INHERITED::toString(str); 416 this->INHERITED::toString(str);
417 417
418 str->append(")"); 418 str->append(")");
419 } 419 }
420 #endif 420 #endif
OLDNEW
« no previous file with comments | « src/core/SkDraw.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698