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

Unified Diff: dm/DMPDFRasterizeTask.h

Issue 788243008: Sketch DM refactor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: better failure messages, disable a few things temporarily to try to go green Created 5 years, 11 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/DMJsonWriter.cpp ('k') | dm/DMPDFRasterizeTask.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMPDFRasterizeTask.h
diff --git a/dm/DMPDFRasterizeTask.h b/dm/DMPDFRasterizeTask.h
deleted file mode 100644
index 8148499061cd4e1c5f13bcf2b061a8d4d74c1d75..0000000000000000000000000000000000000000
--- a/dm/DMPDFRasterizeTask.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2014 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef DMPDFRasterizeTask_DEFINED
-#define DMPDFRasterizeTask_DEFINED
-
-#include "DMTask.h"
-#include "SkBitmap.h"
-#include "SkData.h"
-#include "SkStream.h"
-#include "SkString.h"
-#include "SkTemplates.h"
-
-namespace DM {
-
-typedef bool (*RasterizePdfProc)(SkStream* pdf, SkBitmap* output);
-
-class PDFRasterizeTask : public CpuTask {
-public:
- // takes ownership of SkStreamAsset.
- PDFRasterizeTask(const Task& parent,
- SkStreamAsset* pdf,
- RasterizePdfProc);
-
- void draw() SK_OVERRIDE;
- bool shouldSkip() const SK_OVERRIDE { return NULL == fRasterize; }
- SkString name() const SK_OVERRIDE { return fName; }
-
-private:
- const SkString fName;
- SkAutoTDelete<SkStreamAsset> fPdf;
- RasterizePdfProc fRasterize;
-};
-
-} // namespace DM
-
-#endif // DMPDFRasterizeTask_DEFINED
« no previous file with comments | « dm/DMJsonWriter.cpp ('k') | dm/DMPDFRasterizeTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698