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

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
« no previous file with comments | « skia/BUILD.gn ('k') | skia/ext/platform_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_canvas.h
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h
index 75458b5dd5401c63e4341395cd9e0bdf47ae4591..25560e782276d459320ab04db30da65c9510d91a 100644
--- a/skia/ext/platform_canvas.h
+++ b/skia/ext/platform_canvas.h
@@ -13,6 +13,7 @@
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkPixelRef.h"
+#include "third_party/skia/include/core/SkPreConfig.h"
namespace skia {
@@ -35,7 +36,7 @@ enum OnFailureType {
RETURN_NULL_ON_FAILURE
};
-#if defined(WIN32)
+#if defined(SK_BUILD_FOR_WIN32)
// The shared_section parameter is passed to gfx::PlatformDevice::create.
// See it for details.
SK_API SkCanvas* CreatePlatformCanvas(int width,
@@ -51,7 +52,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 +64,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
« no previous file with comments | « skia/BUILD.gn ('k') | skia/ext/platform_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698