Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1279)

Unified Diff: src/core/SkImageFilter.cpp

Issue 1569553007: Remove "unused" parameter from filterInputGPU (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkImageFilter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkImageFilter.cpp
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp
index 95988f844c4c7ef7c96394295b8de185478c1e28..7518501aa5e21805ca4d5cfece09c97cda78699b 100644
--- a/src/core/SkImageFilter.cpp
+++ b/src/core/SkImageFilter.cpp
@@ -520,8 +520,7 @@ void SkImageFilter::WrapTexture(GrTexture* texture, int width, int height, SkBit
bool SkImageFilter::filterInputGPU(int index, SkImageFilter::Proxy* proxy,
const SkBitmap& src, const Context& origCtx,
- SkBitmap* result, SkIPoint* offset,
- bool relaxSizeConstraint) const {
+ SkBitmap* result, SkIPoint* offset) const {
SkImageFilter* input = this->getInput(index);
if (!input) {
return true;
@@ -531,11 +530,7 @@ bool SkImageFilter::filterInputGPU(int index, SkImageFilter::Proxy* proxy,
// called are restored before we return to the caller.
GrContext* context = src.getTexture()->getContext();
- SizeConstraint constraint = origCtx.sizeConstraint();
- if (relaxSizeConstraint && (kExact_SizeConstraint == constraint)) {
- constraint = kApprox_SizeConstraint;
- }
- Context ctx(origCtx.ctm(), origCtx.clipBounds(), origCtx.cache(), constraint);
+ Context ctx(origCtx.ctm(), origCtx.clipBounds(), origCtx.cache(), kApprox_SizeConstraint);
if (input->filterImage(proxy, src, this->mapContext(ctx), result, offset)) {
if (!result->getTexture()) {
« no previous file with comments | « include/core/SkImageFilter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698