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

Unified Diff: tools/PdfRenderer.h

Issue 463603002: clean up render_pdfs: (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: AnotherPatchSet Created 6 years, 4 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 | « gyp/tools.gyp ('k') | tools/PdfRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/PdfRenderer.h
diff --git a/tools/PdfRenderer.h b/tools/PdfRenderer.h
deleted file mode 100644
index d70c458c74877918f777b7412b958386ff3f8cbd..0000000000000000000000000000000000000000
--- a/tools/PdfRenderer.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright 2012 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef PdfRenderer_DEFINED
-#define PdfRenderer_DEFINED
-
-//
-// PdfRender takes a SkPicture and writes it to a PDF file.
-// An SkPicture can be built manually, or read from an SKP file.
-//
-
-#include "SkDocument.h"
-#include "SkMath.h"
-#include "SkPicture.h"
-#include "SkTypes.h"
-#include "SkTDArray.h"
-#include "SkRefCnt.h"
-#include "SkString.h"
-
-class SkBitmap;
-class SkCanvas;
-class SkWStream;
-
-namespace sk_tools {
-
-class PdfRenderer : public SkRefCnt {
-public:
- virtual void init(SkPicture* pict, SkWStream* stream);
- virtual void setup() {}
- virtual bool render() = 0;
- virtual void end();
-
- PdfRenderer(SkPicture::EncodeBitmap encoder)
- : fPicture(NULL)
- , fEncoder(encoder)
- , fPdfDoc(NULL)
- {}
-
-protected:
- SkCanvas* setupCanvas(SkWStream* stream, int width, int height);
-
- SkAutoTUnref<SkCanvas> fCanvas;
- SkPicture* fPicture;
- SkPicture::EncodeBitmap fEncoder;
- SkAutoTUnref<SkDocument> fPdfDoc;
-
-private:
- typedef SkRefCnt INHERITED;
-};
-
-class SimplePdfRenderer : public PdfRenderer {
-public:
- SimplePdfRenderer(SkPicture::EncodeBitmap encoder)
- : PdfRenderer(encoder) {}
- virtual bool render() SK_OVERRIDE;
-
-private:
- typedef PdfRenderer INHERITED;
-};
-
-}
-
-#endif // PdfRenderer_DEFINED
« no previous file with comments | « gyp/tools.gyp ('k') | tools/PdfRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698