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 14 matching lines...) Expand all Loading... |
25 class GrDrawContextPriv; | 25 class GrDrawContextPriv; |
26 class GrDrawPathBatchBase; | 26 class GrDrawPathBatchBase; |
27 class GrDrawingManager; | 27 class GrDrawingManager; |
28 class GrDrawTarget; | 28 class GrDrawTarget; |
29 class GrPaint; | 29 class GrPaint; |
30 class GrPathProcessor; | 30 class GrPathProcessor; |
31 class GrPipelineBuilder; | 31 class GrPipelineBuilder; |
32 class GrRenderTarget; | 32 class GrRenderTarget; |
33 class GrStyle; | 33 class GrStyle; |
34 class GrSurface; | 34 class GrSurface; |
| 35 struct GrUserStencilSettings; |
35 class SkDrawFilter; | 36 class SkDrawFilter; |
36 struct SkIPoint; | 37 struct SkIPoint; |
37 struct SkIRect; | 38 struct SkIRect; |
38 class SkMatrix; | 39 class SkMatrix; |
39 class SkPaint; | 40 class SkPaint; |
40 class SkPath; | 41 class SkPath; |
41 struct SkPoint; | 42 struct SkPoint; |
42 struct SkRect; | 43 struct SkRect; |
43 class SkRRect; | 44 class SkRRect; |
44 struct SkRSXform; | 45 struct SkRSXform; |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 friend class GrMSAAPathRenderer; // for access to drawBatch | 316 friend class GrMSAAPathRenderer; // for access to drawBatch |
316 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch | 317 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch |
317 friend class GrTessellatingPathRenderer; // for access to drawBatch | 318 friend class GrTessellatingPathRenderer; // for access to drawBatch |
318 | 319 |
319 bool drawFilledDRRect(const GrClip& clip, | 320 bool drawFilledDRRect(const GrClip& clip, |
320 const GrPaint& paint, | 321 const GrPaint& paint, |
321 const SkMatrix& viewMatrix, | 322 const SkMatrix& viewMatrix, |
322 const SkRRect& origOuter, | 323 const SkRRect& origOuter, |
323 const SkRRect& origInner); | 324 const SkRRect& origInner); |
324 | 325 |
325 GrDrawBatch* getFillRectBatch(const GrPaint& paint, | 326 bool drawFilledRect(const GrClip& clip, |
326 const SkMatrix& viewMatrix, | 327 const GrPaint& paint, |
327 const SkRect& rect, | 328 const SkMatrix& viewMatrix, |
328 bool* useHWAA); | 329 const SkRect& rect, |
| 330 const GrUserStencilSettings* ss); |
| 331 |
| 332 void drawNonAAFilledRect(const GrClip&, |
| 333 const GrPaint&, |
| 334 const SkMatrix& viewMatrix, |
| 335 const SkRect& rect, |
| 336 const SkRect* localRect, |
| 337 const SkMatrix* localMatrix, |
| 338 const GrUserStencilSettings* ss); |
329 | 339 |
330 void internalDrawPath(const GrClip& clip, | 340 void internalDrawPath(const GrClip& clip, |
331 const GrPaint& paint, | 341 const GrPaint& paint, |
332 const SkMatrix& viewMatrix, | 342 const SkMatrix& viewMatrix, |
333 const SkPath& path, | 343 const SkPath& path, |
334 const GrStyle& style); | 344 const GrStyle& style); |
335 | 345 |
336 // This entry point allows the GrTextContext-derived classes to add their ba
tches to | 346 // This entry point allows the GrTextContext-derived classes to add their ba
tches to |
337 // the drawTarget. | 347 // the drawTarget. |
338 void drawBatch(const GrPipelineBuilder& pipelineBuilder, const GrClip&, GrDr
awBatch* batch); | 348 void drawBatch(const GrPipelineBuilder& pipelineBuilder, const GrClip&, GrDr
awBatch* batch); |
(...skipping 11 matching lines...) Expand all Loading... |
350 GrInstancedPipelineInfo fInstancedPipelineInfo; | 360 GrInstancedPipelineInfo fInstancedPipelineInfo; |
351 | 361 |
352 SkSurfaceProps fSurfaceProps; | 362 SkSurfaceProps fSurfaceProps; |
353 GrAuditTrail* fAuditTrail; | 363 GrAuditTrail* fAuditTrail; |
354 | 364 |
355 // In debug builds we guard against improper thread handling | 365 // In debug builds we guard against improper thread handling |
356 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 366 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
357 }; | 367 }; |
358 | 368 |
359 #endif | 369 #endif |
OLD | NEW |