aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/MatrixBench.cpp
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2015-03-27 13:27:51 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-27 13:27:51 -0700
commit5cffba8d8e6965b10017fae7d8b67c8724e12822 (patch)
tree07907782f77f7587a087fe3fd379cb3faf678abc /bench/MatrixBench.cpp
parent871ad7a13edbc0458e6a05c02697681857f97321 (diff)
Remove SkMemoryStream::peek()
I'd like to add a new API to SkStream for peeking - i.e. reading some bytes without advancing the stream. This will be implemented for the streams where it makes sense. I think the function should look something like the following: size_t peek(void* buffer, size_t bytesToRead) { return this->onPeek(buffer, bytesToRead); } virtual size_t onPeek(void* buffer, size_t bytesToRead) { return 0; // unimplemented base class. } In order to avoid confusion, I'd like to remove SkMemoryStream::peek(), which is not currently used internally, by Chrome, or by Android as far as I can tell. There is also another function does the same thing: getPosition(). BUG=skia:3257 Review URL: https://codereview.chromium.org/1039373002
Diffstat (limited to 'bench/MatrixBench.cpp')
0 files changed, 0 insertions, 0 deletions