aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-01 16:50:24 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-01 16:50:24 +0000
commiteedef2564a095de1571b786427965a56992224f0 (patch)
tree0876578795a0255203ccdd6c25932b1feddb6637
parentbd7c64150cf249db91ca13f8d1dac48c418f9c17 (diff)
Remove suffixes from SK_wGL macros
git-svn-id: http://skia.googlecode.com/svn/trunk@2778 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--include/utils/SkWGL.h46
-rw-r--r--src/utils/win/SkOSWindow_win.cpp18
2 files changed, 32 insertions, 32 deletions
diff --git a/include/utils/SkWGL.h b/include/utils/SkWGL.h
index 35c93f68dc..8eae5af6a3 100644
--- a/include/utils/SkWGL.h
+++ b/include/utils/SkWGL.h
@@ -33,35 +33,35 @@
#undef SK_LOCAL_LEAN_AND_MEAN
#endif
-#define SK_WGL_DRAW_TO_WINDOW_ARB 0x2001
-#define SK_WGL_ACCELERATION_ARB 0x2003
-#define SK_WGL_SUPPORT_OPENGL_ARB 0x2010
-#define SK_WGL_DOUBLE_BUFFER_ARB 0x2011
-#define SK_WGL_COLOR_BITS_ARB 0x2014
-#define SK_WGL_ALPHA_BITS_ARB 0x201B
-#define SK_WGL_STENCIL_BITS_ARB 0x2023
-#define SK_WGL_FULL_ACCELERATION_ARB 0x2027
-#define SK_WGL_SAMPLE_BUFFERS_ARB 0x2041
-#define SK_WGL_SAMPLES_ARB 0x2042
-#define SK_WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
-#define SK_WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
-#define SK_WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
-#define SK_WGL_CONTEXT_FLAGS_ARB 0x2094
-#define SK_WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
-#define SK_WGL_CONTEXT_DEBUG_BIT_ARB 0x0001
-#define SK_WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
-#define SK_WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
-#define SK_WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
-#define SK_WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
-#define SK_ERROR_INVALID_VERSION_ARB 0x2095
-#define SK_ERROR_INVALID_PROFILE_ARB 0x2096
+#define SK_WGL_DRAW_TO_WINDOW 0x2001
+#define SK_WGL_ACCELERATION 0x2003
+#define SK_WGL_SUPPORT_OPENGL 0x2010
+#define SK_WGL_DOUBLE_BUFFER 0x2011
+#define SK_WGL_COLOR_BITS 0x2014
+#define SK_WGL_ALPHA_BITS 0x201B
+#define SK_WGL_STENCIL_BITS 0x2023
+#define SK_WGL_FULL_ACCELERATION 0x2027
+#define SK_WGL_SAMPLE_BUFFERS 0x2041
+#define SK_WGL_SAMPLES 0x2042
+#define SK_WGL_CONTEXT_MAJOR_VERSION 0x2091
+#define SK_WGL_CONTEXT_MINOR_VERSION 0x2092
+#define SK_WGL_CONTEXT_LAYER_PLANE 0x2093
+#define SK_WGL_CONTEXT_FLAGS 0x2094
+#define SK_WGL_CONTEXT_PROFILE_MASK 0x9126
+#define SK_WGL_CONTEXT_DEBUG_BIT 0x0001
+#define SK_WGL_CONTEXT_FORWARD_COMPATIBLE_BIT 0x0002
+#define SK_WGL_CONTEXT_CORE_PROFILE_BIT 0x00000001
+#define SK_WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
+#define SK_WGL_CONTEXT_ES2_PROFILE_BIT 0x00000004
+#define SK_ERROR_INVALID_VERSION 0x2095
+#define SK_ERROR_INVALID_PROFILE 0x2096
class SkWGLExtensions {
public:
SkWGLExtensions();
/**
* Determines if an extensions is available for a given DC.
- * WGL_ARB_extensions_string is considered a prerequisite for all other
+ * WGL_extensions_string is considered a prerequisite for all other
* extensions. It is necessary to check this before calling other class
* functions.
*/
diff --git a/src/utils/win/SkOSWindow_win.cpp b/src/utils/win/SkOSWindow_win.cpp
index 7a10823e6d..c59821a172 100644
--- a/src/utils/win/SkOSWindow_win.cpp
+++ b/src/utils/win/SkOSWindow_win.cpp
@@ -300,17 +300,17 @@ HGLRC create_gl(HWND hwnd) {
int format = 0;
GLint iattrs[] = {
- SK_WGL_DRAW_TO_WINDOW_ARB, TRUE,
- SK_WGL_DOUBLE_BUFFER_ARB, TRUE,
- SK_WGL_ACCELERATION_ARB, SK_WGL_FULL_ACCELERATION_ARB,
- SK_WGL_SUPPORT_OPENGL_ARB, TRUE,
- SK_WGL_COLOR_BITS_ARB, 24,
- SK_WGL_ALPHA_BITS_ARB, 8,
- SK_WGL_STENCIL_BITS_ARB, 8,
+ SK_WGL_DRAW_TO_WINDOW, TRUE,
+ SK_WGL_DOUBLE_BUFFER, TRUE,
+ SK_WGL_ACCELERATION, SK_WGL_FULL_ACCELERATION,
+ SK_WGL_SUPPORT_OPENGL, TRUE,
+ SK_WGL_COLOR_BITS, 24,
+ SK_WGL_ALPHA_BITS, 8,
+ SK_WGL_STENCIL_BITS, 8,
// these must be kept last
- SK_WGL_SAMPLE_BUFFERS_ARB, TRUE,
- SK_WGL_SAMPLES_ARB, 0,
+ SK_WGL_SAMPLE_BUFFERS, TRUE,
+ SK_WGL_SAMPLES, 0,
0,0
};
static const int kSampleBuffersValueIdx = SK_ARRAY_COUNT(iattrs) - 5;