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

Issue 290893002: [wip] Add canvas.toDataURL("image/png") compression control

Created:
6 years, 7 months ago by Noel Gordon
Modified:
5 years, 3 months ago
Reviewers:
CC:
blink-reviews, jamesr, krit, jbroman, danakj, Rik, Stephen Chennney, pdr., rwlbuis
Visibility:
Public.

Description

[wip] Add canvas.toDataURL("image/png") compression control Add an optional compression argument to toDataURL for "image/png" to control the compression of the output image. The argument is a number in the range [0.0, ..., 1.0], similar to the quality argument used for "image/jpeg". Higher values usually increase compression at the cost of speed. TEST=fast/canvas/canvas-toDataURL-png-compression.html BUG=179289

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Update after https://src.chromium.org/viewvc/blink?view=rev&revision=175387 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -21 lines) Patch
A LayoutTests/fast/canvas/canvas-toDataURL-png-compression.html View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-toDataURL-png-compression-expected.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/platform/graphics/GraphicsContextRecorder.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/platform/graphics/ImageBuffer.cpp View 2 chunks +5 lines, -1 line 0 comments Download
M Source/platform/image-encoders/skia/PNGImageEncoder.h View 1 chunk +6 lines, -3 lines 0 comments Download
M Source/platform/image-encoders/skia/PNGImageEncoder.cpp View 1 3 chunks +34 lines, -16 lines 0 comments Download

Powered by Google App Engine
This is Rietveld 408576698