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

Issue 2495183002: Pull up initFrameBuffer to ImageDecoder. (Closed)

Created:
4 years, 1 month ago by joostouwerling
Modified:
4 years, 1 month ago
CC:
chromium-reviews, blink-reviews, jzern, skal, urvang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pull up initFrameBuffer to ImageDecoder. Just a refactor. No change in behavior, no new tests. Pull up the initFrameBuffer method from WEBPImageDecoder and GIFImageDecoder to ImageDecoder. The condition whether the previous frame's buffer could be taken instead of copied is extracted into a virtual method. Both decoders have some format-specific code, which is retained in the override method. Committed: https://crrev.com/1b922661248b6684779a874883c5bf30d73bf692 Cr-Commit-Position: refs/heads/master@{#433282}

Patch Set 1 #

Patch Set 2 : Add comment to point to DCHECK in overridden method. #

Patch Set 3 : Make ImageDecoder::initFrameBuffer const-correct. #

Total comments: 14

Patch Set 4 : Process feedback patch set 1 #

Total comments: 4

Patch Set 5 : Remove unnecessary comment #

Patch Set 6 : Solved merge conflict with crrev.com/2494363002 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -77 lines) Patch
M third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.h View 1 2 3 4 5 1 chunk +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp View 1 2 3 4 5 3 chunks +10 lines, -43 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h View 1 2 3 1 chunk +11 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp View 1 2 3 4 5 1 chunk +10 lines, -29 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
joostouwerling
4 years, 1 month ago (2016-11-13 20:54:51 UTC) #3
scroggo_chromium
https://codereview.chromium.org/2495183002/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h File third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h (right): https://codereview.chromium.org/2495183002/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h#newcode307 third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h:307: // the callee must verify that the frame exists. ...
4 years, 1 month ago (2016-11-14 13:51:46 UTC) #4
joostouwerling
https://codereview.chromium.org/2495183002/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h File third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h (right): https://codereview.chromium.org/2495183002/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h#newcode307 third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h:307: // the callee must verify that the frame exists. ...
4 years, 1 month ago (2016-11-14 16:25:10 UTC) #5
scroggo_chromium
lgtm https://codereview.chromium.org/2495183002/diff/60001/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h File third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h (right): https://codereview.chromium.org/2495183002/diff/60001/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h#newcode356 third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h:356: virtual bool canReusePreviousFrameBuffer(size_t) const { return false; } ...
4 years, 1 month ago (2016-11-14 16:44:12 UTC) #6
joostouwerling
https://codereview.chromium.org/2495183002/diff/60001/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h File third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h (right): https://codereview.chromium.org/2495183002/diff/60001/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h#newcode356 third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h:356: virtual bool canReusePreviousFrameBuffer(size_t) const { return false; } On ...
4 years, 1 month ago (2016-11-14 16:54:13 UTC) #7
urvang
lgtm
4 years, 1 month ago (2016-11-14 17:28:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2495183002/80001
4 years, 1 month ago (2016-11-14 17:47:33 UTC) #11
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-14 23:45:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2495183002/80001
4 years, 1 month ago (2016-11-15 15:30:39 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/304380)
4 years, 1 month ago (2016-11-15 15:37:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2495183002/100001
4 years, 1 month ago (2016-11-18 16:23:49 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-18 20:15:42 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 20:23:18 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1b922661248b6684779a874883c5bf30d73bf692
Cr-Commit-Position: refs/heads/master@{#433282}

Powered by Google App Engine
This is Rietveld 408576698