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

Unified Diff: src/pdf/SkPDFDeviceFlattener.h

Issue 937333002: PDF: Remove SkPDFDeviceFlattener (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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/pdf.gypi ('k') | src/pdf/SkPDFDeviceFlattener.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFDeviceFlattener.h
diff --git a/src/pdf/SkPDFDeviceFlattener.h b/src/pdf/SkPDFDeviceFlattener.h
deleted file mode 100644
index acf1447a3cead7053e55eb93838f3f0b21fe2003..0000000000000000000000000000000000000000
--- a/src/pdf/SkPDFDeviceFlattener.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2013 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkPDFDeviceFlattener_DEFINED
-#define SkPDFDeviceFlattener_DEFINED
-
-#include "SkPDFDevice.h"
-
-
-/** \class SkPDFDeviceFlattener
-
- The PDF Device Flattener is used to flatten features without native support in PDF.
- For now, the only one implemented is Perspective.
-
- TODO(edisonn): Rename the class once we know all the things it will do.
-*/
-class SkPDFDeviceFlattener : public SkPDFDevice {
-private:
- typedef SkPDFDevice INHERITED;
-
- SK_API SkPDFDeviceFlattener(const SkSize& pageSize, const SkRect* trimBox = NULL);
-
-public:
- SK_API virtual ~SkPDFDeviceFlattener();
-
- virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode,
- size_t count, const SkPoint[],
- const SkPaint& paint) SK_OVERRIDE;
- void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint) SK_OVERRIDE;
- virtual void drawPath(const SkDraw&, const SkPath& origpath,
- const SkPaint& paint, const SkMatrix* prePathMatrix,
- bool pathIsMutable) SK_OVERRIDE;
- virtual void drawText(const SkDraw&, const void* text, size_t len,
- SkScalar x, SkScalar y, const SkPaint&) SK_OVERRIDE;
- virtual void drawPosText(const SkDraw&, const void* text, size_t len,
- const SkScalar pos[], int scalarsPerPos,
- const SkPoint& offset, const SkPaint&) SK_OVERRIDE;
-private:
-
- bool mustFlatten(const SkDraw& d) const;
- bool mustPathText(const SkDraw& d, const SkPaint& paint);
-
- friend class SkDocument_PDF;
-};
-
-#endif // SkPDFDeviceFlattener_DEFINED
« no previous file with comments | « gyp/pdf.gypi ('k') | src/pdf/SkPDFDeviceFlattener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698