Go to file
scroggo ef0fed3bf0 Remove position from FrontBufferedStream
When FrontBufferedStream was written, it implemented getPosition()
and returned true for hasPosition(). The CL that introduced it
(crrev.com/23717055) does not have any indication why, but I'm guessing
it was because it was easy to implement. None of our decoders rely on
this (only some tests do).

Now that we have a decoder (SkRawCodec) that expects to be able to seek
a stream if it has a position (which makes sense - SkStream.h
associates that with SkStreamSeekable, and there is no other way to
check to see if a stream is seekable), it is failing because
FrontBufferedStream reports it has a position and the decoder tries to
seek.

Remove FrontBufferedStream::hasPosition() (reverting to the default,
false) and ::getPosition() (so it will return 0).

Fix tests - do not call FrontBufferedStream::getPosition()

Update CodexTest to test using an FrontBufferedStream, like Android
does.

BUG=b/27218441
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1703293002

Review URL: https://codereview.chromium.org/1703293002
2016-02-18 05:59:25 -08:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Add bilerp filtering. 2016-02-17 19:50:05 -08:00
bin bin/sync-and-gyp: better error checking 2016-02-17 13:07:37 -08:00
cmake Individually enable and disable SkCodecs 2016-02-17 08:26:32 -08:00
debugger Add gpu implementation of OverdrawXfermode 2016-01-27 05:00:04 -08:00
dm Make SkPicture/SkImageGenerator default to SkCodec 2016-02-17 10:02:29 -08:00
example There is an unused rowBytes parameter being passed along. 2016-02-16 13:00:02 -08:00
experimental Add GrShaderFlags enum 2016-02-11 12:49:47 -08:00
fuzz Add ability to fuzz images using scaling and different modes 2016-02-16 16:14:23 -08:00
gm Add bilerp filtering. 2016-02-17 19:50:05 -08:00
gyp Move SkTArray to include/private. 2016-02-17 13:13:44 -08:00
include fix comma in GrAuditTrail json 2016-02-18 05:04:39 -08:00
infra update CQ with new bot names 2016-02-05 06:10:38 -08:00
platform_tools Use a statically linked libhwui for testing. 2016-02-16 09:19:36 -08:00
resources Updates Piex and uses it to obtain the DNG dimensions. 2016-02-17 08:04:00 -08:00
samplecode make SkComposeShader.h private 2016-02-15 08:27:14 -08:00
site Documantation: nanobench 2016-02-12 08:08:27 -08:00
src Remove position from FrontBufferedStream 2016-02-18 05:59:25 -08:00
tests Remove position from FrontBufferedStream 2016-02-18 05:59:25 -08:00
third_party sketch hooking into PNG_FILTER_OPTIMIZATIONS 2016-01-27 13:01:41 -08:00
tools Move SkTArray to include/private. 2016-02-17 13:13:44 -08:00
.gitignore bin/sync-and-gyp: start using gclient 2016-02-16 11:48:06 -08:00
AUTHORS use malloc/calloc/free instead of moz_malloc/moz_calloc/moz_free in ports/SkMemory_mozalloc.cpp 2015-11-23 10:30:14 -08:00
codereview.settings Automatically add a docs preview link and NOTRY=true when there are only docs changes. 2015-02-26 10:16:13 -08:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Update PIEX version. This should solve the stack buffer overflow issue 2016-02-17 06:12:12 -08:00
Doxyfile Documentation: SkCanvas API 2015-05-19 10:21:29 -07:00
gyp_skia Support SKIA_OUT on Mac and ChromeOS 2015-05-04 08:04:28 -07:00
gyp_skia.py Roll gyp deps from 1765 to 1796. 2013-11-21 18:11:14 +00:00
LICENSE Include resources directory in google3 sync. 2015-10-20 13:00:48 -07:00
make.bat Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
make.py GYP: remove stale skia_scalar gyp variable 2015-11-10 13:25:12 -05:00
Makefile Add visualbench as valid target to Makefile 2015-12-18 08:05:06 -08:00
OWNERS add root files from chrome 2013-08-13 19:11:15 +00:00
PRESUBMIT.py Add link to Gold trybot runs in every uploaded Skia CL 2015-12-15 06:23:33 -08:00
public.bzl Speculative fix for Google3 iOS build 2016-02-17 14:14:25 -08:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
SK_IMAGE_VERSION Update SK_IMAGE_VERSION to test RAW 2016-02-02 11:56:33 -08:00
skia.gyp Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
SKP_VERSION Update SKP version 2016-02-16 06:42:46 -08:00
whitespace.txt Reland of whitespace change to test bugdroid (patchset #1 id:1 of https://codereview.chromium.org/1673083003/ ) 2016-02-08 11:59:52 -08:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.