More prep work in Gr for landing AA hairline renderer.

Review URL: http://codereview.appspot.com/4944045



git-svn-id: http://skia.googlecode.com/svn/trunk@2164 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrContext.h b/gpu/include/GrContext.h
index e07cf42..3fe1a7b 100644
--- a/gpu/include/GrContext.h
+++ b/gpu/include/GrContext.h
@@ -182,7 +182,9 @@
     /**
      *  Returns true if the specified use of an indexed texture is supported.
      */
-    bool supportsIndex8PixelConfig(const GrSamplerState&, int width, int height);
+    bool supportsIndex8PixelConfig(const GrSamplerState&,
+                                   int width,
+                                   int height) const;
 
     /**
      *  Return the current texture cache limits.
@@ -387,6 +389,11 @@
     // Misc.
 
     /**
+     * Currently needed by SkGpuDevice. Ideally this shouldn't be exposed.
+     */
+    bool supportsShaders() const;
+
+    /**
      * Flags that affect flush() behavior.
      */
     enum FlushBits {
@@ -510,6 +517,7 @@
     ///////////////////////////////////////////////////////////////////////////
     // Functions intended for internal use only.
     GrGpu* getGpu() { return fGpu; }
+    const GrGpu* getGpu() const { return fGpu; }
     GrFontCache* getFontCache() { return fFontCache; }
     GrDrawTarget* getTextTarget(const GrPaint& paint);
     void flushText();