diff options
author | reed <reed@google.com> | 2016-01-11 10:56:59 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-11 10:56:59 -0800 |
commit | 4e23cdaa6b892afeaa150c6d74099dc6c2065b7e (patch) | |
tree | 259fa62c7cbb4a3cdbdc069719012148dd5ff836 /src/gpu | |
parent | 5651ee6376dc3271ea8f4fc91b037c8f361c3cfa (diff) |
remove imagefilter::sizeconstraint
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1571033002
Review URL: https://codereview.chromium.org/1571033002
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrLayerHoister.cpp | 2 | ||||
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrLayerHoister.cpp b/src/gpu/GrLayerHoister.cpp index 004e4d0e6e..2c45a7f9e5 100644 --- a/src/gpu/GrLayerHoister.cpp +++ b/src/gpu/GrLayerHoister.cpp @@ -311,7 +311,7 @@ void GrLayerHoister::FilterLayer(GrContext* context, // This cache is transient, and is freed (along with all its contained // textures) when it goes out of scope. SkAutoTUnref<SkImageFilter::Cache> cache(SkImageFilter::Cache::Create(kDefaultCacheSize)); - SkImageFilter::Context filterContext(totMat, clipBounds, cache, SkImageFilter::kApprox_SizeConstraint); + SkImageFilter::Context filterContext(totMat, clipBounds, cache); SkImageFilter::DeviceProxy proxy(device); const SkBitmap src = wrap_texture(layer->texture()); diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 7c77dedecb..40da40aca4 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -1157,7 +1157,7 @@ void SkGpuDevice::drawSprite(const SkDraw& draw, const SkBitmap& bitmap, SkAutoTUnref<SkImageFilter::Cache> cache(getImageFilterCache()); // This cache is transient, and is freed (along with all its contained // textures) when it goes out of scope. - SkImageFilter::Context ctx(matrix, clipBounds, cache, SkImageFilter::kApprox_SizeConstraint); + SkImageFilter::Context ctx(matrix, clipBounds, cache); if (this->filterTexture(fContext, texture, w, h, filter, ctx, &filteredBitmap, &offset)) { texture = (GrTexture*) filteredBitmap.getTexture(); @@ -1323,7 +1323,7 @@ void SkGpuDevice::drawDevice(const SkDraw& draw, SkBaseDevice* device, // This cache is transient, and is freed (along with all its contained // textures) when it goes out of scope. SkAutoTUnref<SkImageFilter::Cache> cache(getImageFilterCache()); - SkImageFilter::Context ctx(matrix, clipBounds, cache, SkImageFilter::kApprox_SizeConstraint); + SkImageFilter::Context ctx(matrix, clipBounds, cache); if (this->filterTexture(fContext, devTex, device->width(), device->height(), filter, ctx, &filteredBitmap, &offset)) { devTex = filteredBitmap.getTexture(); |