| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 bool isFlushing() const { return fFlushing; } | 71 bool isFlushing() const { return fFlushing; } |
| 72 | 72 |
| 73 // overrides from GrDrawTarget | 73 // overrides from GrDrawTarget |
| 74 virtual bool geometryHints(int* vertexCount, | 74 virtual bool geometryHints(int* vertexCount, |
| 75 int* indexCount) const SK_OVERRIDE; | 75 int* indexCount) const SK_OVERRIDE; |
| 76 virtual void clear(const GrIRect* rect, | 76 virtual void clear(const GrIRect* rect, |
| 77 GrColor color, | 77 GrColor color, |
| 78 GrRenderTarget* renderTarget = NULL) SK_OVERRIDE; | 78 GrRenderTarget* renderTarget = NULL) SK_OVERRIDE; |
| 79 virtual void drawRect(const GrRect& rect, | 79 virtual void drawRect(const GrRect& rect, |
| 80 const SkMatrix* matrix, | 80 const SkMatrix* matrix, |
| 81 const GrRect* srcRect, | 81 const GrRect* localRect, |
| 82 const SkMatrix* srcMatrix, | 82 const SkMatrix* localMatrix) SK_OVERRIDE; |
| 83 int stage) SK_OVERRIDE; | |
| 84 | 83 |
| 85 protected: | 84 protected: |
| 86 virtual void clipWillBeSet(const GrClipData* newClip) SK_OVERRIDE; | 85 virtual void clipWillBeSet(const GrClipData* newClip) SK_OVERRIDE; |
| 87 | 86 |
| 88 private: | 87 private: |
| 89 enum Cmd { | 88 enum Cmd { |
| 90 kDraw_Cmd = 1, | 89 kDraw_Cmd = 1, |
| 91 kStencilPath_Cmd = 2, | 90 kStencilPath_Cmd = 2, |
| 92 kSetState_Cmd = 3, | 91 kSetState_Cmd = 3, |
| 93 kSetClip_Cmd = 4, | 92 kSetClip_Cmd = 4, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 size_t fUsedPoolIndexBytes; | 202 size_t fUsedPoolIndexBytes; |
| 204 }; | 203 }; |
| 205 SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> fGeoPoolStateStack; | 204 SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> fGeoPoolStateStack; |
| 206 | 205 |
| 207 bool fFlushing; | 206 bool fFlushing; |
| 208 | 207 |
| 209 typedef GrDrawTarget INHERITED; | 208 typedef GrDrawTarget INHERITED; |
| 210 }; | 209 }; |
| 211 | 210 |
| 212 #endif | 211 #endif |
| OLD | NEW |