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

Unified Diff: src/core/SkPictureShader.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkShader.h ('k') | src/core/SkPictureShader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPictureShader.h
diff --git a/src/core/SkPictureShader.h b/src/core/SkPictureShader.h
index 00aee9b0786630673572d6e97358f0ef2012a0c3..99c70c94658dffe90a531d2be4c58f653fc1a116 100644
--- a/src/core/SkPictureShader.h
+++ b/src/core/SkPictureShader.h
@@ -21,7 +21,8 @@ class SkPicture;
*/
class SkPictureShader : public SkShader {
public:
- static SkPictureShader* Create(const SkPicture*, TileMode, TileMode, const SkMatrix* = NULL);
+ static SkPictureShader* Create(const SkPicture*, TileMode, TileMode, const SkMatrix*,
+ const SkRect*);
virtual ~SkPictureShader();
virtual size_t contextSize() const SK_OVERRIDE;
@@ -38,11 +39,12 @@ protected:
virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_OVERRIDE;
private:
- SkPictureShader(const SkPicture*, TileMode, TileMode, const SkMatrix* = NULL);
+ SkPictureShader(const SkPicture*, TileMode, TileMode, const SkMatrix*, const SkRect*);
SkShader* refBitmapShader(const SkMatrix&, const SkMatrix* localMatrix) const;
const SkPicture* fPicture;
+ SkRect fTile;
TileMode fTmx, fTmy;
mutable SkMutex fCachedBitmapShaderMutex;
« no previous file with comments | « include/core/SkShader.h ('k') | src/core/SkPictureShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698