Remove unnecessary dirty clip flag in GrGpu, remove getUsableStencilBits()

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



git-svn-id: http://skia.googlecode.com/svn/trunk@2011 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrGpuGL.cpp b/gpu/src/GrGpuGL.cpp
index b8a0406..2498972 100644
--- a/gpu/src/GrGpuGL.cpp
+++ b/gpu/src/GrGpuGL.cpp
@@ -578,8 +578,7 @@
 
     fHWDrawState.fStencilSettings.invalidate();
     fHWStencilClip = false;
-    fClipState.fClipIsDirty = true;
-    fClipState.fClipInStencil = false;
+    fClipInStencil = false;
 
     fHWGeometryState.fIndexBuffer = NULL;
     fHWGeometryState.fVertexBuffer = NULL;
@@ -1761,7 +1760,7 @@
 
     // use stencil for clipping if clipping is enabled and the clip
     // has been written into the stencil.
-    bool stencilClip = fClipState.fClipInStencil &&
+    bool stencilClip = fClipInStencil &&
                        (kClip_StateBit & fCurrDrawState.fFlagBits);
     bool stencilChange = fHWStencilClip != stencilClip  ||
                          fHWDrawState.fStencilSettings != *settings ||