OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrInOrderDrawBuffer_DEFINED | 8 #ifndef GrInOrderDrawBuffer_DEFINED |
9 #define GrInOrderDrawBuffer_DEFINED | 9 #define GrInOrderDrawBuffer_DEFINED |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // tracking for draws | 47 // tracking for draws |
48 DrawToken getCurrentDrawToken() SK_OVERRIDE { return DrawToken(this, fDrawID
); } | 48 DrawToken getCurrentDrawToken() SK_OVERRIDE { return DrawToken(this, fDrawID
); } |
49 | 49 |
50 void clearStencilClip(const SkIRect& rect, | 50 void clearStencilClip(const SkIRect& rect, |
51 bool insideClip, | 51 bool insideClip, |
52 GrRenderTarget* renderTarget) SK_OVERRIDE; | 52 GrRenderTarget* renderTarget) SK_OVERRIDE; |
53 | 53 |
54 void discard(GrRenderTarget*) SK_OVERRIDE; | 54 void discard(GrRenderTarget*) SK_OVERRIDE; |
55 | 55 |
| 56 protected: |
56 void willReserveVertexAndIndexSpace(int vertexCount, | 57 void willReserveVertexAndIndexSpace(int vertexCount, |
57 size_t vertexStride, | 58 size_t vertexStride, |
58 int indexCount); | 59 int indexCount); |
59 | 60 |
60 private: | 61 private: |
61 typedef GrGpu::DrawArgs DrawArgs; | 62 typedef GrGpu::DrawArgs DrawArgs; |
62 enum { | 63 enum { |
63 kDraw_Cmd = 1, | 64 kDraw_Cmd = 1, |
64 kStencilPath_Cmd = 2, | 65 kStencilPath_Cmd = 2, |
65 kSetState_Cmd = 3, | 66 kSetState_Cmd = 3, |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 fDrawBatch->execute(this, fPrevState); | 313 fDrawBatch->execute(this, fPrevState); |
313 fDrawBatch->fBatch->setNumberOfDraws(fBatchTarget.numberOfDraws()); | 314 fDrawBatch->fBatch->setNumberOfDraws(fBatchTarget.numberOfDraws()); |
314 fDrawBatch = NULL; | 315 fDrawBatch = NULL; |
315 } | 316 } |
316 } | 317 } |
317 | 318 |
318 typedef GrFlushToGpuDrawTarget INHERITED; | 319 typedef GrFlushToGpuDrawTarget INHERITED; |
319 }; | 320 }; |
320 | 321 |
321 #endif | 322 #endif |
OLD | NEW |