aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSWMaskHelper.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2016-12-14 09:12:13 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-14 15:00:41 +0000
commit417b7f4255e01983eb5c2686f39294d39ad60814 (patch)
tree4ad55967f74791a9749712e23b2464940ba68651 /src/gpu/GrSWMaskHelper.cpp
parent4a24da5ceccbbd5eb91c75ce680c42191a5342d0 (diff)
Replace TextureType with SkBackingFit
I believe TextureType is vestigial Change-Id: I253f3a3200d6e05d5e0204662225f4a8e8ed5cb9 Reviewed-on: https://skia-review.googlesource.com/6029 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrSWMaskHelper.cpp')
-rw-r--r--src/gpu/GrSWMaskHelper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp
index 6bbb3bdd20..f90678a3c2 100644
--- a/src/gpu/GrSWMaskHelper.cpp
+++ b/src/gpu/GrSWMaskHelper.cpp
@@ -97,13 +97,13 @@ bool GrSWMaskHelper::init(const SkIRect& resultBounds, const SkMatrix* matrix) {
/**
* Get a texture (from the texture cache) of the correct size & format.
*/
-GrTexture* GrSWMaskHelper::createTexture(TextureType textureType) {
+GrTexture* GrSWMaskHelper::createTexture(SkBackingFit fit) {
GrSurfaceDesc desc;
desc.fWidth = fPixels.width();
desc.fHeight = fPixels.height();
desc.fConfig = kAlpha_8_GrPixelConfig;
- if (TextureType::kApproximateFit == textureType) {
+ if (SkBackingFit::kApprox == fit) {
return fTexProvider->createApproxTexture(desc);
} else {
return fTexProvider->createTexture(desc, SkBudgeted::kYes);
@@ -140,7 +140,7 @@ GrTexture* GrSWMaskHelper::DrawShapeMaskToTexture(GrTextureProvider* texProvider
const GrShape& shape,
const SkIRect& resultBounds,
GrAA aa,
- TextureType textureType,
+ SkBackingFit fit,
const SkMatrix* matrix) {
GrSWMaskHelper helper(texProvider);
@@ -150,7 +150,7 @@ GrTexture* GrSWMaskHelper::DrawShapeMaskToTexture(GrTextureProvider* texProvider
helper.drawShape(shape, SkRegion::kReplace_Op, aa, 0xFF);
- GrTexture* texture(helper.createTexture(textureType));
+ GrTexture* texture(helper.createTexture(fit));
if (!texture) {
return nullptr;
}