Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: dm/DMUtil.h

Issue 27476007: DM: duh, don't calculate digests unless we're going to look at them. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: sync and merge Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #ifndef DMUtil_DEFINED 1 #ifndef DMUtil_DEFINED
2 #define DMUtil_DEFINED 2 #define DMUtil_DEFINED
3 3
4 #include "SkBitmap.h"
4 #include "SkString.h" 5 #include "SkString.h"
5 #include "gm_expectations.h" 6 #include "gm_expectations.h"
6 7
7 // Small free functions used in more than one place in DM. 8 // Small free functions used in more than one place in DM.
8 9
9 namespace DM { 10 namespace DM {
10 11
11 // underJoin("a", "b") -> "a_b" 12 // underJoin("a", "b") -> "a_b"
12 SkString underJoin(const char* a, const char* b); 13 SkString underJoin(const char* a, const char* b);
13 14
14 // png("a") -> "a.png" 15 // png("a") -> "a.png"
15 SkString png(SkString s); 16 SkString png(SkString s);
16 17
17 // Roughly, expectations.match(digest), but only does it if we're not ignoring t he result. 18 // Roughly, expectations.match(GmResultDigest(bitmap)), but calculates the diges t lazily.
18 bool meetsExpectations(const skiagm::Expectations& expectations, 19 bool meetsExpectations(const skiagm::Expectations& expectations, const SkBitmap bitmap);
19 const skiagm::GmResultDigest& digest);
20 20
21 } // namespace DM 21 } // namespace DM
22 22
23 #endif // DMUtil_DEFINED 23 #endif // DMUtil_DEFINED
OLDNEW
« dm/DMReplayTask.h ('K') | « dm/DMReplayTask.cpp ('k') | dm/DMUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698