aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gyp/common_conditions.gypi1
-rw-r--r--gyp/gpu.gyp9
-rw-r--r--include/gpu/gl/GrGLConfig.h6
3 files changed, 6 insertions, 10 deletions
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi
index f32d1163e4..c91f46ae15 100644
--- a/gyp/common_conditions.gypi
+++ b/gyp/common_conditions.gypi
@@ -66,7 +66,6 @@
{
'defines': [
'_CRT_SECURE_NO_WARNINGS',
- 'GR_GL_FUNCTION_TYPE=__stdcall',
'_HAS_EXCEPTIONS=0',
'WIN32_LEAN_AND_MEAN',
'NOMINMAX',
diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp
index c17789ab7a..a2909b8024 100644
--- a/gyp/gpu.gyp
+++ b/gyp/gpu.gyp
@@ -65,13 +65,6 @@
}],
],
'direct_dependent_settings': {
- 'conditions': [
- [ 'skia_os == "win"', {
- 'defines': [
- 'GR_GL_FUNCTION_TYPE=__stdcall',
- ],
- }],
- ],
'include_dirs': [
'../include/gpu',
],
@@ -251,7 +244,7 @@
# the gyp -> android.mk generator doesn't seem to like cpp files
# in directories outside of src, bench, or dm. Until this gets fixed
# I just start the path in the src directory.
- '<(skia_src_path)/../tools/viewer/sk_app/WindowContext.cpp',
+ '<(skia_src_path)/../tools/viewer/sk_app/WindowContext.cpp',
'<(skia_src_path)/../tools/viewer/sk_app/VulkanWindowContext.cpp',
'<(skia_src_path)/../tools/viewer/sk_app/android/VulkanWindowContext_android.cpp'
],
diff --git a/include/gpu/gl/GrGLConfig.h b/include/gpu/gl/GrGLConfig.h
index 82963a7520..20ee37fe30 100644
--- a/include/gpu/gl/GrGLConfig.h
+++ b/include/gpu/gl/GrGLConfig.h
@@ -21,7 +21,11 @@
#endif
#if !defined(GR_GL_FUNCTION_TYPE)
- #define GR_GL_FUNCTION_TYPE
+ #if defined(SK_BUILD_FOR_WIN32)
+ #define GR_GL_FUNCTION_TYPE __stdcall
+ #else
+ #define GR_GL_FUNCTION_TYPE
+ #endif
#endif
/**