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

Side by Side Diff: dm/DMUtil.h

Issue 238273012: Staged removal of SkPicture-derived classes (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: have SkPicture only friend SkPictureRecorder once Created 6 years, 8 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
« no previous file with comments | « dm/DMTileGridTask.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 SkPictureFactory; 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 SkPictureFactory* 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 or bench 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(const SkColorType, skiagm::GM* gm, SkBitmap* bitmap);
26 void SetupBitmap(const SkColorType, SkBenchmark* bench, SkBitmap* bitmap); 26 void SetupBitmap(const SkColorType, SkBenchmark* bench, SkBitmap* bitmap);
27 27
28 // Draw picture to bitmap. 28 // Draw picture to bitmap.
29 void DrawPicture(SkPicture* picture, SkBitmap* bitmap); 29 void DrawPicture(SkPicture* picture, SkBitmap* bitmap);
30 30
31 // Are these identical bitmaps? 31 // Are these identical bitmaps?
32 bool BitmapsEqual(const SkBitmap& a, const SkBitmap& b); 32 bool BitmapsEqual(const SkBitmap& a, const SkBitmap& b);
33 33
34 } // namespace DM 34 } // namespace DM
35 35
36 #endif // DMUtil_DEFINED 36 #endif // DMUtil_DEFINED
OLDNEW
« no previous file with comments | « dm/DMTileGridTask.cpp ('k') | dm/DMUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698