Use CGL rather than AGL on the Mac.
Review URL: https://codereview.appspot.com/7307106

git-svn-id: http://skia.googlecode.com/svn/trunk@7736 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/gpu/gl/SkNativeGLContext.h b/include/gpu/gl/SkNativeGLContext.h
index 93744e7..410c149 100644
--- a/include/gpu/gl/SkNativeGLContext.h
+++ b/include/gpu/gl/SkNativeGLContext.h
@@ -11,7 +11,7 @@
 #include "SkGLContext.h"
 
 #if defined(SK_BUILD_FOR_MAC)
-    #include <AGL/agl.h>
+    #include <OpenGL/OpenGL.h>
 #elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL)
     #include <GLES2/gl2.h>
     #include <EGL/egl.h>
@@ -38,7 +38,7 @@
 
     private:
     #if defined(SK_BUILD_FOR_MAC)
-        AGLContext fOldAGLContext;
+        CGLContextObj fOldCGLContext;
     #elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL)
         EGLContext fOldEGLContext;
         EGLDisplay fOldDisplay;
@@ -62,7 +62,7 @@
 
 private:
 #if defined(SK_BUILD_FOR_MAC)
-    AGLContext fContext;
+    CGLContextObj fContext;
 #elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL)
     EGLContext fContext;
     EGLDisplay fDisplay;