| 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 |
| 11 #include "GrColor.h" | 11 #include "GrColor.h" |
| 12 #include "GrPaint.h" | 12 #include "GrPaint.h" |
| 13 #include "GrRenderTarget.h" | 13 #include "GrRenderTarget.h" |
| 14 #include "SkRefCnt.h" | 14 #include "SkRefCnt.h" |
| 15 #include "SkRegion.h" | 15 #include "SkRegion.h" |
| 16 #include "SkSurfaceProps.h" | 16 #include "SkSurfaceProps.h" |
| 17 #include "../private/GrInstancedPipelineInfo.h" | 17 #include "../private/GrInstancedPipelineInfo.h" |
| 18 #include "../private/GrSingleOwner.h" | 18 #include "../private/GrSingleOwner.h" |
| 19 | 19 |
| 20 class GrAuditTrail; | 20 class GrAuditTrail; |
| 21 class GrClip; | 21 class GrClip; |
| 22 class GrContext; | 22 class GrContext; |
| 23 class GrDrawBatch; | 23 class GrDrawBatch; |
| 24 class GrDrawContextPriv; | 24 class GrDrawContextPriv; |
| 25 class GrDrawPathBatchBase; | 25 class GrDrawPathBatchBase; |
| 26 class GrDrawingManager; | 26 class GrDrawingManager; |
| 27 class GrDrawTarget; | 27 class GrDrawTarget; |
| 28 class GrFixedClip; |
| 28 class GrPaint; | 29 class GrPaint; |
| 29 class GrPathProcessor; | 30 class GrPathProcessor; |
| 30 class GrPipelineBuilder; | 31 class GrPipelineBuilder; |
| 31 class GrRenderTarget; | 32 class GrRenderTarget; |
| 32 class GrStyle; | 33 class GrStyle; |
| 33 class GrSurface; | 34 class GrSurface; |
| 34 struct GrUserStencilSettings; | 35 struct GrUserStencilSettings; |
| 35 class SkDrawFilter; | 36 class SkDrawFilter; |
| 36 struct SkIPoint; | 37 struct SkIPoint; |
| 37 struct SkIRect; | 38 struct SkIRect; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 friend class GrDashLinePathRenderer; // for access to drawBatch | 321 friend class GrDashLinePathRenderer; // for access to drawBatch |
| 321 friend class GrAAHairLinePathRenderer; // for access to drawBatch | 322 friend class GrAAHairLinePathRenderer; // for access to drawBatch |
| 322 friend class GrAALinearizingConvexPathRenderer; // for access to drawBatch | 323 friend class GrAALinearizingConvexPathRenderer; // for access to drawBatch |
| 323 friend class GrAADistanceFieldPathRenderer; // for access to drawBatch | 324 friend class GrAADistanceFieldPathRenderer; // for access to drawBatch |
| 324 friend class GrDefaultPathRenderer; // for access to drawBatch | 325 friend class GrDefaultPathRenderer; // for access to drawBatch |
| 325 friend class GrPLSPathRenderer; // for access to drawBatch | 326 friend class GrPLSPathRenderer; // for access to drawBatch |
| 326 friend class GrMSAAPathRenderer; // for access to drawBatch | 327 friend class GrMSAAPathRenderer; // for access to drawBatch |
| 327 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch | 328 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch |
| 328 friend class GrTessellatingPathRenderer; // for access to drawBatch | 329 friend class GrTessellatingPathRenderer; // for access to drawBatch |
| 329 | 330 |
| 331 void internalClear(const GrFixedClip&, const GrColor, bool canIgnoreClip); |
| 332 |
| 330 bool drawFilledDRRect(const GrClip& clip, | 333 bool drawFilledDRRect(const GrClip& clip, |
| 331 const GrPaint& paint, | 334 const GrPaint& paint, |
| 332 const SkMatrix& viewMatrix, | 335 const SkMatrix& viewMatrix, |
| 333 const SkRRect& origOuter, | 336 const SkRRect& origOuter, |
| 334 const SkRRect& origInner); | 337 const SkRRect& origInner); |
| 335 | 338 |
| 336 bool drawFilledRect(const GrClip& clip, | 339 bool drawFilledRect(const GrClip& clip, |
| 337 const GrPaint& paint, | 340 const GrPaint& paint, |
| 338 const SkMatrix& viewMatrix, | 341 const SkMatrix& viewMatrix, |
| 339 const SkRect& rect, | 342 const SkRect& rect, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 374 |
| 372 sk_sp<SkColorSpace> fColorSpace; | 375 sk_sp<SkColorSpace> fColorSpace; |
| 373 SkSurfaceProps fSurfaceProps; | 376 SkSurfaceProps fSurfaceProps; |
| 374 GrAuditTrail* fAuditTrail; | 377 GrAuditTrail* fAuditTrail; |
| 375 | 378 |
| 376 // In debug builds we guard against improper thread handling | 379 // In debug builds we guard against improper thread handling |
| 377 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 380 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
| 378 }; | 381 }; |
| 379 | 382 |
| 380 #endif | 383 #endif |
| OLD | NEW |