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

Issue 12926004: When we read from a RemoteFontStream (might happen maybe with other streams), stream's data might b… (Closed)

Created:
7 years, 9 months ago by edisonn
Modified:
7 years, 9 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

When we read from a RemoteFontStream (might happen maybe with other streams), stream's data might be partially consumed. If so, when we try to read the whole content of the font, we fail, because we read only part of the content. Committed: https://code.google.com/p/skia/source/detail?r=8291

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M src/ports/SkFontHost_fontconfig.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
edisonn
Please prioritization this review, it is a P1 M27 blocker. Thanks!
7 years, 9 months ago (2013-03-21 00:47:10 UTC) #1
vandebo (ex-Chrome)
https://codereview.chromium.org/12926004/diff/1/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): https://codereview.chromium.org/12926004/diff/1/src/pdf/SkPDFFont.cpp#newcode551 src/pdf/SkPDFFont.cpp:551: SkAutoTUnref<SkStream> fontData(typeface->openStream(&ttcIndex)); Shouldn't typeface->openStream() return a stream at the ...
7 years, 9 months ago (2013-03-21 00:55:11 UTC) #2
bungeman-skia
Do we need to clarify and review use of SkStream? It's SkRefCnt, but it isn't ...
7 years, 9 months ago (2013-03-21 03:25:12 UTC) #3
edisonn
https://codereview.chromium.org/12926004/diff/1/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): https://codereview.chromium.org/12926004/diff/1/src/pdf/SkPDFFont.cpp#newcode551 src/pdf/SkPDFFont.cpp:551: SkAutoTUnref<SkStream> fontData(typeface->openStream(&ttcIndex)); done; added issue 1176 for the thread ...
7 years, 9 months ago (2013-03-21 13:33:08 UTC) #4
reed1
lgtm I vote for the shallow-copy API on SkStream. That said, if this is an ...
7 years, 9 months ago (2013-03-21 13:35:25 UTC) #5
edisonn
7 years, 9 months ago (2013-03-21 13:54:41 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r8291 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698