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

Issue 25353002: change SkColorTable to be immutable (Closed)

Created:
7 years, 2 months ago by reed1
Modified:
7 years, 2 months ago
Reviewers:
scroggo, djsollen
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

change SkColorTable to be immutable BUG= R=scroggo@google.com Committed: https://code.google.com/p/skia/source/detail?r=11676

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : update codecs #

Total comments: 14

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : rebase #

Total comments: 12

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -159 lines) Patch
M gm/tinybitmap.cpp View 1 1 chunk +3 lines, -6 lines 0 comments Download
M include/core/SkAlpha.h View 1 chunk +3 lines, -0 lines 0 comments Download
M include/core/SkBitmap.h View 2 chunks +2 lines, -2 lines 0 comments Download
M include/core/SkColorTable.h View 1 2 3 4 5 4 chunks +18 lines, -33 lines 0 comments Download
M samplecode/SampleBlur.cpp View 1 1 chunk +5 lines, -5 lines 0 comments Download
M samplecode/SampleDitherBitmap.cpp View 1 2 chunks +9 lines, -6 lines 0 comments Download
M samplecode/SampleTinyBitmap.cpp View 1 2 chunks +7 lines, -4 lines 0 comments Download
M src/core/SkBitmap.cpp View 2 chunks +4 lines, -8 lines 0 comments Download
M src/core/SkBitmapProcState_procs.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/core/SkColorTable.cpp View 1 2 3 4 5 5 chunks +20 lines, -73 lines 0 comments Download
M src/core/SkProcSpriteBlitter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkSpriteBlitter_RGB16.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/SkGr.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/images/SkImageDecoder_libgif.cpp View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -5 lines 0 comments Download
M src/images/SkImageDecoder_libpng.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -9 lines 0 comments Download
M src/opts/SkBitmapProcState_opts_arm.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
reed1
7 years, 2 months ago (2013-09-30 21:49:07 UTC) #1
scroggo
https://codereview.chromium.org/25353002/diff/1/include/core/SkColorTable.h File include/core/SkColorTable.h (right): https://codereview.chromium.org/25353002/diff/1/include/core/SkColorTable.h#newcode89 include/core/SkColorTable.h:89: uint8_t fPad; fPad is never used. https://codereview.chromium.org/25353002/diff/1/src/core/SkColorTable.cpp File src/core/SkColorTable.cpp ...
7 years, 2 months ago (2013-10-01 17:30:38 UTC) #2
scroggo
https://codereview.chromium.org/25353002/diff/1/include/core/SkColorTable.h File include/core/SkColorTable.h (right): https://codereview.chromium.org/25353002/diff/1/include/core/SkColorTable.h#newcode63 include/core/SkColorTable.h:63: void unlockColors(); Callers need to be updated in src/images/SkImageDecoder_libpng.cpp ...
7 years, 2 months ago (2013-10-01 17:38:28 UTC) #3
scroggo
https://codereview.chromium.org/25353002/diff/1/include/core/SkColorTable.h File include/core/SkColorTable.h (left): https://codereview.chromium.org/25353002/diff/1/include/core/SkColorTable.h#oldcode43 include/core/SkColorTable.h:43: void setFlags(unsigned flags); We still have callers of setFlags ...
7 years, 2 months ago (2013-10-02 21:16:26 UTC) #4
scroggo
https://codereview.chromium.org/25353002/diff/1/include/core/SkColorTable.h File include/core/SkColorTable.h (right): https://codereview.chromium.org/25353002/diff/1/include/core/SkColorTable.h#newcode29 include/core/SkColorTable.h:29: SkColorTable(const SkPMColor colors[], int count, Comment that this makes ...
7 years, 2 months ago (2013-10-02 22:19:15 UTC) #5
reed1
now with codec goodness. ptal
7 years, 2 months ago (2013-10-07 21:09:04 UTC) #6
scroggo
https://codereview.chromium.org/25353002/diff/18001/include/core/SkColorTable.h File include/core/SkColorTable.h (right): https://codereview.chromium.org/25353002/diff/18001/include/core/SkColorTable.h#newcode89 include/core/SkColorTable.h:89: uint8_t fPad; unused. https://codereview.chromium.org/25353002/diff/18001/src/core/SkColorTable.cpp File src/core/SkColorTable.cpp (right): https://codereview.chromium.org/25353002/diff/18001/src/core/SkColorTable.cpp#newcode18 src/core/SkColorTable.cpp:18: ...
7 years, 2 months ago (2013-10-07 21:58:42 UTC) #7
reed1
ptal https://codereview.chromium.org/25353002/diff/18001/include/core/SkColorTable.h File include/core/SkColorTable.h (right): https://codereview.chromium.org/25353002/diff/18001/include/core/SkColorTable.h#newcode89 include/core/SkColorTable.h:89: uint8_t fPad; On 2013/10/07 21:58:42, scroggo wrote: > ...
7 years, 2 months ago (2013-10-09 12:19:54 UTC) #8
reed1
7 years, 2 months ago (2013-10-09 12:44:52 UTC) #9
reed1
derek, I think leon might be out today.
7 years, 2 months ago (2013-10-09 15:01:38 UTC) #10
djsollen
I'm late to the party so some of these questions may have already been answered. ...
7 years, 2 months ago (2013-10-09 15:42:18 UTC) #11
reed1
ptal https://codereview.chromium.org/25353002/diff/42001/samplecode/SampleDitherBitmap.cpp File samplecode/SampleDitherBitmap.cpp (right): https://codereview.chromium.org/25353002/diff/42001/samplecode/SampleDitherBitmap.cpp#newcode104 samplecode/SampleDitherBitmap.cpp:104: #if 0 On 2013/10/09 15:42:18, djsollen wrote: > ...
7 years, 2 months ago (2013-10-09 15:51:25 UTC) #12
scroggo
https://codereview.chromium.org/25353002/diff/18001/src/images/SkImageDecoder_libpng.cpp File src/images/SkImageDecoder_libpng.cpp (right): https://codereview.chromium.org/25353002/diff/18001/src/images/SkImageDecoder_libpng.cpp#newcode674 src/images/SkImageDecoder_libpng.cpp:674: bool reallyHasAlpha = numTrans > 0; On 2013/10/09 12:19:54, ...
7 years, 2 months ago (2013-10-09 16:05:23 UTC) #13
reed1
ptal https://codereview.chromium.org/25353002/diff/18001/src/images/SkImageDecoder_libpng.cpp File src/images/SkImageDecoder_libpng.cpp (right): https://codereview.chromium.org/25353002/diff/18001/src/images/SkImageDecoder_libpng.cpp#newcode674 src/images/SkImageDecoder_libpng.cpp:674: bool reallyHasAlpha = numTrans > 0; On 2013/10/09 ...
7 years, 2 months ago (2013-10-09 16:16:36 UTC) #14
reed1
https://codereview.chromium.org/25353002/diff/42001/src/core/SkColorTable.cpp File src/core/SkColorTable.cpp (right): https://codereview.chromium.org/25353002/diff/42001/src/core/SkColorTable.cpp#newcode62 src/core/SkColorTable.cpp:62: void SkColorTable::unlockColors() { On 2013/10/09 16:05:23, scroggo wrote: > ...
7 years, 2 months ago (2013-10-09 16:17:38 UTC) #15
djsollen
in general this 1gtm, but I'll defer to leon as this seems to have more ...
7 years, 2 months ago (2013-10-09 16:19:50 UTC) #16
scroggo
On 2013/10/09 16:19:50, djsollen wrote: > in general this 1gtm, but I'll defer to leon ...
7 years, 2 months ago (2013-10-09 16:23:29 UTC) #17
reed1
7 years, 2 months ago (2013-10-09 16:34:56 UTC) #18
Message was sent while issue was closed.
Committed patchset #10 manually as r11676 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698