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

Unified Diff: src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp

Issue 1411283005: Start making all .cpp files compile-able on all platforms. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: conditional on expat 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
Index: src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp
diff --git a/src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp b/src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp
index fa4126a62c2312800c683929f5bcb38f87746e52..41585c8632ece4da3b1cfc5ccdcaa0e69853d93c 100644
--- a/src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp
+++ b/src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp
@@ -5,6 +5,9 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+#include "SkTypes.h"
+#if defined(SK_BUILD_FOR_MAC)
+
#include "gl/SkGLContext.h"
#include "AvailabilityMacros.h"
@@ -117,3 +120,5 @@ SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI) {
}
return ctx;
}
+
+#endif//defined(SK_BUILD_FOR_MAC)

Powered by Google App Engine
This is Rietveld 408576698