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

Issue 136863006: Implement a resize image filter. This is needed for the "filterRes" feature in SVG filter effects, … (Closed)

Created:
6 years, 11 months ago by Stephen White
Modified:
6 years, 11 months ago
Reviewers:
reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Implement a resize image filter. This is needed for the "filterRes" feature in SVG filter effects, which specifies the required size for intermediate processing buffers. In order to make this work, we need to render the primitive at the given resolution (doable at the callsite in Blink), and then to resize the result to the actual on-screen size. The latter is where this filter comes in. It simply applies a scaling factor (and the current CTM) to its input, and draws its input bitmap at that size. R=reed@google.com Committed: https://code.google.com/p/skia/source/detail?r=13077 Reverted: https://code.google.com/p/skia/source/detail?r=13078 BUG= Committed: https://code.google.com/p/skia/source/detail?r=13082

Patch Set 1 #

Patch Set 2 : Fix docs #

Total comments: 4

Patch Set 3 : Changes per review comments #

Patch Set 4 : Use concat() and drawBitmap() instead of drawBitmapRectToRect() #

Patch Set 5 : Remove CTM application from resize filter; change GM to emulate Blink #

Patch Set 6 : Style fixes. #

Patch Set 7 : More 100-col fixes #

Patch Set 8 : One more 100-col fix #

Patch Set 9 : Add registration to fix cross-process pipe tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -0 lines) Patch
A gm/resizeimagefilter.cpp View 1 2 3 4 5 6 7 1 chunk +96 lines, -0 lines 0 comments Download
M gyp/effects.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A include/effects/SkResizeImageFilter.h View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
A src/effects/SkResizeImageFilter.cpp View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 0 comments Download
M src/ports/SkGlobalInitialization_chromium.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M src/ports/SkGlobalInitialization_default.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Stephen White
reed@: PTAL. Thanks!
6 years, 11 months ago (2014-01-13 21:52:13 UTC) #1
reed1
'filterRes' is expressed as a target size, not a scale-factor, correct? Using SkSize for your ...
6 years, 11 months ago (2014-01-13 22:02:57 UTC) #2
Stephen White
I removed the CTM application from the scale, since the source bitmap is already transformed ...
6 years, 11 months ago (2014-01-14 21:45:42 UTC) #3
reed1
lgtm
6 years, 11 months ago (2014-01-14 21:55:19 UTC) #4
Stephen White
Committed patchset #8 manually as r13077 (presubmit successful).
6 years, 11 months ago (2014-01-14 22:20:54 UTC) #5
Stephen White
6 years, 11 months ago (2014-01-15 04:49:24 UTC) #6
Message was sent while issue was closed.
Committed patchset #9 manually as r13082 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698