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

Issue 387863005: Move SkPDFStream back to SkStream to save memory. (Closed)

Created:
6 years, 5 months ago by hal.canary
Modified:
5 years, 11 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Move SkPDFStream back to SkStream to save memory. SkPDFStream stores data as a SkStreamRewindable to minimize deep duplication and memory overhead. SkStreamToStreamRewindable function to deal with fact that SkTypeface returns a SkStream. BUG=skia:2743 Committed: https://skia.googlesource.com/skia/+/e322482f4d82bc704e40b8c89843f2ea5b6ddc04

Patch Set 1 #

Patch Set 2 : Simpler changes #

Total comments: 10

Patch Set 3 : AnotherPatchSet #

Total comments: 2

Patch Set 4 : reed commants #

Total comments: 2

Patch Set 5 : bungeman comments #

Patch Set 6 : make compiler happy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -22 lines) Patch
M src/core/SkStream.cpp View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
M src/core/SkStreamPriv.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M src/pdf/SkPDFStream.h View 1 2 3 chunks +12 lines, -10 lines 0 comments Download
M src/pdf/SkPDFStream.cpp View 1 2 4 chunks +22 lines, -12 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
hal.canary
I hope this helps with the sk_out_of_memory issues on the Nexus4.
6 years, 5 months ago (2014-07-11 20:52:55 UTC) #1
bungeman-skia
Long term we need to have all of our interfaces actually take the right sort ...
6 years, 5 months ago (2014-07-11 21:43:39 UTC) #2
hal.canary
https://codereview.chromium.org/387863005/diff/20001/src/core/SkStream.cpp File src/core/SkStream.cpp (right): https://codereview.chromium.org/387863005/diff/20001/src/core/SkStream.cpp#newcode911 src/core/SkStream.cpp:911: SkStreamRewindable* SkStreamToStreamRewindable(SkStream* stream) { On 2014/07/11 21:43:38, bungeman1 wrote: ...
6 years, 5 months ago (2014-07-12 00:58:49 UTC) #3
reed1
https://codereview.chromium.org/387863005/diff/40001/src/core/SkStreamPriv.h File src/core/SkStreamPriv.h (right): https://codereview.chromium.org/387863005/diff/40001/src/core/SkStreamPriv.h#newcode41 src/core/SkStreamPriv.h:41: * otherwise copying to memory). What happens with subsequent ...
6 years, 5 months ago (2014-07-12 11:05:05 UTC) #4
hal.canary
I modified the code and the documentation to be as consistent as possible. https://codereview.chromium.org/387863005/diff/40001/src/core/SkStreamPriv.h File ...
6 years, 5 months ago (2014-07-14 14:34:11 UTC) #5
bungeman-skia
https://codereview.chromium.org/387863005/diff/60001/src/core/SkStreamPriv.h File src/core/SkStreamPriv.h (right): https://codereview.chromium.org/387863005/diff/60001/src/core/SkStreamPriv.h#newcode43 src/core/SkStreamPriv.h:43: * calls rewind() on the input stream before returning. ...
6 years, 5 months ago (2014-07-14 15:05:00 UTC) #6
hal.canary
https://codereview.chromium.org/387863005/diff/60001/src/core/SkStreamPriv.h File src/core/SkStreamPriv.h (right): https://codereview.chromium.org/387863005/diff/60001/src/core/SkStreamPriv.h#newcode43 src/core/SkStreamPriv.h:43: * calls rewind() on the input stream before returning. ...
6 years, 5 months ago (2014-07-14 15:08:52 UTC) #7
bungeman-skia
lgtm at PS5
6 years, 5 months ago (2014-07-14 15:10:23 UTC) #8
hal.canary
The CQ bit was checked by halcanary@google.com
6 years, 5 months ago (2014-07-14 15:23:02 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/halcanary@google.com/387863005/80001
6 years, 5 months ago (2014-07-14 15:23:58 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Mac10.8-Clang-x86-Release-Trybot on tryserver.skia ...
6 years, 5 months ago (2014-07-14 15:37:55 UTC) #11
hal.canary
The CQ bit was unchecked by halcanary@google.com
6 years, 5 months ago (2014-07-14 15:41:50 UTC) #12
hal.canary
The CQ bit was checked by halcanary@google.com
6 years, 5 months ago (2014-07-14 15:50:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/halcanary@google.com/387863005/100001
6 years, 5 months ago (2014-07-14 15:50:35 UTC) #14
commit-bot: I haz the power
6 years, 5 months ago (2014-07-14 16:12:18 UTC) #15
Message was sent while issue was closed.
Change committed as e322482f4d82bc704e40b8c89843f2ea5b6ddc04

Powered by Google App Engine
This is Rietveld 408576698