rename DrawState to DrState -- MS decided to #define DrawState, complicating
our (compiler) lives :(



git-svn-id: http://skia.googlecode.com/svn/trunk@689 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrDrawTarget.h b/gpu/include/GrDrawTarget.h
index fee13a6..2823da7 100644
--- a/gpu/include/GrDrawTarget.h
+++ b/gpu/include/GrDrawTarget.h
@@ -131,7 +131,7 @@
         kMatrixModeCount
     };
 
-    struct DrawState {
+    struct DrState {
         uint32_t                fFlagBits;
         BlendCoeff          	fSrcBlend;
         BlendCoeff          	fDstBlend;
@@ -143,10 +143,10 @@
         StencilPass             fStencilPass;
         bool                    fReverseFill;
         GrMatrix                fMatrixModeCache[kMatrixModeCount];
-        bool operator ==(const DrawState& s) const {
-            return 0 == memcmp(this, &s, sizeof(DrawState));
+        bool operator ==(const DrState& s) const {
+            return 0 == memcmp(this, &s, sizeof(DrState));
         }
-        bool operator !=(const DrawState& s) const { return !(*this == s); }
+        bool operator !=(const DrState& s) const { return !(*this == s); }
     };
 
 public:
@@ -346,7 +346,7 @@
      */
     struct SavedDrawState {
     private:
-        DrawState fState;
+        DrState fState;
         friend class GrDrawTarget;
     };
 
@@ -664,9 +664,9 @@
 
     // Helpers for GrDrawTarget subclasses that won't have private access to
     // SavedDrawState but need to peek at the state values.
-    static DrawState& accessSavedDrawState(SavedDrawState& sds)
+    static DrState& accessSavedDrawState(SavedDrawState& sds)
                                                         { return sds.fState; }
-    static const DrawState& accessSavedDrawState(const SavedDrawState& sds)
+    static const DrState& accessSavedDrawState(const SavedDrawState& sds)
                                                         { return sds.fState; }
 
     // implemented by subclass
@@ -706,7 +706,7 @@
 
     GrClip fClip;
 
-    DrawState fCurrDrawState;
+    DrState fCurrDrawState;
 
     // set texture or modelview matrix
     void loadMatrix(const GrMatrix&, MatrixMode);
diff --git a/gpu/src/GrGpu.cpp b/gpu/src/GrGpu.cpp
index c6340bd..f9ee217 100644
--- a/gpu/src/GrGpu.cpp
+++ b/gpu/src/GrGpu.cpp
@@ -112,7 +112,7 @@
 
 static const int MAX_QUADS = 512; // max possible: (1 << 14) - 1;
 
-GR_STATIC_ASSERT(4 * MAX_QUADS <= UINT16_MAX);
+GR_STATIC_ASSERT(4 * MAX_QUADS <= 65535);
 
 static inline void fillIndices(uint16_t* indices, int quadCount) {
     for (int i = 0; i < quadCount; ++i) {
diff --git a/gpu/src/GrGpuGL.h b/gpu/src/GrGpuGL.h
index dc766be..728a5d3 100644
--- a/gpu/src/GrGpuGL.h
+++ b/gpu/src/GrGpuGL.h
@@ -70,8 +70,8 @@
         const GrIndexBuffer*    fIndexBuffer;
     } fHWGeometryState;
 
-    DrawState   fHWDrawState;
-    bool        fHWStencilClip;
+    DrState   fHWDrawState;
+    bool      fHWStencilClip;
 
     virtual void drawIndexedHelper(PrimitiveType type,
                                    uint32_t startVertex,
diff --git a/gpu/src/GrInOrderDrawBuffer.cpp b/gpu/src/GrInOrderDrawBuffer.cpp
index 3f25f2f..952ba83 100644
--- a/gpu/src/GrInOrderDrawBuffer.cpp
+++ b/gpu/src/GrInOrderDrawBuffer.cpp
@@ -316,7 +316,7 @@
     if (fStates.empty()) {
         newState = true;
     } else {
-        const DrawState& old = accessSavedDrawState(fStates.back());
+        const DrState& old = accessSavedDrawState(fStates.back());
         newState = old != fCurrDrawState;
     }
     if (newState) {