OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrDrawContext_DEFINED | 8 #ifndef GrDrawContext_DEFINED |
9 #define GrDrawContext_DEFINED | 9 #define GrDrawContext_DEFINED |
10 | 10 |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 bool useAA, | 303 bool useAA, |
304 const SkPath&, | 304 const SkPath&, |
305 const GrStrokeInfo&); | 305 const GrStrokeInfo&); |
306 | 306 |
307 // This entry point allows the GrTextContext-derived classes to add their ba
tches to | 307 // This entry point allows the GrTextContext-derived classes to add their ba
tches to |
308 // the drawTarget. | 308 // the drawTarget. |
309 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch); | 309 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch); |
310 | 310 |
311 GrDrawTarget* getDrawTarget(); | 311 GrDrawTarget* getDrawTarget(); |
312 | 312 |
313 GrDrawingManager* fDrawingManager; | 313 GrDrawingManager* fDrawingManager; |
314 GrRenderTarget* fRenderTarget; | 314 GrRenderTarget* fRenderTarget; |
315 | 315 |
316 // In MDB-mode the drawTarget can be closed by some other drawContext that h
as picked | 316 // In MDB-mode the drawTarget can be closed by some other drawContext that h
as picked |
317 // it up. For this reason, the drawTarget should only ever be accessed via '
getDrawTarget'. | 317 // it up. For this reason, the drawTarget should only ever be accessed via '
getDrawTarget'. |
318 GrDrawTarget* fDrawTarget; | 318 GrDrawTarget* fDrawTarget; |
319 GrAtlasTextContext* fAtlasTextContext; | 319 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; |
320 GrContext* fContext; | 320 GrContext* fContext; |
321 | 321 |
322 SkSurfaceProps fSurfaceProps; | 322 SkSurfaceProps fSurfaceProps; |
323 GrAuditTrail* fAuditTrail; | 323 GrAuditTrail* fAuditTrail; |
324 | 324 |
325 // In debug builds we guard against improper thread handling | 325 // In debug builds we guard against improper thread handling |
326 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 326 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
327 }; | 327 }; |
328 | 328 |
329 #endif | 329 #endif |
OLD | NEW |