Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: printing/metafile_skia_wrapper.cc

Issue 1462163002: Move uncoupled code out of skia/ext/platform_device.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-draft-metadata
Patch Set: Trim superfluous SK_API Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/pepper/ppb_image_data_impl.cc ('k') | printing/printed_document.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « content/renderer/pepper/ppb_image_data_impl.cc ('k') | printing/printed_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698