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

Unified Diff: skia/ext/platform_canvas.h

Issue 1525043002: Enabling Skia / Moterm to build with PNaCl Newlib toolchain (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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
Index: skia/ext/platform_canvas.h
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h
index 75458b5dd5401c63e4341395cd9e0bdf47ae4591..c305116bc38e9eac1c3ce5cc8d5dba23dae6d5a9 100644
--- a/skia/ext/platform_canvas.h
+++ b/skia/ext/platform_canvas.h
@@ -35,7 +35,7 @@ enum OnFailureType {
RETURN_NULL_ON_FAILURE
};
-#if defined(WIN32)
+#if defined(SK_BUILD_FOR_WIN32)
Mark Seaborn 2015/12/16 21:20:37 Nit: you might need to #include include/core/SkPre
Sean Klein 2015/12/16 22:34:03 Going with the "#include" option for now.
// The shared_section parameter is passed to gfx::PlatformDevice::create.
// See it for details.
SK_API SkCanvas* CreatePlatformCanvas(int width,
@@ -51,7 +51,7 @@ enum OnFailureType {
int x,
int y,
const RECT* src_rect);
-#elif defined(__APPLE__)
+#elif defined(SK_BUILD_FOR_MAC)
SK_API SkCanvas* CreatePlatformCanvas(CGContextRef context,
int width,
int height,
@@ -63,8 +63,7 @@ enum OnFailureType {
bool is_opaque,
uint8_t* context,
OnFailureType failure_type);
-#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
- defined(__sun) || defined(ANDROID)
+#elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_UNIX)
// Linux ---------------------------------------------------------------------
// Construct a canvas from the given memory region. The memory is not cleared
« skia/BUILD.gn ('K') | « skia/BUILD.gn ('k') | skia/ext/platform_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698