skia2/include
scroggo 028a4135aa Add a method to read a stream without advancing it.
Add a virtual method on SkStream which will do a "peek" some bytes, so
that those bytes are read, but the next call to read will be
unaffected.

Implement peek for SkMemoryStream, where the implementation is simple
and obvious.

Implement peek on SkFrontBufferedStream.

Add tests.

Motivated by decoding streams which cannot be rewound.

TBR=reed@google.com

BUG=skia:3257

Review URL: https://codereview.chromium.org/1044953002
2015-04-02 13:19:51 -07:00
..
animator Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
c add stroke params to c api 2015-01-10 17:59:31 -08:00
codec SkCodec::onGetScanlineDecoder must call rewind. 2015-04-01 11:25:20 -07:00
config SkPDF: remove SK_NO_FLATE & dead code in SkPDFStream 2015-03-31 08:22:01 -07:00
core Add a method to read a stream without advancing it. 2015-04-02 13:19:51 -07:00
device/xps C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
effects Refactor Sk2x<T> + Sk4x<T> into SkNf<N,T> and SkNi<N,T> 2015-03-30 10:50:27 -07:00
gpu Add constant color GrFP. 2015-04-02 11:12:09 -07:00
images Make SkStream *not* ref counted. 2015-01-21 12:09:53 -08:00
pathops add legacy pathop enums; fix uninitialized warning 2015-03-26 09:05:12 -07:00
pipe "NULL !=" = NULL 2014-09-05 13:34:00 -07:00
ports Extract the spinlock from SkOnce as SkSpinlock. 2015-03-30 08:13:34 -07:00
svg Add SkSVGCanvas 2015-02-06 12:51:10 -08:00
utils Add a paint filter utility canvas (SkPaintFilterCanvas) 2015-03-26 07:24:48 -07:00
views Remove all code related to NaCl 2015-04-02 12:16:36 -07:00
xml C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00