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

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

Issue 437393003: Explicit tile bounds for SkPictureShader (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebased. Created 6 years, 4 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') | tests/PictureShaderTest.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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 SkShader* SkShader::CreateEmptyShader() { 221 SkShader* SkShader::CreateEmptyShader() {
222 return SkNEW(SkEmptyShader); 222 return SkNEW(SkEmptyShader);
223 } 223 }
224 224
225 SkShader* SkShader::CreateBitmapShader(const SkBitmap& src, TileMode tmx, TileMo de tmy, 225 SkShader* SkShader::CreateBitmapShader(const SkBitmap& src, TileMode tmx, TileMo de tmy,
226 const SkMatrix* localMatrix) { 226 const SkMatrix* localMatrix) {
227 return ::CreateBitmapShader(src, tmx, tmy, localMatrix, NULL); 227 return ::CreateBitmapShader(src, tmx, tmy, localMatrix, NULL);
228 } 228 }
229 229
230 SkShader* SkShader::CreatePictureShader(SkPicture* src, TileMode tmx, TileMode t my, 230 SkShader* SkShader::CreatePictureShader(SkPicture* src, TileMode tmx, TileMode t my,
231 const SkMatrix* localMatrix) { 231 const SkMatrix* localMatrix, const SkRec t* tile) {
232 return SkPictureShader::Create(src, tmx, tmy, localMatrix); 232 return SkPictureShader::Create(src, tmx, tmy, localMatrix, tile);
233 } 233 }
234 234
235 #ifndef SK_IGNORE_TO_STRING 235 #ifndef SK_IGNORE_TO_STRING
236 void SkShader::toString(SkString* str) const { 236 void SkShader::toString(SkString* str) const {
237 if (!fLocalMatrix.isIdentity()) { 237 if (!fLocalMatrix.isIdentity()) {
238 str->append(" "); 238 str->append(" ");
239 fLocalMatrix.toString(str); 239 fLocalMatrix.toString(str);
240 } 240 }
241 } 241 }
242 #endif 242 #endif
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 #include "SkEmptyShader.h" 387 #include "SkEmptyShader.h"
388 388
389 void SkEmptyShader::toString(SkString* str) const { 389 void SkEmptyShader::toString(SkString* str) const {
390 str->append("SkEmptyShader: ("); 390 str->append("SkEmptyShader: (");
391 391
392 this->INHERITED::toString(str); 392 this->INHERITED::toString(str);
393 393
394 str->append(")"); 394 str->append(")");
395 } 395 }
396 #endif 396 #endif
OLDNEW
« no previous file with comments | « src/core/SkPictureShader.cpp ('k') | tests/PictureShaderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698