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

Unified Diff: dm/DMWriteTask.h

Issue 551873003: Update DM JSON format. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DMSerializeTask.cpp ('k') | dm/DMWriteTask.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMWriteTask.h
diff --git a/dm/DMWriteTask.h b/dm/DMWriteTask.h
index f83289ca2e5860da5067cb0c4b5ca9004157e27d..d2403adfc54d2901852819ef31b6d4f5c385b18c 100644
--- a/dm/DMWriteTask.h
+++ b/dm/DMWriteTask.h
@@ -16,13 +16,15 @@ namespace DM {
class WriteTask : public CpuTask {
public:
- WriteTask(const Task& parent, // WriteTask must be a child task.
- SkBitmap bitmap); // Bitmap to encode to PNG and write to disk.
+ WriteTask(const Task& parent, // WriteTask must be a child task.
+ const char* sourceType, // E.g. "GM", "SKP". For humans.
+ SkBitmap bitmap); // Bitmap to encode to PNG and write to disk.
// Takes ownership of SkStreamAsset
- WriteTask(const Task& parent, // WriteTask must be a child task.
- SkStreamAsset* data, // Pre-encoded data to write to disk.
- const char* ext); // File extension.
+ WriteTask(const Task& parent, // WriteTask must be a child task.
+ const char* sourceType, // E.g. "GM", "SKP". For humans.
+ SkStreamAsset* data, // Pre-encoded data to write to disk.
+ const char* ext); // File extension.
virtual void draw() SK_OVERRIDE;
virtual bool shouldSkip() const SK_OVERRIDE;
@@ -32,8 +34,8 @@ public:
private:
SkTArray<SkString> fSuffixes;
- const SkString fFullName;
const SkString fBaseName;
+ const SkString fSourceType;
const SkBitmap fBitmap;
SkAutoTDelete<SkStreamAsset> fData;
const char* fExtension;
« no previous file with comments | « dm/DMSerializeTask.cpp ('k') | dm/DMWriteTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698