diff options
author | Brian Osman <brianosman@google.com> | 2016-12-09 16:51:55 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-12 15:15:15 +0000 |
commit | c87f99ef0649a525471971c4edd8b57fc0f7ef3c (patch) | |
tree | a8e06d78794ace90cf2f7c1d6fd0f1c6f082e4e9 /include/core/SkImageGenerator.h | |
parent | 0e18de9ed6af37ba729fea9696344fb8d3a0fbd2 (diff) |
Make subset param to texture generation API non-optional
We were always already supplying this, makes it simpler
BUG=skia:
Change-Id: I36ac35205df5ab2a0fb7ec26e83ddb1547154816
Reviewed-on: https://skia-review.googlesource.com/5778
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include/core/SkImageGenerator.h')
-rw-r--r-- | include/core/SkImageGenerator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h index 7bb4669017..5742c1e3f5 100644 --- a/include/core/SkImageGenerator.h +++ b/include/core/SkImageGenerator.h @@ -128,7 +128,7 @@ public: * - its internal context is the same * - it can somehow convert its texture into one that is valid for the provided context. */ - GrTexture* generateTexture(GrContext*, const SkIRect* subset = nullptr); + GrTexture* generateTexture(GrContext*, const SkIRect& subset); struct SupportedSizes { SkISize fSizes[2]; @@ -259,7 +259,7 @@ protected: return false; } - virtual GrTexture* onGenerateTexture(GrContext*, const SkIRect*) { + virtual GrTexture* onGenerateTexture(GrContext*, const SkIRect&) { return nullptr; } |