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

Side by Side Diff: dm/DMUtil.cpp

Issue 243173002: Staging for cleanup of SkPicture-related headers (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Add crucial newline at end of file 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') | gm/distantclip.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 #include "DMUtil.h" 1 #include "DMUtil.h"
2 2
3 #include "SkPicture.h" 3 #include "SkPicture.h"
4 #include "SkPictureRecorder.h"
4 5
5 namespace DM { 6 namespace DM {
6 7
7 SkString UnderJoin(const char* a, const char* b) { 8 SkString UnderJoin(const char* a, const char* b) {
8 SkString s; 9 SkString s;
9 s.appendf("%s_%s", a, b); 10 s.appendf("%s_%s", a, b);
10 return s; 11 return s;
11 } 12 }
12 13
13 SkPicture* RecordPicture(skiagm::GM* gm, uint32_t recordFlags, SkBBHFactory* fac tory) { 14 SkPicture* RecordPicture(skiagm::GM* gm, uint32_t recordFlags, SkBBHFactory* fac tory) {
(...skipping 26 matching lines...) Expand all
40 canvas.drawPicture(*picture); 41 canvas.drawPicture(*picture);
41 canvas.flush(); 42 canvas.flush();
42 } 43 }
43 44
44 bool BitmapsEqual(const SkBitmap& a, const SkBitmap& b) { 45 bool BitmapsEqual(const SkBitmap& a, const SkBitmap& b) {
45 const SkAutoLockPixels lockA(a), lockB(b); 46 const SkAutoLockPixels lockA(a), lockB(b);
46 return a.getSize() == b.getSize() && 0 == memcmp(a.getPixels(), b.getPixels( ), b.getSize()); 47 return a.getSize() == b.getSize() && 0 == memcmp(a.getPixels(), b.getPixels( ), b.getSize());
47 } 48 }
48 49
49 } // namespace DM 50 } // namespace DM
OLDNEW
« no previous file with comments | « dm/DMTileGridTask.cpp ('k') | gm/distantclip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698