aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/gmmain.cpp
Commit message (Collapse)AuthorAge
* gm: Add ability to compare against checksums (as opposed to image files)Gravatar epoger@google.com2013-02-13
| | | | | | Review URL: https://codereview.appspot.com/7306071 git-svn-id: http://skia.googlecode.com/svn/trunk@7724 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove legacy names no longer referenced in Chrome and WebKit.Gravatar bsalomon@google.com2013-02-07
| | | | | | Review URL: https://codereview.appspot.com/7311055 git-svn-id: http://skia.googlecode.com/svn/trunk@7640 2bbb7eff-a529-9590-31e7-b0007b416f81
* gm: report max-pixel-error if comparing against PNG files (not checksums)Gravatar epoger@google.com2013-02-01
| | | | | | Review URL: https://codereview.appspot.com/7241064 git-svn-id: http://skia.googlecode.com/svn/trunk@7526 2bbb7eff-a529-9590-31e7-b0007b416f81
* gm: force all pixels opaque earlier in the processGravatar epoger@google.com2013-01-31
| | | | | | Review URL: https://codereview.appspot.com/7251043 git-svn-id: http://skia.googlecode.com/svn/trunk@7493 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix bugs in r7291Gravatar epoger@google.com2013-01-19
| | | | | | | TBR=reed Review URL: https://codereview.appspot.com/7129057 git-svn-id: http://skia.googlecode.com/svn/trunk@7292 2bbb7eff-a529-9590-31e7-b0007b416f81
* re-land r7258 with fixes and testsGravatar epoger@google.com2013-01-19
| | | | | | | | BUG=http://code.google.com/p/skia/issues/detail?id=1079 TBR=reed Review URL: https://codereview.appspot.com/7132060 git-svn-id: http://skia.googlecode.com/svn/trunk@7291 2bbb7eff-a529-9590-31e7-b0007b416f81
* Roll out r7258Gravatar epoger@google.com2013-01-18
| | | | | | | | BUG=http://code.google.com/p/skia/issues/detail?id=1079 TBR=robertphillips Review URL: https://codereview.appspot.com/7138065 git-svn-id: http://skia.googlecode.com/svn/trunk@7289 2bbb7eff-a529-9590-31e7-b0007b416f81
* Reapply r7198 with Mac/Windows fixesGravatar epoger@google.com2013-01-17
| | | | | | | BUG=https://code.google.com/p/skia/issues/detail?id=1067 Review URL: https://codereview.appspot.com/7138056 git-svn-id: http://skia.googlecode.com/svn/trunk@7258 2bbb7eff-a529-9590-31e7-b0007b416f81
* Turn on the kUsePathBoundsForClip_RecordingFlag in bench, gm and tools that ↵Gravatar junov@chromium.org2013-01-16
| | | | | | | | | | | | | | use class PictureRenderer Chrome uses this flag for recording to skpicture in order to improve performance. Therefore, skai benchmarks should run with this flag enabled, and we need gm and render_pictures test coverage to validate it. In gm, the vanilla SkPicture test step will still run without the flag to ensure that case still gets test coverage, while the SkPicture test steps that use rtree and tileGrid will now run with the flag enabled. Review URL: https://codereview.appspot.com/7111043 git-svn-id: http://skia.googlecode.com/svn/trunk@7234 2bbb7eff-a529-9590-31e7-b0007b416f81
* Re-enable inst counting in debug builds.Gravatar bsalomon@google.com2013-01-15
| | | | | | | R=robertphillips@google.com Review URL: https://codereview.appspot.com/7098066 git-svn-id: http://skia.googlecode.com/svn/trunk@7206 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert r7198 until I can fix ↵Gravatar epoger@google.com2013-01-15
| | | | | | | | https://code.google.com/p/skia/issues/detail?id=1067 Review URL: https://codereview.appspot.com/7124043 git-svn-id: http://skia.googlecode.com/svn/trunk@7203 2bbb7eff-a529-9590-31e7-b0007b416f81
* gm: use new Expectations struct instead of comparison bitmapsGravatar epoger@google.com2013-01-15
| | | | | | Review URL: https://codereview.appspot.com/7088044 git-svn-id: http://skia.googlecode.com/svn/trunk@7198 2bbb7eff-a529-9590-31e7-b0007b416f81
* Changing imageFilter GM tests to use drawBitmap instead of drawSpriteGravatar junov@chromium.org2013-01-14
| | | | | | | The motivation is be able to test the filters with scaled SkPicture playback in isolation from the issues that surround usage of drawSprite Review URL: https://codereview.appspot.com/7060071 git-svn-id: http://skia.googlecode.com/svn/trunk@7152 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adding commandline option to gm to make it write image results for tests ↵Gravatar junov@chromium.org2013-01-11
| | | | | | | | that fails due to pixel mismatches. Review URL: https://codereview.appspot.com/7100043 git-svn-id: http://skia.googlecode.com/svn/trunk@7143 2bbb7eff-a529-9590-31e7-b0007b416f81
* gm: if no readPath is given, report all tests as "missing reference image" ↵Gravatar epoger@google.com2013-01-10
| | | | | | | | instead of "passed" Review URL: https://codereview.appspot.com/7070066 git-svn-id: http://skia.googlecode.com/svn/trunk@7119 2bbb7eff-a529-9590-31e7-b0007b416f81
* Enable warnings-as-errors on Windows.Gravatar bsalomon@google.com2013-01-08
| | | | | | Review URL: https://codereview.appspot.com/7066054 git-svn-id: http://skia.googlecode.com/svn/trunk@7094 2bbb7eff-a529-9590-31e7-b0007b416f81
* gm: remove --diffPath option and all other pixel diff functionality.Gravatar epoger@google.com2013-01-08
| | | | | | | | If you want pixel diffs, you need to run skdiff instead; from now on, gm will only tell you WHETHER the images differed (not HOW they differed). Review URL: https://codereview.appspot.com/7064047 git-svn-id: http://skia.googlecode.com/svn/trunk@7093 2bbb7eff-a529-9590-31e7-b0007b416f81
* add --exclude-config to opt out of 1 or more configs. This always is respected,Gravatar reed@google.com2013-01-04
| | | | | | | | | | | | regardless of the ordering of --config and --exclude-config. add --verbose [-v] to dump extra info, e.g. what configs are being run changed --config to enforce a unique set of configs to be run, such that --config 8888 --config 8888 results in just 1 run of 8888. Review URL: https://codereview.appspot.com/7027053 git-svn-id: http://skia.googlecode.com/svn/trunk@7013 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make gm's json results include checksums even if run without --readPathGravatar epoger@google.com2012-12-20
| | | | | | Review URL: https://codereview.appspot.com/6979043 git-svn-id: http://skia.googlecode.com/svn/trunk@6917 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-12-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@6911 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixing picture recording scale bug in gmGravatar junov@chromium.org2012-12-19
| | | | | | Review URL: https://codereview.appspot.com/6965047 git-svn-id: http://skia.googlecode.com/svn/trunk@6901 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adding tileGrid scaled playback capability to gm.Gravatar junov@chromium.org2012-12-19
| | | | | | | BUG=http://code.google.com/p/skia/issues/detail?id=1021 Review URL: https://codereview.appspot.com/6937077 git-svn-id: http://skia.googlecode.com/svn/trunk@6898 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adding gm test steps for rtree and tileGridGravatar junov@chromium.org2012-12-18
| | | | | | | | | | | The new passes are enabled by default, and can be disabled with --nortree and --notileGrid. With this change, the skia buildbots will begin continuously testing rtree and tileGrid. BUG=http://code.google.com/p/skia/issues/detail?id=1014 TEST=gm Review URL: https://codereview.appspot.com/6941072 git-svn-id: http://skia.googlecode.com/svn/trunk@6886 2bbb7eff-a529-9590-31e7-b0007b416f81
* Re-land r6843 with copied gyp file to (hopefully) fix Windows buildGravatar epoger@google.com2012-12-18
| | | | | | | BUG=https://code.google.com/p/skia/issues/detail?id=1023 Review URL: https://codereview.appspot.com/6943073 git-svn-id: http://skia.googlecode.com/svn/trunk@6880 2bbb7eff-a529-9590-31e7-b0007b416f81
* Roll out r6843 to hopefully fix Windows buildsGravatar epoger@google.com2012-12-17
| | | | | | | | BUG=https://code.google.com/p/skia/issues/detail?id=1023 TBR=borenet Review URL: https://codereview.appspot.com/6942061 git-svn-id: http://skia.googlecode.com/svn/trunk@6849 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add --writeJsonSummary option to gmGravatar epoger@google.com2012-12-17
| | | | | | | | This writes out a JSON file containing expected and actual checksum values for every test. Next step: allow the same checksum file to be compared against, instead of PNG files. Review URL: https://codereview.appspot.com/6940053 git-svn-id: http://skia.googlecode.com/svn/trunk@6843 2bbb7eff-a529-9590-31e7-b0007b416f81
* Modifying SkTileGrid to support arbitrary query rectangles.Gravatar junov@chromium.org2012-12-13
| | | | | | | | | | | Exposing SkTileGrid functionality in the public API through SkTileGridPicture. This patch also makes TileGrid and Rtree testable in gm, which revealed errors. TEST=gm with '--tileGrid' BUG=http://code.google.com/p/chromium/issues/detail?id=164636 Review URL: https://codereview.appspot.com/6933044 git-svn-id: http://skia.googlecode.com/svn/trunk@6783 2bbb7eff-a529-9590-31e7-b0007b416f81
* Defining new color constat for transparent colorGravatar junov@google.com2012-12-06
| | | | | | Review URL: https://codereview.appspot.com/6901044 git-svn-id: http://skia.googlecode.com/svn/trunk@6696 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove 4444 support (for now) form gm -- not used (afaik) and slows us downGravatar reed@google.com2012-11-29
| | | | | | Review URL: https://codereview.appspot.com/6782137 git-svn-id: http://skia.googlecode.com/svn/trunk@6622 2bbb7eff-a529-9590-31e7-b0007b416f81
* change SkDrawFilter::filter to return a bool, where false means don't-drawGravatar reed@google.com2012-11-26
| | | | | | Review URL: https://codereview.appspot.com/6851111 git-svn-id: http://skia.googlecode.com/svn/trunk@6551 2bbb7eff-a529-9590-31e7-b0007b416f81
* flag the GM if we're in deferred-canvas mode, to work-around bug trying toGravatar reed@google.com2012-11-16
| | | | | | | | get the context from its device. git-svn-id: http://skia.googlecode.com/svn/trunk@6452 2bbb7eff-a529-9590-31e7-b0007b416f81
* Maintain failedTests list within GMMain objectGravatar epoger@google.com2012-11-13
| | | | | | Review URL: https://codereview.appspot.com/6819121 git-svn-id: http://skia.googlecode.com/svn/trunk@6390 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-11-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@6376 2bbb7eff-a529-9590-31e7-b0007b416f81
* report max pixel error on failure, rather than the hex of the first ↵Gravatar reed@google.com2012-11-09
| | | | | | | | mismatched pixel Review URL: https://codereview.appspot.com/6826080 git-svn-id: http://skia.googlecode.com/svn/trunk@6365 2bbb7eff-a529-9590-31e7-b0007b416f81
* Check modulo values passed to GM.Gravatar bsalomon@google.com2012-11-01
| | | | | | | R=reed@google.com Review URL: https://codereview.appspot.com/6820073 git-svn-id: http://skia.googlecode.com/svn/trunk@6248 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improve NaCl supportGravatar borenet@google.com2012-11-01
| | | | | | | | | | | | | | | | - Add nacl_make script to build Skia targets for NaCl using gyp - Add nacl_interface for command-line apps - Add nacl_sample as front-end for SampleApp - Add freetype to DEPS - Various gyp tweaks for NaCl TODO: - Implement GL interface - Implement font host - Fix plumbing so that SampleApp works properly Review URL: https://codereview.appspot.com/6671044 git-svn-id: http://skia.googlecode.com/svn/trunk@6245 2bbb7eff-a529-9590-31e7-b0007b416f81
* Alphabetize gm options (in usage message and option parser).Gravatar epoger@google.com2012-10-29
| | | | | | | Also add long-form option names for all options. Review URL: https://codereview.appspot.com/6817050 git-svn-id: http://skia.googlecode.com/svn/trunk@6173 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add option to gm: write out images into a hierarchy, rather than a flat set ↵Gravatar epoger@google.com2012-10-29
| | | | | | | | | of files BUG=https://code.google.com/p/skia/issues/detail?id=743 Review URL: https://codereview.appspot.com/6810047 git-svn-id: http://skia.googlecode.com/svn/trunk@6167 2bbb7eff-a529-9590-31e7-b0007b416f81
* object-ify gmmain.cpp (no functional change) to ease planned changes laterGravatar epoger@google.com2012-10-26
| | | | | | Review URL: https://codereview.appspot.com/6801043 git-svn-id: http://skia.googlecode.com/svn/trunk@6147 2bbb7eff-a529-9590-31e7-b0007b416f81
* Refactor gm to minimize wasted passes through picture and pipe code paths.Gravatar djsollen@google.com2012-10-26
| | | | | | | | Testing this CL shows around a 40% time reduction when running gm on a mac debug build. Review URL: https://codereview.appspot.com/6791043 git-svn-id: http://skia.googlecode.com/svn/trunk@6140 2bbb7eff-a529-9590-31e7-b0007b416f81
* don't send % by itself to printfGravatar reed@google.com2012-10-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@6120 2bbb7eff-a529-9590-31e7-b0007b416f81
* clarify code/comments in gmmain.cpp (no functional change)Gravatar epoger@google.com2012-10-25
| | | | | | Review URL: https://codereview.appspot.com/6749067 git-svn-id: http://skia.googlecode.com/svn/trunk@6115 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Skia_Periodic_House_KeepingGravatar skia.committer@gmail.com2012-10-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@6013 2bbb7eff-a529-9590-31e7-b0007b416f81
* add --modulo A B option to gm, so we can only execute 1/B of the tests in a Gravatar reed@google.com2012-10-18
| | | | | | | given instance. Review URL: https://codereview.appspot.com/6739044 git-svn-id: http://skia.googlecode.com/svn/trunk@6007 2bbb7eff-a529-9590-31e7-b0007b416f81
* add ability to skip 565 test in gm (until I can fix an assert in debug build)Gravatar reed@google.com2012-10-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5879 2bbb7eff-a529-9590-31e7-b0007b416f81
* Do not do PNG encoding/decoding when testing picture serialization.Gravatar scroggo@google.com2012-10-04
| | | | | | | | Fixes the build. Review URL: https://codereview.appspot.com/6624046 git-svn-id: http://skia.googlecode.com/svn/trunk@5819 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add the ability to provide function pointers to SkPicture serializationGravatar scroggo@google.com2012-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and deserialization for encoding and decoding bitmaps. Remove kForceFlattenBitmapPixels_Flag, which is no longer used. When an SkOrderedReadBuffer needs to read a bitmap, if it does not have an image decoder, use a dummy bitmap. In GM, add a tolerance option for color differences, used when testing picture serialization, so it can assume two images are the same even though PNG encoding/decoding may have resulted in small differences. Create dummy implementations for SkImageDecoder and SkImageEncoder functions in SkImageDecoder_empty so that a project that does not want to include the images project it can still build. Allow ports to build without images project. In Mac's image encoder, copy 4444 to 8888 before encoding. Add SkWriter32::reservePad, to provide a pointer to write non 4 byte aligned data, padded with zeroes. In bench_ and render_ pictures, pass decode function to SkPicture creation from a stream. BUG=https://code.google.com/p/skia/issues/detail?id=842 Review URL: https://codereview.appspot.com/6551071 git-svn-id: http://skia.googlecode.com/svn/trunk@5818 2bbb7eff-a529-9590-31e7-b0007b416f81
* build iOS with 'make all'Gravatar caryclark@google.com2012-10-02
| | | | | | | | | | | This builds all skia tests by treating iOS tools as executable applications. A few warnings were fixed as well. Removed old trace draw code and remnants. Review URL: https://codereview.appspot.com/6597063 git-svn-id: http://skia.googlecode.com/svn/trunk@5776 2bbb7eff-a529-9590-31e7-b0007b416f81
* delete obsolete/unused SkGpuCanvasGravatar reed@google.com2012-10-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@5752 2bbb7eff-a529-9590-31e7-b0007b416f81
* 1. remove references to (deprecated) SkGpuCanvasGravatar reed@google.com2012-10-01
| | | | | | | 2. remove references to setDevice (soon to be deprecated) Review URL: https://codereview.appspot.com/6597055 git-svn-id: http://skia.googlecode.com/svn/trunk@5751 2bbb7eff-a529-9590-31e7-b0007b416f81