| Index: skia/ext/platform_device.h
|
| diff --git a/skia/ext/platform_device.h b/skia/ext/platform_device.h
|
| index 179a8e8bfa33facd13baaf209cb414d207359fc3..636793448e07dd1592afd94c8f2fcd9d16538ebc 100644
|
| --- a/skia/ext/platform_device.h
|
| +++ b/skia/ext/platform_device.h
|
| @@ -18,6 +18,7 @@
|
| #include "third_party/skia/include/core/SkColor.h"
|
|
|
| class SkMatrix;
|
| +class SkMetaData;
|
| class SkPath;
|
| class SkRegion;
|
|
|
| @@ -78,6 +79,17 @@ SK_API void InitializeDC(HDC context);
|
| SK_API CGContextRef GetBitmapContext(SkDevice* device);
|
| #endif
|
|
|
| +// Following routines are used in print preview workflow to mark the draft mode
|
| +// metafile and preview metafile.
|
| +SkMetaData& getMetaData(const SkCanvas* canvas);
|
| +void SetIsDraftMode(const SkCanvas* canvas, bool draft_mode);
|
| +bool IsDraftMode(const SkCanvas* canvas);
|
| +
|
| +#if defined(OS_MACOSX) || defined(OS_WIN)
|
| +void SetIsPreviewMetafile(const SkCanvas* canvas, bool is_preview);
|
| +bool IsPreviewMetafile(const SkCanvas* canvas);
|
| +#endif
|
| +
|
| // A SkDevice is basically a wrapper around SkBitmap that provides a surface for
|
| // SkCanvas to draw into. PlatformDevice provides a surface Windows can also
|
| // write to. It also provides functionality to play well with GDI drawing
|
|
|