| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 GrAuditTrail* auditTrail() { return fAuditTrail; } | 289 GrAuditTrail* auditTrail() { return fAuditTrail; } |
| 290 | 290 |
| 291 SkDEBUGCODE(GrSingleOwner* singleOwner() { return fSingleOwner; }) | 291 SkDEBUGCODE(GrSingleOwner* singleOwner() { return fSingleOwner; }) |
| 292 SkDEBUGCODE(void validate() const;) | 292 SkDEBUGCODE(void validate() const;) |
| 293 | 293 |
| 294 private: | 294 private: |
| 295 friend class GrAtlasTextBlob; // for access to drawBatch | 295 friend class GrAtlasTextBlob; // for access to drawBatch |
| 296 friend class GrStencilAndCoverTextContext; // for access to drawBatch | 296 friend class GrStencilAndCoverTextContext; // for access to drawBatch |
| 297 friend class GrDrawingManager; // for ctor | 297 friend class GrDrawingManager; // for ctor |
| 298 friend class GrDrawContextPriv; | 298 friend class GrDrawContextPriv; |
| 299 friend class GrTestTarget; // for access to getDrawTarget |
| 299 | 300 |
| 300 bool drawFilledDRRect(const GrClip& clip, | 301 bool drawFilledDRRect(const GrClip& clip, |
| 301 const GrPaint& paint, | 302 const GrPaint& paint, |
| 302 const SkMatrix& viewMatrix, | 303 const SkMatrix& viewMatrix, |
| 303 const SkRRect& origOuter, | 304 const SkRRect& origOuter, |
| 304 const SkRRect& origInner); | 305 const SkRRect& origInner); |
| 305 | 306 |
| 306 GrDrawBatch* getFillRectBatch(const GrPaint& paint, | 307 GrDrawBatch* getFillRectBatch(const GrPaint& paint, |
| 307 const SkMatrix& viewMatrix, | 308 const SkMatrix& viewMatrix, |
| 308 const SkRect& rect); | 309 const SkRect& rect); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 329 GrContext* fContext; | 330 GrContext* fContext; |
| 330 | 331 |
| 331 SkSurfaceProps fSurfaceProps; | 332 SkSurfaceProps fSurfaceProps; |
| 332 GrAuditTrail* fAuditTrail; | 333 GrAuditTrail* fAuditTrail; |
| 333 | 334 |
| 334 // In debug builds we guard against improper thread handling | 335 // In debug builds we guard against improper thread handling |
| 335 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 336 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
| 336 }; | 337 }; |
| 337 | 338 |
| 338 #endif | 339 #endif |
| OLD | NEW |