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

Unified Diff: skia/ext/platform_device.cc

Issue 1464783003: Fix build after https://codereview.chromium.org/1457033002 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_device.cc
diff --git a/skia/ext/platform_device.cc b/skia/ext/platform_device.cc
index 5b64ae364fb5e1a4ecb8921f5b9ae5fceae5128f..e13e1dc980552bd5dadbcdc3e0a73e0e2d9c33e9 100644
--- a/skia/ext/platform_device.cc
+++ b/skia/ext/platform_device.cc
@@ -15,7 +15,6 @@ const char kDevicePlatformBehaviour[] = "CrDevicePlatformBehaviour";
#if defined(OS_MACOSX)
const char kIsPreviewMetafileKey[] = "CrIsPreviewMetafile";
-#endif
void SetBoolMetaData(const SkCanvas& canvas, const char* key, bool value) {
SkMetaData& meta = skia::getMetaData(canvas);
@@ -29,10 +28,12 @@ bool GetBoolMetaData(const SkCanvas& canvas, const char* key) {
value = false;
return value;
}
+#endif
} // namespace
-void SetPlatformDevice(SkBaseDevice* device, PlatformDevice* platform_behaviour) {
+void SetPlatformDevice(SkBaseDevice* device,
+ PlatformDevice* platform_behaviour) {
SkMetaData& meta_data = device->getMetaData();
meta_data.setPtr(kDevicePlatformBehaviour, platform_behaviour);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698