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

Issue 784643002: Replace EncodeBitmap with an interface. (Closed)

Created:
6 years ago by scroggo
Modified:
6 years ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Replace EncodeBitmap with an interface. Gives more flexibility to the caller to decide whether to use the encoded data returned by refEncodedData(). Provides an implementation that supports the old version of SkPicture::serialize(). TODO: Update Chrome, so we can remove SK_LEGACY_ENCODE_BITMAP entirely BUG=skia:3190 Committed: https://skia.googlesource.com/skia/+/895c43b28b27bb3124db3d32efd0c7219eb4a3cb

Patch Set 1 #

Patch Set 2 : Make gm's call to serialize unambiguous also #

Patch Set 3 : Mimic old behavior with no pixelref. #

Patch Set 4 : IWYU #

Patch Set 5 : Undefine macro, fix callsites, define in chrome, leave EncodeBitmap for PDF. #

Total comments: 2

Patch Set 6 : Move legacy impl into SkPicture.cpp #

Patch Set 7 : Lock pixels before attempting to read them. #

Patch Set 8 : Update comments #

Total comments: 6

Patch Set 9 : Respond to Mike's comments in ps 8. #

Patch Set 10 : Fix line length #

Patch Set 11 : Document that a ref is taken. #

Patch Set 12 : Fix compile errors #

Patch Set 13 : Use local variable. #

Patch Set 14 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -56 lines) Patch
M dm/DMSerializeTask.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/gmmain.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M gyp/skia_for_chromium_defines.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkPicture.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +19 lines, -1 line 0 comments Download
A include/core/SkPixelSerializer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +52 lines, -0 lines 0 comments Download
M include/core/SkWriteBuffer.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -10 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +36 lines, -3 lines 0 comments Download
M src/core/SkPictureData.h View 2 chunks +2 lines, -1 line 0 comments Download
M src/core/SkPictureData.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/core/SkWriteBuffer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +34 lines, -27 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +18 lines, -4 lines 0 comments Download
M tools/PictureRenderer.cpp View 1 2 3 4 5 6 7 8 3 chunks +19 lines, -5 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
scroggo
https://codereview.chromium.org/784643002/diff/80001/dm/DMSerializeTask.cpp File dm/DMSerializeTask.cpp (left): https://codereview.chromium.org/784643002/diff/80001/dm/DMSerializeTask.cpp#oldcode24 dm/DMSerializeTask.cpp:24: recorded->serialize(&wStream, NULL); Changed due to ambiguity. I could add ...
6 years ago (2014-12-07 21:05:05 UTC) #2
reed1
https://codereview.chromium.org/784643002/diff/130001/include/core/SkPixelSerializer.h File include/core/SkPixelSerializer.h (right): https://codereview.chromium.org/784643002/diff/130001/include/core/SkPixelSerializer.h#newcode20 include/core/SkPixelSerializer.h:20: public: Can we make these methods non-virtual, and have ...
6 years ago (2014-12-08 15:51:15 UTC) #3
scroggo
https://codereview.chromium.org/784643002/diff/130001/include/core/SkPixelSerializer.h File include/core/SkPixelSerializer.h (right): https://codereview.chromium.org/784643002/diff/130001/include/core/SkPixelSerializer.h#newcode20 include/core/SkPixelSerializer.h:20: public: On 2014/12/08 15:51:15, reed1 wrote: > Can we ...
6 years ago (2014-12-08 18:09:31 UTC) #4
reed1
may have further bikesheds, but lets start to try using it and see. lgtm
6 years ago (2014-12-08 21:55:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/784643002/190001
6 years ago (2014-12-08 21:56:49 UTC) #7
commit-bot: I haz the power
Committed patchset #11 (id:190001) as https://skia.googlesource.com/skia/+/0c4aba6edb9900c597359dfa49d3ce4a41bc5dd1
6 years ago (2014-12-09 13:23:19 UTC) #8
robertphillips
A revert of this CL (patchset #11 id:190001) has been created in https://codereview.chromium.org/787833002/ by robertphillips@google.com. ...
6 years ago (2014-12-09 13:33:55 UTC) #9
scroggo
On 2014/12/09 13:33:55, robertphillips wrote: > A revert of this CL (patchset #11 id:190001) has ...
6 years ago (2014-12-09 14:12:22 UTC) #11
rmistry
On 2014/12/09 14:12:22, scroggo wrote: > On 2014/12/09 13:33:55, robertphillips wrote: > > A revert ...
6 years ago (2014-12-09 14:18:15 UTC) #12
borenet
On 2014/12/09 14:18:15, rmistry wrote: > On 2014/12/09 14:12:22, scroggo wrote: > > On 2014/12/09 ...
6 years ago (2014-12-09 14:31:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/784643002/210001
6 years ago (2014-12-09 15:35:27 UTC) #15
commit-bot: I haz the power
Committed patchset #12 (id:210001) as https://skia.googlesource.com/skia/+/02b217f80b01a7dda8493422e5257c36a9ce8464
6 years ago (2014-12-09 15:44:41 UTC) #16
scroggo
A revert of this CL (patchset #12 id:210001) has been created in https://codereview.chromium.org/783393004/ by scroggo@google.com. ...
6 years ago (2014-12-09 16:26:47 UTC) #17
scroggo
Only failing on Win8, when running dm. mtklein@, any idea what could be different there?
6 years ago (2014-12-09 22:25:01 UTC) #20
scroggo
On 2014/12/09 22:25:01, scroggo wrote: > Only failing on Win8, when running dm. > > ...
6 years ago (2014-12-11 18:38:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/784643002/230001
6 years ago (2014-12-11 18:39:30 UTC) #23
commit-bot: I haz the power
Failed to apply patch for gyp/skia_for_chromium_defines.gypi: While running git apply --index -3 -p1; error: patch ...
6 years ago (2014-12-11 18:39:36 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/784643002/250001
6 years ago (2014-12-11 18:44:39 UTC) #27
commit-bot: I haz the power
6 years ago (2014-12-11 18:54:03 UTC) #28
Message was sent while issue was closed.
Committed patchset #14 (id:250001) as
https://skia.googlesource.com/skia/+/895c43b28b27bb3124db3d32efd0c7219eb4a3cb

Powered by Google App Engine
This is Rietveld 408576698