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

Side by Side Diff: dm/DMWriteTask.h

Issue 88773002: DM: write failed comparison mode .pngs one more level deep in the tree. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: depth() instead Created 7 years 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/DMTask.cpp ('k') | dm/DMWriteTask.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 DMWriteTask_DEFINED 1 #ifndef DMWriteTask_DEFINED
2 #define DMWriteTask_DEFINED 2 #define DMWriteTask_DEFINED
3 3
4 #include "DMTask.h" 4 #include "DMTask.h"
5 #include "SkBitmap.h" 5 #include "SkBitmap.h"
6 #include "SkString.h" 6 #include "SkString.h"
7 #include "SkTArray.h"
7 8
8 // Writes a bitmap to a file. 9 // Writes a bitmap to a file.
9 10
10 namespace DM { 11 namespace DM {
11 12
12 class WriteTask : public Task { 13 class WriteTask : public Task {
13 14
14 public: 15 public:
15 WriteTask(const Task& parent, SkBitmap bitmap); 16 WriteTask(const Task& parent, // WriteTask must be a child Task. Pass its parent here.
17 SkBitmap bitmap); // Bitmap to write.
16 18
17 virtual void draw() SK_OVERRIDE; 19 virtual void draw() SK_OVERRIDE;
18 virtual bool usesGpu() const SK_OVERRIDE { return false; } 20 virtual bool usesGpu() const SK_OVERRIDE { return false; }
19 virtual bool shouldSkip() const SK_OVERRIDE; 21 virtual bool shouldSkip() const SK_OVERRIDE;
20 virtual SkString name() const SK_OVERRIDE; 22 virtual SkString name() const SK_OVERRIDE;
21 23
22 private: 24 private:
23 SkString fConfig; 25 SkTArray<SkString> fSuffixes;
24 SkString fGmName; 26 SkString fGmName;
25 const SkBitmap fBitmap; 27 const SkBitmap fBitmap;
28
29 void makeDirOrFail(SkString dir);
26 }; 30 };
27 31
28 } // namespace DM 32 } // namespace DM
29 33
30 #endif // DMWriteTask_DEFINED 34 #endif // DMWriteTask_DEFINED
OLDNEW
« no previous file with comments | « dm/DMTask.cpp ('k') | dm/DMWriteTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698