| 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 16 matching lines...) Expand all Loading... |
| 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 */ | 32 */ |
| 33 GrInOrderDrawBuffer(GrContext* context); | 33 GrInOrderDrawBuffer(GrContext* context); |
| 34 | 34 |
| 35 ~GrInOrderDrawBuffer() override; | 35 ~GrInOrderDrawBuffer() override; |
| 36 | 36 |
| 37 // tracking for draws |
| 38 DrawToken getCurrentDrawToken() override { return DrawToken(this, fDrawID);
} |
| 39 |
| 37 void clearStencilClip(const SkIRect& rect, | 40 void clearStencilClip(const SkIRect& rect, |
| 38 bool insideClip, | 41 bool insideClip, |
| 39 GrRenderTarget* renderTarget) override; | 42 GrRenderTarget* renderTarget) override; |
| 40 | 43 |
| 41 void discard(GrRenderTarget*) override; | 44 void discard(GrRenderTarget*) override; |
| 42 | 45 |
| 43 protected: | 46 protected: |
| 44 void appendIndicesAndTransforms(const void* indexValues, PathIndexType index
Type, | 47 void appendIndicesAndTransforms(const void* indexValues, PathIndexType index
Type, |
| 45 const float* transformValues, PathTransformT
ype transformType, | 48 const float* transformValues, PathTransformT
ype transformType, |
| 46 int count, char** indicesLocation, float** x
formsLocation) { | 49 int count, char** indicesLocation, float** x
formsLocation) { |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 SkChunkAlloc fPathIndexBuffer; | 143 SkChunkAlloc fPathIndexBuffer; |
| 141 SkChunkAlloc fPathTransformBuffer; | 144 SkChunkAlloc fPathTransformBuffer; |
| 142 SkChunkAlloc fPipelineBuffer; | 145 SkChunkAlloc fPipelineBuffer; |
| 143 uint32_t fDrawID; | 146 uint32_t fDrawID; |
| 144 SkAutoTUnref<State> fPrevState; | 147 SkAutoTUnref<State> fPrevState; |
| 145 | 148 |
| 146 typedef GrClipTarget INHERITED; | 149 typedef GrClipTarget INHERITED; |
| 147 }; | 150 }; |
| 148 | 151 |
| 149 #endif | 152 #endif |
| OLD | NEW |