DM: more invariants
authormtklein <mtklein@chromium.org>
Fri, 8 Jan 2016 18:19:35 +0000 (10:19 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 8 Jan 2016 18:19:35 +0000 (10:19 -0800)
commit4a34ecbe352114bd8403b134eb72f6e63bec0b11
tree1bf70e4fb1aaf0f446dba104220c678b26a00011
parentde8dc7e9201a14759076ea4090bdf8a54791817b
DM: more invariants

  - add ViaPicture
  - run ViaPicture on most bots
  - run ViaSecondPicture (tests SkPictureRecorder reuse) and ViaTwice (tests caching) on some bots
  - extend ViaSerialization reference checking to ViaPicture, ViaSecondPicture,
    ViaSingletonPictures, and ViaTwice
  - suppress current reference check failures with --blacklist

I'm open to following up on changing how those suppressions work.

Passing --nocheck turns off these invariant checks, letting us debug failures with normal image diff tools.

CQ_EXTRA_TRYBOTS=client.skia:Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot

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

Review URL: https://codereview.chromium.org/1569823006
dm/DM.cpp
dm/DMSrcSink.cpp
dm/DMSrcSink.h
tools/dm_flags.json
tools/dm_flags.py