Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1037)

Issue 7300071: Add SkStream::readIntoSkData()

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by epoger
Modified:
11 years, 1 month ago
Reviewers:
caryclark1, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Add SkStream::readIntoSkData()

Patch Set 1 #

Total comments: 6

Patch Set 2 : bytesRemaining #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -7 lines) Patch
M include/core/SkStream.h View 1 chunk +30 lines, -0 lines 0 comments Download
M src/core/SkStream.cpp View 1 1 chunk +19 lines, -7 lines 1 comment Download

Messages

Total messages: 9
epoger
https://codereview.appspot.com/7300071/diff/1/include/core/SkStream.h File include/core/SkStream.h (right): https://codereview.appspot.com/7300071/diff/1/include/core/SkStream.h#newcode99 include/core/SkStream.h:99: * Create a new SkData from the stream contents. ...
11 years, 2 months ago (2013-02-08 19:29:27 UTC) #1
caryclark1
https://codereview.appspot.com/7300071/diff/1/src/core/SkStream.cpp File src/core/SkStream.cpp (right): https://codereview.appspot.com/7300071/diff/1/src/core/SkStream.cpp#newcode109 src/core/SkStream.cpp:109: } a-b // b+= c raises a red flag ...
11 years, 2 months ago (2013-02-08 19:45:28 UTC) #2
epoger
https://codereview.appspot.com/7300071/diff/1/src/core/SkStream.cpp File src/core/SkStream.cpp (right): https://codereview.appspot.com/7300071/diff/1/src/core/SkStream.cpp#newcode109 src/core/SkStream.cpp:109: } I'd be curious to know what the big ...
11 years, 2 months ago (2013-02-08 19:55:45 UTC) #3
reed1
Not sure about the read-until logic here. Maybe its correct, but none of the other ...
11 years, 2 months ago (2013-02-08 19:57:19 UTC) #4
epoger
On 2013/02/08 19:57:19, reed1 wrote: > Not sure about the read-until logic here. Maybe its ...
11 years, 2 months ago (2013-02-08 20:08:12 UTC) #5
epoger
> In terms of implementation, the root of the problem is: it's not clear (to ...
11 years, 2 months ago (2013-02-08 20:09:43 UTC) #6
epoger
https://codereview.appspot.com/7300071/diff/2002/src/core/SkStream.cpp File src/core/SkStream.cpp (left): https://codereview.appspot.com/7300071/diff/2002/src/core/SkStream.cpp#oldcode103 src/core/SkStream.cpp:103: return SkData::NewFromMalloc(buffer, size); P.S. Mike: This looks like an ...
11 years, 2 months ago (2013-02-08 20:12:58 UTC) #7
caryclark1
https://codereview.appspot.com/7300071/diff/1/src/core/SkStream.cpp File src/core/SkStream.cpp (right): https://codereview.appspot.com/7300071/diff/1/src/core/SkStream.cpp#newcode109 src/core/SkStream.cpp:109: } On 2013/02/08 19:55:45, epoger wrote: > I'd be ...
11 years, 2 months ago (2013-02-08 20:39:29 UTC) #8
reed1
11 years, 1 month ago (2013-03-15 20:28:49 UTC) #9
I don't think any of our streams support this async model (correct me if I'm
wrong).

stream->read(buffer, len)

will *always* block until either the request is met, or it fails (returning some
value less than len). In all of the other call-sites, we don't loop, and will
just report an error if the first call to read() returned fewer than expected
bytes.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b