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

Issue 1314763008: Remove JPEG encoder SkBitmap API (Closed)

Created:
5 years, 3 months ago by Noel Gordon
Modified:
5 years, 3 months ago
CC:
blink-reviews, Justin Novosad, Stephen White, reed1, urvang, skal
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Remove JPEG encoder SkBitmap API SkBitmap is being removed from Chrome. There are no longer any callers of JPEGImageEncoder::encode(SkBitmap,...) so we can remove it and also the support code it required. Note: The libjpeg-turbo specialization was the fastest encoder, but it required premultiplied data (SkBitmap). Thus some performance was lost when callers were switched over to use the ImageDataBuffer encoder (in the SkImage-replaces-SkBitmap endeavor). No change in behavior, no new tests. BUG=449197 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201367

Patch Set 1 #

Total comments: 1

Patch Set 2 : Patch for landing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -59 lines) Patch
M Source/platform/image-encoders/skia/JPEGImageEncoder.h View 1 1 chunk +1 line, -4 lines 0 comments Download
M Source/platform/image-encoders/skia/JPEGImageEncoder.cpp View 1 6 chunks +6 lines, -55 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
Noel Gordon
5 years, 3 months ago (2015-08-27 14:17:53 UTC) #2
Noel Gordon
https://codereview.chromium.org/1314763008/diff/1/Source/platform/image-encoders/skia/JPEGImageEncoder.cpp File Source/platform/image-encoders/skia/JPEGImageEncoder.cpp (right): https://codereview.chromium.org/1314763008/diff/1/Source/platform/image-encoders/skia/JPEGImageEncoder.cpp#newcode34 Source/platform/image-encoders/skia/JPEGImageEncoder.cpp:34: // #include "SkBitmap.h" Will remove this after the trys ...
5 years, 3 months ago (2015-08-27 14:19:23 UTC) #3
Noel Gordon
canvas and fast{image,canvas} layout tests passing locally for me: patch for landing, PTAL.
5 years, 3 months ago (2015-08-27 14:36:38 UTC) #4
reed1
5 years, 3 months ago (2015-08-27 14:51:34 UTC) #6
f(malita)
LGTM. To your perf comment: we could add an encode(SkImage) variant, and then read the ...
5 years, 3 months ago (2015-08-27 14:57:16 UTC) #7
reed1
SkImage->encode(kJPEG) exists, but hasn't yet been plumbed thru to blink's codecs (the decode variant has!) ...
5 years, 3 months ago (2015-08-27 15:01:38 UTC) #8
urvang
Good riddance! One question: why not remove the same from PNG and WebP encoders too?
5 years, 3 months ago (2015-08-27 16:59:14 UTC) #10
Noel Gordon
On 2015/08/27 16:59:14, urvang wrote: > Good riddance! > One question: why not remove the ...
5 years, 3 months ago (2015-08-28 03:07:22 UTC) #11
Noel Gordon
On 2015/08/27 14:57:16, f(malita) wrote: > LGTM. > > To your perf comment: we could ...
5 years, 3 months ago (2015-08-28 03:22:20 UTC) #12
Noel Gordon
On 2015/08/27 15:01:38, reed1 wrote: > SkImage->encode(kJPEG) exists, but hasn't yet been plumbed thru to ...
5 years, 3 months ago (2015-08-28 03:25:23 UTC) #13
Noel Gordon
Test passing, landing this change.
5 years, 3 months ago (2015-08-28 03:25:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314763008/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314763008/20001
5 years, 3 months ago (2015-08-28 03:26:04 UTC) #16
Noel Gordon
Aside: developers do in fact care about toDataURL perf, https://code.google.com/p/chromium/issues/detail?id=112966 for example [wacky use-case, perhaps ...
5 years, 3 months ago (2015-08-28 03:38:52 UTC) #17
commit-bot: I haz the power
5 years, 3 months ago (2015-08-28 04:22:39 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201367

Powered by Google App Engine
This is Rietveld 408576698