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 | |
40 void clearStencilClip(const SkIRect& rect, | 37 void clearStencilClip(const SkIRect& rect, |
41 bool insideClip, | 38 bool insideClip, |
42 GrRenderTarget* renderTarget) override; | 39 GrRenderTarget* renderTarget) override; |
43 | 40 |
44 void discard(GrRenderTarget*) override; | 41 void discard(GrRenderTarget*) override; |
45 | 42 |
46 protected: | 43 protected: |
47 void appendIndicesAndTransforms(const void* indexValues, PathIndexType index
Type, | 44 void appendIndicesAndTransforms(const void* indexValues, PathIndexType index
Type, |
48 const float* transformValues, PathTransformT
ype transformType, | 45 const float* transformValues, PathTransformT
ype transformType, |
49 int count, char** indicesLocation, float** x
formsLocation) { | 46 int count, char** indicesLocation, float** x
formsLocation) { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 SkChunkAlloc fPathIndexBuffer; | 138 SkChunkAlloc fPathIndexBuffer; |
142 SkChunkAlloc fPathTransformBuffer; | 139 SkChunkAlloc fPathTransformBuffer; |
143 SkChunkAlloc fPipelineBuffer; | 140 SkChunkAlloc fPipelineBuffer; |
144 uint32_t fDrawID; | 141 uint32_t fDrawID; |
145 SkAutoTUnref<State> fPrevState; | 142 SkAutoTUnref<State> fPrevState; |
146 | 143 |
147 typedef GrClipTarget INHERITED; | 144 typedef GrClipTarget INHERITED; |
148 }; | 145 }; |
149 | 146 |
150 #endif | 147 #endif |
OLD | NEW |