OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |