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 GrBufferedDrawTarget_DEFINED | 8 #ifndef GrBufferedDrawTarget_DEFINED |
9 #define GrBufferedDrawTarget_DEFINED | 9 #define GrBufferedDrawTarget_DEFINED |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 } | 66 } |
67 | 67 |
68 void unallocState(StateForPathDraw* state) { | 68 void unallocState(StateForPathDraw* state) { |
69 state->unref(); | 69 state->unref(); |
70 fPipelineBuffer.unalloc(state); | 70 fPipelineBuffer.unalloc(state); |
71 } | 71 } |
72 | 72 |
73 void onReset() override; | 73 void onReset() override; |
74 void onFlush() override; | 74 void onFlush() override; |
75 | 75 |
76 void onStencilPath(const GrPipelineBuilder&, | |
77 const GrPathProcessor*, | |
78 const GrPath*, | |
79 const GrScissorState&, | |
80 const GrStencilSettings&) override; | |
81 void onDrawPath(const GrPathProcessor*, | 76 void onDrawPath(const GrPathProcessor*, |
82 const GrPath*, | 77 const GrPath*, |
83 const GrStencilSettings&, | 78 const GrStencilSettings&, |
84 const PipelineInfo&) override; | 79 const PipelineInfo&) override; |
85 void onDrawPaths(const GrPathProcessor*, | 80 void onDrawPaths(const GrPathProcessor*, |
86 const GrPathRange*, | 81 const GrPathRange*, |
87 const void* indices, | 82 const void* indices, |
88 PathIndexType, | 83 PathIndexType, |
89 const float transformValues[], | 84 const float transformValues[], |
90 PathTransformType, | 85 PathTransformType, |
(...skipping 23 matching lines...) Expand all Loading... |
114 SkChunkAlloc fPathIndexBuffer; | 109 SkChunkAlloc fPathIndexBuffer; |
115 SkChunkAlloc fPathTransformBuffer; | 110 SkChunkAlloc fPathTransformBuffer; |
116 SkChunkAlloc fPipelineBuffer; | 111 SkChunkAlloc fPipelineBuffer; |
117 uint32_t fDrawID; | 112 uint32_t fDrawID; |
118 SkAutoTUnref<StateForPathDraw> fPrevState; | 113 SkAutoTUnref<StateForPathDraw> fPrevState; |
119 | 114 |
120 typedef GrClipTarget INHERITED; | 115 typedef GrClipTarget INHERITED; |
121 }; | 116 }; |
122 | 117 |
123 #endif | 118 #endif |
OLD | NEW |