Index: printing/metafile_skia_wrapper.cc |
diff --git a/printing/metafile_skia_wrapper.cc b/printing/metafile_skia_wrapper.cc |
index 9df35efa180b30f38e35e26cae01ab961019c475..9f728b5702324889c98458ab5963221061940bf2 100644 |
--- a/printing/metafile_skia_wrapper.cc |
+++ b/printing/metafile_skia_wrapper.cc |
@@ -3,12 +3,10 @@ |
// found in the LICENSE file. |
#include "printing/metafile_skia_wrapper.h" |
-#include "skia/ext/platform_device.h" |
+#include "skia/ext/platform_canvas.h" |
#include "skia/ext/refptr.h" |
#include "third_party/skia/include/core/SkMetaData.h" |
-class SkCanvas; |
- |
namespace printing { |
namespace { |
@@ -24,14 +22,14 @@ void MetafileSkiaWrapper::SetMetafileOnCanvas(const SkCanvas& canvas, |
if (metafile) |
wrapper = skia::AdoptRef(new MetafileSkiaWrapper(metafile)); |
- SkMetaData& meta = skia::getMetaData(canvas); |
+ SkMetaData& meta = skia::GetMetaData(canvas); |
meta.setRefCnt(kMetafileKey, wrapper.get()); |
} |
// static |
PdfMetafileSkia* MetafileSkiaWrapper::GetMetafileFromCanvas( |
const SkCanvas& canvas) { |
- SkMetaData& meta = skia::getMetaData(canvas); |
+ SkMetaData& meta = skia::GetMetaData(canvas); |
SkRefCnt* value; |
if (!meta.findRefCnt(kMetafileKey, &value) || !value) |
return NULL; |