diff options
author | 2017-09-07 12:36:34 -0400 | |
---|---|---|
committer | 2017-09-07 16:58:31 +0000 | |
commit | 2bbdcc44c63974f29f3743bb58d929601a3f65c6 (patch) | |
tree | d420f298f606b061054e56866d1930ab84f00ed5 /src/gpu/GrGpu.h | |
parent | 4df0092eac6e9bb5afc516773a0c618630193dc6 (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/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index a0a552c7dc..ef99a4801e 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -486,9 +486,9 @@ public: virtual void clearStencil(GrRenderTarget* target, int clearValue) = 0; // Determines whether a texture will need to be rescaled in order to be used with the - // GrSamplerParams. This variation is called when the caller will create a new texture using the + // GrSamplerState. This variation is called when the caller will create a new texture using the // resource provider from a non-texture src (cpu-backed image, ...). - bool isACopyNeededForTextureParams(int width, int height, const GrSamplerParams&, + bool isACopyNeededForTextureParams(int width, int height, const GrSamplerState&, GrTextureProducer::CopyParams*, SkScalar scaleAdjust[2]) const; @@ -496,7 +496,7 @@ public: // original texture but rather was handed the original texture. It adds additional checks // relevant to original textures that were created external to Skia via // GrResourceProvider::wrap methods. - bool isACopyNeededForTextureParams(GrTextureProxy* proxy, const GrSamplerParams& params, + bool isACopyNeededForTextureParams(GrTextureProxy* proxy, const GrSamplerState& params, GrTextureProducer::CopyParams* copyParams, SkScalar scaleAdjust[2]) const { if (this->isACopyNeededForTextureParams(proxy->width(), proxy->height(), params, @@ -569,7 +569,7 @@ private: return nullptr; } - virtual bool onIsACopyNeededForTextureParams(GrTextureProxy* proxy, const GrSamplerParams&, + virtual bool onIsACopyNeededForTextureParams(GrTextureProxy* proxy, const GrSamplerState&, GrTextureProducer::CopyParams*, SkScalar scaleAdjust[2]) const { return false; |