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 "SkReadBuffer.h" | 9 #include "SkReadBuffer.h" |
10 #include "SkMallocPixelRef.h" | 10 #include "SkMallocPixelRef.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 186 |
187 GrEffectRef* SkShader::asNewEffect(GrContext*, const SkPaint&) const { | 187 GrEffectRef* SkShader::asNewEffect(GrContext*, const SkPaint&) const { |
188 return NULL; | 188 return NULL; |
189 } | 189 } |
190 | 190 |
191 SkShader* SkShader::CreateBitmapShader(const SkBitmap& src, TileMode tmx, TileMo
de tmy, | 191 SkShader* SkShader::CreateBitmapShader(const SkBitmap& src, TileMode tmx, TileMo
de tmy, |
192 const SkMatrix* localMatrix) { | 192 const SkMatrix* localMatrix) { |
193 return ::CreateBitmapShader(src, tmx, tmy, localMatrix, NULL); | 193 return ::CreateBitmapShader(src, tmx, tmy, localMatrix, NULL); |
194 } | 194 } |
195 | 195 |
196 SkShader* SkShader::CreatePictureShader(SkPicture* src, TileMode tmx, TileMode t
my, | 196 SkShader* SkShader::CreatePictureShader(SkPicture* src, TileMode tmx, TileMode t
my) { |
197 const SkMatrix* localMatrix) { | 197 return SkPictureShader::Create(src, tmx, tmy); |
198 return SkPictureShader::Create(src, tmx, tmy, localMatrix); | |
199 } | 198 } |
200 | 199 |
201 #ifndef SK_IGNORE_TO_STRING | 200 #ifndef SK_IGNORE_TO_STRING |
202 void SkShader::toString(SkString* str) const { | 201 void SkShader::toString(SkString* str) const { |
203 if (this->hasLocalMatrix()) { | 202 if (this->hasLocalMatrix()) { |
204 str->append(" "); | 203 str->append(" "); |
205 this->getLocalMatrix().toString(str); | 204 this->getLocalMatrix().toString(str); |
206 } | 205 } |
207 } | 206 } |
208 #endif | 207 #endif |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 #include "SkEmptyShader.h" | 331 #include "SkEmptyShader.h" |
333 | 332 |
334 void SkEmptyShader::toString(SkString* str) const { | 333 void SkEmptyShader::toString(SkString* str) const { |
335 str->append("SkEmptyShader: ("); | 334 str->append("SkEmptyShader: ("); |
336 | 335 |
337 this->INHERITED::toString(str); | 336 this->INHERITED::toString(str); |
338 | 337 |
339 str->append(")"); | 338 str->append(")"); |
340 } | 339 } |
341 #endif | 340 #endif |
OLD | NEW |