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

Side by Side Diff: dm/DMUtil.h

Issue 270543004: DM: Add --skps. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: reed Created 6 years, 7 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
« no previous file with comments | « dm/DMSKPTask.cpp ('k') | dm/DMUtil.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef DMUtil_DEFINED 1 #ifndef DMUtil_DEFINED
2 #define DMUtil_DEFINED 2 #define DMUtil_DEFINED
3 3
4 #include "SkBenchmark.h" 4 #include "SkBenchmark.h"
5 #include "SkBitmap.h" 5 #include "SkBitmap.h"
6 #include "SkString.h" 6 #include "SkString.h"
7 #include "gm_expectations.h" 7 #include "gm_expectations.h"
8 8
9 class SkBBHFactory; 9 class SkBBHFactory;
10 10
11 // Small free functions used in more than one place in DM. 11 // Small free functions used in more than one place in DM.
12 12
13 namespace DM { 13 namespace DM {
14 14
15 // UnderJoin("a", "b") -> "a_b" 15 // UnderJoin("a", "b") -> "a_b"
16 SkString UnderJoin(const char* a, const char* b); 16 SkString UnderJoin(const char* a, const char* b);
17 17
18 // Draw gm to picture. Passes recordFlags to SkPictureRecorder::beginRecording( ). 18 // Draw gm to picture. Passes recordFlags to SkPictureRecorder::beginRecording( ).
19 SkPicture* RecordPicture(skiagm::GM* gm, 19 SkPicture* RecordPicture(skiagm::GM* gm,
20 uint32_t recordFlags = 0, 20 uint32_t recordFlags = 0,
21 SkBBHFactory* factory = NULL); 21 SkBBHFactory* factory = NULL);
22 22
23 // Prepare bitmap to have gm or bench draw into it with this config. 23 // Prepare bitmap to have gm, bench or picture draw into it with this config.
24 // TODO(mtklein): make SkBenchmark::getSize()/GM::getISize() const. 24 // TODO(mtklein): make SkBenchmark::getSize()/GM::getISize() const.
25 void SetupBitmap(const SkColorType, skiagm::GM* gm, SkBitmap* bitmap); 25 void SetupBitmap(SkColorType, skiagm::GM* gm, SkBitmap* bitmap);
26 void SetupBitmap(const SkColorType, SkBenchmark* bench, SkBitmap* bitmap); 26 void SetupBitmap(SkColorType, SkBenchmark* bench, SkBitmap* bitmap);
27 void SetupBitmap(SkColorType, const SkPicture& picture, SkBitmap* bitmap);
27 28
28 // Draw picture to bitmap. 29 // Draw picture to bitmap.
29 void DrawPicture(SkPicture* picture, SkBitmap* bitmap); 30 void DrawPicture(SkPicture* picture, SkBitmap* bitmap);
30 31
31 // Are these identical bitmaps? 32 // Are these identical bitmaps?
32 bool BitmapsEqual(const SkBitmap& a, const SkBitmap& b); 33 bool BitmapsEqual(const SkBitmap& a, const SkBitmap& b);
33 34
34 } // namespace DM 35 } // namespace DM
35 36
36 #endif // DMUtil_DEFINED 37 #endif // DMUtil_DEFINED
OLDNEW
« no previous file with comments | « dm/DMSKPTask.cpp ('k') | dm/DMUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698