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 onDrawPath(const GrPathProcessor*, | |
77 const GrPath*, | |
78 const GrStencilSettings&, | |
79 const PipelineInfo&) override; | |
80 void onDrawPaths(const GrPathProcessor*, | 76 void onDrawPaths(const GrPathProcessor*, |
81 const GrPathRange*, | 77 const GrPathRange*, |
82 const void* indices, | 78 const void* indices, |
83 PathIndexType, | 79 PathIndexType, |
84 const float transformValues[], | 80 const float transformValues[], |
85 PathTransformType, | 81 PathTransformType, |
86 int count, | 82 int count, |
87 const GrStencilSettings&, | 83 const GrStencilSettings&, |
88 const PipelineInfo&) override; | 84 const PipelineInfo&) override; |
89 | 85 |
(...skipping 19 matching lines...) Expand all Loading... |
109 SkChunkAlloc fPathIndexBuffer; | 105 SkChunkAlloc fPathIndexBuffer; |
110 SkChunkAlloc fPathTransformBuffer; | 106 SkChunkAlloc fPathTransformBuffer; |
111 SkChunkAlloc fPipelineBuffer; | 107 SkChunkAlloc fPipelineBuffer; |
112 uint32_t fDrawID; | 108 uint32_t fDrawID; |
113 SkAutoTUnref<StateForPathDraw> fPrevState; | 109 SkAutoTUnref<StateForPathDraw> fPrevState; |
114 | 110 |
115 typedef GrClipTarget INHERITED; | 111 typedef GrClipTarget INHERITED; |
116 }; | 112 }; |
117 | 113 |
118 #endif | 114 #endif |
OLD | NEW |