| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 const SkRect& rect); | 301 const SkRect& rect); |
| 302 | 302 |
| 303 void internalDrawPath(const GrClip& clip, | 303 void internalDrawPath(const GrClip& clip, |
| 304 const GrPaint& paint, | 304 const GrPaint& paint, |
| 305 const SkMatrix& viewMatrix, | 305 const SkMatrix& viewMatrix, |
| 306 const SkPath& path, | 306 const SkPath& path, |
| 307 const GrStyle& style); | 307 const GrStyle& style); |
| 308 | 308 |
| 309 // This entry point allows the GrTextContext-derived classes to add their ba
tches to | 309 // This entry point allows the GrTextContext-derived classes to add their ba
tches to |
| 310 // the drawTarget. | 310 // the drawTarget. |
| 311 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch); | 311 void drawBatch(GrPipelineBuilder* pipelineBuilder, const GrClip&, GrDrawBatc
h* batch); |
| 312 | 312 |
| 313 GrDrawTarget* getDrawTarget(); | 313 GrDrawTarget* getDrawTarget(); |
| 314 | 314 |
| 315 GrDrawingManager* fDrawingManager; | 315 GrDrawingManager* fDrawingManager; |
| 316 sk_sp<GrRenderTarget> fRenderTarget; | 316 sk_sp<GrRenderTarget> fRenderTarget; |
| 317 | 317 |
| 318 // In MDB-mode the drawTarget can be closed by some other drawContext that h
as picked | 318 // In MDB-mode the drawTarget can be closed by some other drawContext that h
as picked |
| 319 // it up. For this reason, the drawTarget should only ever be accessed via '
getDrawTarget'. | 319 // it up. For this reason, the drawTarget should only ever be accessed via '
getDrawTarget'. |
| 320 GrDrawTarget* fDrawTarget; | 320 GrDrawTarget* fDrawTarget; |
| 321 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; | 321 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; |
| 322 GrContext* fContext; | 322 GrContext* fContext; |
| 323 | 323 |
| 324 SkSurfaceProps fSurfaceProps; | 324 SkSurfaceProps fSurfaceProps; |
| 325 GrAuditTrail* fAuditTrail; | 325 GrAuditTrail* fAuditTrail; |
| 326 | 326 |
| 327 // In debug builds we guard against improper thread handling | 327 // In debug builds we guard against improper thread handling |
| 328 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 328 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
| 329 }; | 329 }; |
| 330 | 330 |
| 331 #endif | 331 #endif |
| OLD | NEW |