diff options
author | Greg Daniel <egdaniel@google.com> | 2017-10-09 09:57:35 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-11 17:11:07 +0000 |
commit | f88c12ea2047c5ccb13613534b1794944bb233e8 (patch) | |
tree | 47e6ddc042c84d39a4578c0889ae8df41e0e53be /gm/image_pict.cpp | |
parent | 1fc0909065d7c1d629d4c177c5cbfc0f8d9d9d88 (diff) |
Add api for passing mipped hint into ImageGenerator onGenerateTexture
This does not actually add any additional functionality to the generators.
Once this lands I will enable the generators one at a time to more easily
monitor the effects of each one.
Bug: skia:
Change-Id: I382a1acfaebcbf9ad44c9873b87cdbbe02a13602
Reviewed-on: https://skia-review.googlesource.com/57083
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'gm/image_pict.cpp')
-rw-r--r-- | gm/image_pict.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp index 25c3b1c085..0e39d3b997 100644 --- a/gm/image_pict.cpp +++ b/gm/image_pict.cpp @@ -165,7 +165,8 @@ public: protected: sk_sp<GrTextureProxy> onGenerateTexture(GrContext* ctx, const SkImageInfo& info, const SkIPoint& origin, - SkTransferFunctionBehavior) override { + SkTransferFunctionBehavior, + bool willBeMipped) override { SkASSERT(ctx); SkASSERT(ctx == fCtx.get()); |