OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 gr_instanced_InstancedRendering_DEFINED | 8 #ifndef gr_instanced_InstancedRendering_DEFINED |
9 #define gr_instanced_InstancedRendering_DEFINED | 9 #define gr_instanced_InstancedRendering_DEFINED |
10 | 10 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 const SkRect& localRect, bool antia
lias, | 166 const SkRect& localRect, bool antia
lias, |
167 const GrInstancedPipelineInfo&, boo
l* requireHWAA); | 167 const GrInstancedPipelineInfo&, boo
l* requireHWAA); |
168 | 168 |
169 bool selectAntialiasMode(const SkMatrix& viewMatrix, bool antialias, | 169 bool selectAntialiasMode(const SkMatrix& viewMatrix, bool antialias, |
170 const GrInstancedPipelineInfo&, bool* useHWAA, Anti
aliasMode*); | 170 const GrInstancedPipelineInfo&, bool* useHWAA, Anti
aliasMode*); |
171 | 171 |
172 virtual Batch* createBatch() = 0; | 172 virtual Batch* createBatch() = 0; |
173 | 173 |
174 const sk_sp<GrGpu> fGpu; | 174 const sk_sp<GrGpu> fGpu; |
175 State fState; | 175 State fState; |
176 GrMemoryPool fDrawPool; | 176 GrObjectMemoryPool<Batch::Draw> fDrawPool; |
177 SkSTArray<1024, ParamsTexel, true> fParams; | 177 SkSTArray<1024, ParamsTexel, true> fParams; |
178 BatchList fTrackedBatches; | 178 BatchList fTrackedBatches; |
179 sk_sp<const GrBuffer> fVertexBuffer; | 179 sk_sp<const GrBuffer> fVertexBuffer; |
180 sk_sp<const GrBuffer> fIndexBuffer; | 180 sk_sp<const GrBuffer> fIndexBuffer; |
181 sk_sp<GrBuffer> fParamsBuffer; | 181 sk_sp<GrBuffer> fParamsBuffer; |
182 }; | 182 }; |
183 | 183 |
184 } | 184 } |
185 | 185 |
186 #endif | 186 #endif |
OLD | NEW |