Update renderable configs for ES3

R=jvanverth@google.com

Author: bsalomon@google.com

Review URL: https://chromiumcodereview.appspot.com/23301008

git-svn-id: http://skia.googlecode.com/svn/trunk/src@10819 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/gl/GrGLCaps.cpp b/gpu/gl/GrGLCaps.cpp
index f399cd4..dbf5dee 100644
--- a/gpu/gl/GrGLCaps.cpp
+++ b/gpu/gl/GrGLCaps.cpp
@@ -116,7 +116,8 @@
     if (kDesktop_GrGLBinding == binding) {
         fRGBA8RenderbufferSupport = true;
     } else {
-        fRGBA8RenderbufferSupport = ctxInfo.hasExtension("GL_OES_rgb8_rgba8") ||
+        fRGBA8RenderbufferSupport = version >= GR_GL_VER(3,0) ||
+                                    ctxInfo.hasExtension("GL_OES_rgb8_rgba8") ||
                                     ctxInfo.hasExtension("GL_ARM_rgba8");
     }
 
@@ -175,7 +176,8 @@
                                  ctxInfo.hasExtension("GL_ARB_texture_rg");
         }
     } else {
-        fTextureRedSupport = ctxInfo.hasExtension("GL_EXT_texture_rg");
+        fTextureRedSupport =  version >= GR_GL_VER(3,0) ||
+                              ctxInfo.hasExtension("GL_EXT_texture_rg");
     }
 
     fImagingSupport = kDesktop_GrGLBinding == binding &&
diff --git a/gpu/gl/GrGpuGL.cpp b/gpu/gl/GrGpuGL.cpp
index 91adfe8..0a99258 100644
--- a/gpu/gl/GrGpuGL.cpp
+++ b/gpu/gl/GrGpuGL.cpp
@@ -201,6 +201,10 @@
     //  GL_OES_rgb8_rgba8 and/or GL_ARM_rgba8 adds support for RGBA8
     //  GL_EXT_texture_format_BGRA8888 and/or GL_APPLE_texture_format_BGRA8888 added BGRA support
 
+    // ES 3.0
+    // Same as ES 2.0 except R8 and RGBA8 are supported without extensions (the functions called
+    // below already account for this).
+
     if (kDesktop_GrGLBinding == this->glBinding()) {
         // Post 3.0 we will get R8
         // Prior to 3.0 we will get ALPHA8 (with GL_ARB_framebuffer_object)