move PDFDevice over to cipstackdevice
BUG=skia:6214
Change-Id: I3fc5d49e9197ecff9d83ac50f24a67cccd99a092
Reviewed-on: https://skia-review.googlesource.com/8803
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/src/pdf/SkPDFDevice.h b/src/pdf/SkPDFDevice.h
index d8e26c5..14e4db6 100644
--- a/src/pdf/SkPDFDevice.h
+++ b/src/pdf/SkPDFDevice.h
@@ -11,8 +11,8 @@
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkClipStack.h"
+#include "SkClipStackDevice.h"
#include "SkData.h"
-#include "SkDevice.h"
#include "SkPaint.h"
#include "SkRect.h"
#include "SkRefCnt.h"
@@ -37,7 +37,7 @@
The drawing context for the PDF backend.
*/
-class SkPDFDevice final : public SkBaseDevice {
+class SkPDFDevice final : public SkClipStackDevice {
public:
/** Create a PDF drawing context. SkPDFDevice applies a
* scale-and-translate transform to move the origin from the
@@ -292,7 +292,7 @@
void handlePointAnnotation(const SkPoint&, const SkMatrix&, const char key[], SkData* value);
void handlePathAnnotation(const SkPath&, const SkDraw& d, const char key[], SkData* value);
- typedef SkBaseDevice INHERITED;
+ typedef SkClipStackDevice INHERITED;
// TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
// an SkPDFDevice