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

Issue 17620004: Remove bitmap reuse from SkImageDecoder. (Closed)

Created:
7 years, 6 months ago by scroggo
Modified:
7 years, 5 months ago
Reviewers:
djsollen
CC:
skia-review_googlegroups.com, Chris Craik
Visibility:
Public.

Description

Remove bitmap reuse from SkImageDecoder. Now that Android is using an SkBitmap::Allocator to reuse bitmap memory, remove the unnecessary code to handle bitmap reuse inside the decoders themselves. Leaves in the code for bitmap reuse in decodeSubset, which still may reuse bitmaps, and cropBitmap, which is called by decodeSubset. R=djsollen@google.com Committed: https://code.google.com/p/skia/source/detail?r=9931

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add documentation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -113 lines) Patch
M include/core/SkImageDecoder.h View 1 2 chunks +16 lines, -7 lines 0 comments Download
M src/images/SkImageDecoder.cpp View 1 chunk +1 line, -8 lines 0 comments Download
M src/images/SkImageDecoder_libbmp.cpp View 1 chunk +3 lines, -9 lines 0 comments Download
M src/images/SkImageDecoder_libgif.cpp View 1 chunk +1 line, -7 lines 0 comments Download
M src/images/SkImageDecoder_libico.cpp View 1 chunk +2 lines, -6 lines 0 comments Download
M src/images/SkImageDecoder_libjpeg.cpp View 4 chunks +8 lines, -30 lines 0 comments Download
M src/images/SkImageDecoder_libpng.cpp View 3 chunks +4 lines, -22 lines 0 comments Download
M src/images/SkImageDecoder_libwebp.cpp View 1 chunk +4 lines, -13 lines 0 comments Download
M src/images/SkImageDecoder_wbmp.cpp View 1 chunk +3 lines, -10 lines 0 comments Download
M src/ports/SkImageDecoder_empty.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
scroggo
7 years, 6 months ago (2013-06-24 20:59:09 UTC) #1
djsollen
lgtm with one nit. https://codereview.chromium.org/17620004/diff/1/include/core/SkImageDecoder.h File include/core/SkImageDecoder.h (right): https://codereview.chromium.org/17620004/diff/1/include/core/SkImageDecoder.h#newcode222 include/core/SkImageDecoder.h:222: note: document use of Allocator, ...
7 years, 6 months ago (2013-06-26 11:56:45 UTC) #2
scroggo
New patch with comments. https://codereview.chromium.org/17620004/diff/1/include/core/SkImageDecoder.h File include/core/SkImageDecoder.h (right): https://codereview.chromium.org/17620004/diff/1/include/core/SkImageDecoder.h#newcode222 include/core/SkImageDecoder.h:222: note: document use of Allocator, ...
7 years, 6 months ago (2013-06-26 15:35:28 UTC) #3
djsollen
lgtm. I think that covers it at the correct level of detail.
7 years, 6 months ago (2013-06-26 15:54:01 UTC) #4
scroggo
7 years, 5 months ago (2013-07-09 15:45:19 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r9931 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698