skia2/gyp
scroggo 60869a42a1 Add timing SkCodec to nanobench.
CodecBench:
Add new class for timing using SkCodec.

DecodingBench:
Include creating a decoder inside the loop. This is to have a better
comparison against SkCodec. SkCodec's factory function does not
necessarily read the same amount as SkImageDecoder's, so in order to
have a meaningful comparison, read the entire stream from the
beginning. Also for comparison, create a new SkStream from the
SkData each time.
Add a debugging check to make sure we have an SkImageDecoder.
Add include guards.

nanobench.cpp:
Decode using SkCodec.
When decoding using SkImageDecoder, exclude benches where we decoded
to a different color type than requested. SkImageDecoder may decide to
decode to a different type, in which case the name is misleading.

TODOs:
Now that we ignore color types that do not match the desired
color type, we should add Index8. This also means calling the more
complex version of getPixels so CodecBench can support kIndex8.

BUG=skia:3257

Review URL: https://codereview.chromium.org/1044363002
2015-04-01 12:09:17 -07:00
..
android_deps.gyp WIP: Added support for giflib, updated jpeg and png 2015-03-30 07:52:52 -07:00
android_framework_lib.gyp Make android framework depend on SkCodec. 2015-03-20 11:20:03 -07:00
android_output.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
android_system.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
angle.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
animator.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
apptype_console.gypi Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
bench.gyp Add timing SkCodec to nanobench. 2015-04-01 12:09:17 -07:00
bench.gypi Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
canvas_state_lib.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
codec.gyp Revert of Enable both static and dynamically linked libpng (patchset #4 id:60001 of https://codereview.chromium.org/1032253003/) 2015-04-01 11:20:12 -07:00
common_conditions.gypi Use a wrapper for SkDebugf in SkCodec. 2015-03-26 07:15:55 -07:00
common_variables.gypi Revert of Enable both static and dynamically linked libpng (patchset #4 id:60001 of https://codereview.chromium.org/1032253003/) 2015-04-01 11:20:12 -07:00
common.gypi flip stroke to chrome compatible define 2015-02-24 06:02:06 -08:00
core.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
core.gypi cumulative pathops patch 2015-03-26 07:52:43 -07:00
debugger.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
dm.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
dm.gypi Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
effects.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
effects.gypi Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
etc1.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
everything.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
example.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
experimental.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
FileReaderApp.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
flags.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
freetype.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
freetype.gypi Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
giflib.gyp Creating a new wrapper for gif decoder 2015-04-01 06:58:48 -07:00
gmslides.gypi Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
gpu.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
gpu.gypi BitmapTextBatch and BitmapTextBlob 2015-03-31 13:32:05 -07:00
gputest.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
images.gyp WIP: Added support for giflib, updated jpeg and png 2015-03-30 07:52:52 -07:00
iOSShell.gyp Add timing SkCodec to nanobench. 2015-04-01 12:09:17 -07:00
jsoncpp.gyp Roll jsoncpp, drop dependency on Chromium overrides. 2014-08-19 07:21:00 -07:00
ktx.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
libjpeg.gyp Build Skia for a bare-bones embedded Linux system. 2014-02-24 20:22:34 +00:00
libpng.gyp Revert of Enable both static and dynamically linked libpng (patchset #4 id:60001 of https://codereview.chromium.org/1032253003/) 2015-04-01 11:20:12 -07:00
libwebp.gyp Build in C++11 mode on Macs. 2015-02-03 13:24:36 -08:00
lua.gyp Build Skia for a bare-bones embedded Linux system. 2014-02-24 20:22:34 +00:00
most.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
nacl.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
nanomsg.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
opts.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
opts.gypi Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
pathops_skpclip.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
pathops_unittest.gyp cumulative pathops patch 2015-03-26 07:52:43 -07:00
pathops_unittest.gypi cumulative pathops patch 2015-03-26 07:52:43 -07:00
pdf.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
pdf.gypi SkPDF: Factor SkPDFCatalog into SkPDFObjNumMap and SkPDFSubstituteMap 2015-03-31 12:30:20 -07:00
pdfviewer_lib.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
pdfviewer.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
ports.gyp Add option to embed font data into executable. 2015-03-30 12:53:48 -07:00
SampleApp.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
sfnt.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
SimpleCocoaApp.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
SimpleiOSApp.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
skflate.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
skia_for_android_framework_defines.gypi remove unneeded flags 2015-03-16 13:55:48 -07:00
skia_for_chromium_defines.gypi Option for SkCodec to treat dst as all zeroes. 2015-03-17 05:02:17 -07:00
skia_launcher.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
skia_lib.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
svg.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
tests.gypi Sketch SkFunction 2015-03-31 14:24:27 -07:00
tools.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
utils.gyp Move HWUI boilerplate into utils/android 2015-03-27 12:22:01 -07:00
utils.gypi Add a paint filter utility canvas (SkPaintFilterCanvas) 2015-03-26 07:24:48 -07:00
v8.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
views_animated.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
views.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
xml.gyp Add copyright headers to remaining gyp files. 2015-03-25 10:22:41 -07:00
xps.gyp Remove sfnt dependency from xps gyp tartget. 2015-03-25 14:48:05 -07:00
zlib.gyp Revert of For consistency, use our homebrew zlib everywhere possible. (patchset #6 id:100001 of https://codereview.chromium.org/971673005/) 2015-03-07 07:47:51 -08:00