| 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 11 matching lines...) Expand all Loading... |
| 22 * in the GrGpu object that the buffer is played back into. The buffer requires
VB and IB pools to | 22 * in the GrGpu object that the buffer is played back into. The buffer requires
VB and IB pools to |
| 23 * store geometry. | 23 * store geometry. |
| 24 */ | 24 */ |
| 25 class GrInOrderDrawBuffer : public GrClipTarget { | 25 class GrInOrderDrawBuffer : public GrClipTarget { |
| 26 public: | 26 public: |
| 27 | 27 |
| 28 /** | 28 /** |
| 29 * Creates a GrInOrderDrawBuffer | 29 * Creates a GrInOrderDrawBuffer |
| 30 * | 30 * |
| 31 * @param context the context object that owns this draw buffer. | 31 * @param context the context object that owns this draw buffer. |
| 32 * @param vertexPool pool where vertices for queued draws will be saved when | |
| 33 * the vertex source is either reserved or array. | |
| 34 * @param indexPool pool where indices for queued draws will be saved when | |
| 35 * the index source is either reserved or array. | |
| 36 */ | 32 */ |
| 37 GrInOrderDrawBuffer(GrContext* context, | 33 GrInOrderDrawBuffer(GrContext* context); |
| 38 GrVertexBufferAllocPool* vertexPool, | |
| 39 GrIndexBufferAllocPool* indexPool); | |
| 40 | 34 |
| 41 ~GrInOrderDrawBuffer() override; | 35 ~GrInOrderDrawBuffer() override; |
| 42 | 36 |
| 43 // tracking for draws | 37 // tracking for draws |
| 44 DrawToken getCurrentDrawToken() override { return DrawToken(this, fDrawID);
} | 38 DrawToken getCurrentDrawToken() override { return DrawToken(this, fDrawID);
} |
| 45 | 39 |
| 46 void clearStencilClip(const SkIRect& rect, | 40 void clearStencilClip(const SkIRect& rect, |
| 47 bool insideClip, | 41 bool insideClip, |
| 48 GrRenderTarget* renderTarget) override; | 42 GrRenderTarget* renderTarget) override; |
| 49 | 43 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 SkChunkAlloc fPathIndexBuffer; | 143 SkChunkAlloc fPathIndexBuffer; |
| 150 SkChunkAlloc fPathTransformBuffer; | 144 SkChunkAlloc fPathTransformBuffer; |
| 151 SkChunkAlloc fPipelineBuffer; | 145 SkChunkAlloc fPipelineBuffer; |
| 152 uint32_t fDrawID; | 146 uint32_t fDrawID; |
| 153 SkAutoTUnref<State> fPrevState; | 147 SkAutoTUnref<State> fPrevState; |
| 154 | 148 |
| 155 typedef GrClipTarget INHERITED; | 149 typedef GrClipTarget INHERITED; |
| 156 }; | 150 }; |
| 157 | 151 |
| 158 #endif | 152 #endif |
| OLD | NEW |