diff options
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-06-19 15:50:09 +0000 |
---|---|---|
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-06-19 15:50:09 +0000 |
commit | 6324ac5d811e2554f78d61f0dfd918c678c395ba (patch) | |
tree | dbc7564cc44cdf6fb92c4f803c107af05e83ec72 /gm/gm_expectations.h | |
parent | 5ec130524e61fe1e2606baab53bc1c2e77287d06 (diff) | |
download | platform_external_skqp-6324ac5d811e2554f78d61f0dfd918c678c395ba.tar.gz platform_external_skqp-6324ac5d811e2554f78d61f0dfd918c678c395ba.tar.bz2 platform_external_skqp-6324ac5d811e2554f78d61f0dfd918c678c395ba.zip |
GM: add --writeChecksumBasedFilenames option
as needed for Step 2 of https://goto.google.com/ChecksumTransitionDetail :
make GenerateGMs upload actual images to Google Storage instead of skia-autogen
R=scroggo@google.com
Review URL: https://codereview.chromium.org/17365002
git-svn-id: http://skia.googlecode.com/svn/trunk@9682 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/gm_expectations.h')
-rw-r--r-- | gm/gm_expectations.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gm/gm_expectations.h b/gm/gm_expectations.h index 55122d4ab8..ec6899794a 100644 --- a/gm/gm_expectations.h +++ b/gm/gm_expectations.h @@ -76,12 +76,33 @@ namespace skiagm { */ Json::Value asJsonTypeValuePair() const; + /** + * Returns the hashtype, such as "bitmap-64bitMD5", as an SkString. + */ + SkString getHashType() const; + + /** + * Returns the hash digest value, such as "12345", as an SkString. + */ + SkString getDigestValue() const; + private: bool fIsValid; // always check this first--if it's false, other fields are meaningless uint64_t fHashDigest; }; /** + * Encapsulates an SkBitmap and its GmResultDigest, guaranteed to keep them in sync. + */ + class BitmapAndDigest { + public: + BitmapAndDigest(const SkBitmap &bitmap) : fBitmap(bitmap), fDigest(bitmap) {} + + const SkBitmap fBitmap; + const GmResultDigest fDigest; + }; + + /** * Test expectations (allowed image results, etc.) */ class Expectations { |