Chromium Code Reviews| 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 315 friend class GrMSAAPathRenderer; // for access to drawBatch | 315 friend class GrMSAAPathRenderer; // for access to drawBatch |
| 316 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch | 316 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch |
| 317 friend class GrTessellatingPathRenderer; // for access to drawBatch | 317 friend class GrTessellatingPathRenderer; // for access to drawBatch |
| 318 | 318 |
| 319 bool drawFilledDRRect(const GrClip& clip, | 319 bool drawFilledDRRect(const GrClip& clip, |
| 320 const GrPaint& paint, | 320 const GrPaint& paint, |
| 321 const SkMatrix& viewMatrix, | 321 const SkMatrix& viewMatrix, |
| 322 const SkRRect& origOuter, | 322 const SkRRect& origOuter, |
| 323 const SkRRect& origInner); | 323 const SkRRect& origInner); |
| 324 | 324 |
| 325 GrDrawBatch* getFillRectBatch(const GrPaint& paint, | 325 // Returns false if the draw should be skipped entirely. |
| 326 const SkMatrix& viewMatrix, | 326 bool getFillRectBatch(const GrClip& clip, |
| 327 const SkRect& rect, | 327 const GrPaint& paint, |
| 328 bool* useHWAA); | 328 const SkMatrix& viewMatrix, |
| 329 const SkRect& rect, | |
| 330 SkAutoTUnref<GrDrawBatch>* batch, | |
|
csmartdalton
2016/07/08 21:20:45
I'm not sure I like this approach. Would it be bet
robertphillips
2016/07/08 22:39:48
If you update to ToT this call should be replaced
csmartdalton
2016/07/11 03:17:56
Done. Much better!
| |
| 331 bool* useHWAA); | |
| 329 | 332 |
| 330 void internalDrawPath(const GrClip& clip, | 333 void internalDrawPath(const GrClip& clip, |
| 331 const GrPaint& paint, | 334 const GrPaint& paint, |
| 332 const SkMatrix& viewMatrix, | 335 const SkMatrix& viewMatrix, |
| 333 const SkPath& path, | 336 const SkPath& path, |
| 334 const GrStyle& style); | 337 const GrStyle& style); |
| 335 | 338 |
| 336 // This entry point allows the GrTextContext-derived classes to add their ba tches to | 339 // This entry point allows the GrTextContext-derived classes to add their ba tches to |
| 337 // the drawTarget. | 340 // the drawTarget. |
| 338 void drawBatch(const GrPipelineBuilder& pipelineBuilder, const GrClip&, GrDr awBatch* batch); | 341 void drawBatch(const GrPipelineBuilder& pipelineBuilder, const GrClip&, GrDr awBatch* batch); |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 350 GrInstancedPipelineInfo fInstancedPipelineInfo; | 353 GrInstancedPipelineInfo fInstancedPipelineInfo; |
| 351 | 354 |
| 352 SkSurfaceProps fSurfaceProps; | 355 SkSurfaceProps fSurfaceProps; |
| 353 GrAuditTrail* fAuditTrail; | 356 GrAuditTrail* fAuditTrail; |
| 354 | 357 |
| 355 // In debug builds we guard against improper thread handling | 358 // In debug builds we guard against improper thread handling |
| 356 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 359 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
| 357 }; | 360 }; |
| 358 | 361 |
| 359 #endif | 362 #endif |
| OLD | NEW |