Index: include/gpu/GrTextureProvider.h |
diff --git a/include/gpu/GrTextureProvider.h b/include/gpu/GrTextureProvider.h |
index 5635583d80fef393a746ae75f32edc0d2a3c8025..fb3a550cd41291c7d65b2d217074bcafecf27e1b 100644 |
--- a/include/gpu/GrTextureProvider.h |
+++ b/include/gpu/GrTextureProvider.h |
@@ -70,31 +70,6 @@ public: |
*/ |
GrTexture* createApproxTexture(const GrSurfaceDesc&); |
- enum SizeConstraint { |
- kExact_SizeConstraint, |
- kApprox_SizeConstraint, |
- }; |
- |
- GrTexture* createTexture(const GrSurfaceDesc& desc, SizeConstraint constraint) { |
- switch (constraint) { |
- case kExact_SizeConstraint: |
- return this->createTexture(desc, true); |
- case kApprox_SizeConstraint: |
- return this->createApproxTexture(desc); |
- } |
- sk_throw(); |
- return nullptr; |
- } |
- |
- static SizeConstraint FromImageFilter(SkImageFilter::SizeConstraint constraint) { |
- if (SkImageFilter::kExact_SizeConstraint == constraint) { |
- return kExact_SizeConstraint; |
- } else { |
- SkASSERT(SkImageFilter::kApprox_SizeConstraint == constraint); |
- return kApprox_SizeConstraint; |
- } |
- } |
- |
/** Legacy function that no longer should be used. */ |
enum ScratchTexMatch { |
kExact_ScratchTexMatch, |