OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "printing/metafile_skia_wrapper.h" | 5 #include "printing/metafile_skia_wrapper.h" |
6 #include "skia/ext/platform_device.h" | 6 #include "skia/ext/platform_device.h" |
7 #include "skia/ext/refptr.h" | 7 #include "skia/ext/refptr.h" |
8 #include "third_party/skia/include/core/SkCanvas.h" | |
9 #include "third_party/skia/include/core/SkDevice.h" | |
10 #include "third_party/skia/include/core/SkMetaData.h" | 8 #include "third_party/skia/include/core/SkMetaData.h" |
11 | 9 |
| 10 class SkCanvas; |
| 11 |
12 namespace printing { | 12 namespace printing { |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 const char* kMetafileKey = "CrMetafile"; | 16 const char* kMetafileKey = "CrMetafile"; |
17 | 17 |
18 } // namespace | 18 } // namespace |
19 | 19 |
20 // static | 20 // static |
21 void MetafileSkiaWrapper::SetMetafileOnCanvas(const SkCanvas& canvas, | 21 void MetafileSkiaWrapper::SetMetafileOnCanvas(const SkCanvas& canvas, |
(...skipping 15 matching lines...) Expand all Loading... |
37 return NULL; | 37 return NULL; |
38 | 38 |
39 return static_cast<MetafileSkiaWrapper*>(value)->metafile_; | 39 return static_cast<MetafileSkiaWrapper*>(value)->metafile_; |
40 } | 40 } |
41 | 41 |
42 MetafileSkiaWrapper::MetafileSkiaWrapper(PdfMetafileSkia* metafile) | 42 MetafileSkiaWrapper::MetafileSkiaWrapper(PdfMetafileSkia* metafile) |
43 : metafile_(metafile) { | 43 : metafile_(metafile) { |
44 } | 44 } |
45 | 45 |
46 } // namespace printing | 46 } // namespace printing |
OLD | NEW |