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

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

Issue 12533007: Use vertex array objects on core profiles. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Use vertex array objects on core profiles. Created 7 years, 9 months 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/SkNativeGLContext_mac.cpp
===================================================================
--- src/gpu/gl/mac/SkNativeGLContext_mac.cpp (revision 8015)
+++ src/gpu/gl/mac/SkNativeGLContext_mac.cpp (working copy)
@@ -6,6 +6,7 @@
* found in the LICENSE file.
*/
#include "gl/SkNativeGLContext.h"
+#include "AvailabilityMacros.h"
SkNativeGLContext::AutoContextRestore::AutoContextRestore() {
fOldCGLContext = CGLGetCurrentContext();
@@ -35,7 +36,7 @@
SkASSERT(NULL == fContext);
CGLPixelFormatAttribute attributes[] = {
-#if 0
+#if MAC_OS_X_VERSION_10_7
kCGLPFAOpenGLProfile, (CGLPixelFormatAttribute) kCGLOGLPVersion_3_2_Core,
#endif
(CGLPixelFormatAttribute)0

Powered by Google App Engine
This is Rietveld 408576698