OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PRINTING_METAFILE_SKIA_WRAPPER_H_ | 5 #ifndef PRINTING_METAFILE_SKIA_WRAPPER_H_ |
6 #define PRINTING_METAFILE_SKIA_WRAPPER_H_ | 6 #define PRINTING_METAFILE_SKIA_WRAPPER_H_ |
7 | 7 |
8 #include "printing/printing_export.h" | 8 #include "printing/printing_export.h" |
9 #include "third_party/skia/include/core/SkRefCnt.h" | 9 #include "third_party/skia/include/core/SkRefCnt.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... | |
21 class PRINTING_EXPORT MetafileSkiaWrapper : public SkRefCnt { | 21 class PRINTING_EXPORT MetafileSkiaWrapper : public SkRefCnt { |
22 public: | 22 public: |
23 static void SetMetafileOnCanvas(SkCanvas* canvas, Metafile* metafile); | 23 static void SetMetafileOnCanvas(SkCanvas* canvas, Metafile* metafile); |
24 | 24 |
25 static Metafile* GetMetafileFromCanvas(SkCanvas* canvas); | 25 static Metafile* GetMetafileFromCanvas(SkCanvas* canvas); |
26 | 26 |
27 static void SetDraftMode(SkCanvas* canvas, bool draft_mode); | 27 static void SetDraftMode(SkCanvas* canvas, bool draft_mode); |
28 | 28 |
29 static bool GetDraftMode(SkCanvas* canvas); | 29 static bool GetDraftMode(SkCanvas* canvas); |
30 | 30 |
31 #if defined(OS_MACOSX) || defined(OS_WIN) | |
32 static void SetIsPreviewMetafile(SkCanvas* canvas, bool is_preview); | |
vandebo (ex-Chrome)
2011/09/26 17:33:05
These (and DraftMode) should probably live in Plat
kmadhusu
2011/09/26 20:42:22
Done.
| |
33 | |
34 static bool IsPreviewMetafile(SkCanvas* canvas); | |
35 #endif | |
36 | |
31 private: | 37 private: |
32 explicit MetafileSkiaWrapper(Metafile* metafile); | 38 explicit MetafileSkiaWrapper(Metafile* metafile); |
33 | 39 |
34 Metafile* metafile_; | 40 Metafile* metafile_; |
35 }; | 41 }; |
36 | 42 |
37 } // namespace printing | 43 } // namespace printing |
38 | 44 |
39 #endif // PRINTING_METAFILE_SKIA_WRAPPER_H_ | 45 #endif // PRINTING_METAFILE_SKIA_WRAPPER_H_ |
OLD | NEW |