aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGpuDevice.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-09-07 12:36:34 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-07 16:58:31 +0000
commit2bbdcc44c63974f29f3743bb58d929601a3f65c6 (patch)
treed420f298f606b061054e56866d1930ab84f00ed5 /src/gpu/SkGpuDevice.h
parent4df0092eac6e9bb5afc516773a0c618630193dc6 (diff)
Rework GrSamplerParams to be more compact and use its own wrap mode enum.
The main change is to make GrSamplerParams smaller by making its enums have byte-sized underlying types. The rest is cosmetic. Change-Id: Ib71ea50612d24619a85e463826c6b8dfb9b445e3 Reviewed-on: https://skia-review.googlesource.com/43200 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/SkGpuDevice.h')
-rw-r--r--src/gpu/SkGpuDevice.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h
index cf78b94ec8..548819bf80 100644
--- a/src/gpu/SkGpuDevice.h
+++ b/src/gpu/SkGpuDevice.h
@@ -163,10 +163,11 @@ private:
*/
// The tileSize and clippedSrcRect will be valid only if true is returned.
- bool shouldTileImageID(uint32_t imageID, const SkIRect& imageRect,
+ bool shouldTileImageID(uint32_t imageID,
+ const SkIRect& imageRect,
const SkMatrix& viewMatrix,
const SkMatrix& srcToDstRectMatrix,
- const GrSamplerParams& params,
+ const GrSamplerState& params,
const SkRect* srcRectPtr,
int maxTileSize,
int* tileSize,
@@ -188,7 +189,7 @@ private:
const SkMatrix& srcToDstMatrix,
const SkRect& srcRect,
const SkIRect& clippedSrcRect,
- const GrSamplerParams& params,
+ const GrSamplerState& params,
const SkPaint& paint,
SkCanvas::SrcRectConstraint,
int tileSize,
@@ -199,7 +200,7 @@ private:
const SkMatrix& viewMatrix,
const SkRect& dstRect,
const SkRect& srcRect,
- const GrSamplerParams& params,
+ const GrSamplerState& samplerState,
const SkPaint& paint,
SkCanvas::SrcRectConstraint,
bool bicubic,