| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 GrPathRenderingDrawContext_DEFINED | 8 #ifndef GrPathRenderingDrawContext_DEFINED |
| 9 #define GrPathRenderingDrawContext_DEFINED | 9 #define GrPathRenderingDrawContext_DEFINED |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 const SkScalar pos[], int scalarsPerPosition, | 22 const SkScalar pos[], int scalarsPerPosition, |
| 23 const SkPoint& offset, const SkIRect& clipBounds) override; | 23 const SkPoint& offset, const SkIRect& clipBounds) override; |
| 24 void drawTextBlob(const GrClip&, const SkPaint&, | 24 void drawTextBlob(const GrClip&, const SkPaint&, |
| 25 const SkMatrix& viewMatrix, const SkTextBlob*, | 25 const SkMatrix& viewMatrix, const SkTextBlob*, |
| 26 SkScalar x, SkScalar y, | 26 SkScalar x, SkScalar y, |
| 27 SkDrawFilter*, const SkIRect& clipBounds) override; | 27 SkDrawFilter*, const SkIRect& clipBounds) override; |
| 28 protected: | 28 protected: |
| 29 GrPathRenderingDrawContext(GrContext* ctx, GrDrawingManager* mgr, GrRenderTa
rget* rt, | 29 GrPathRenderingDrawContext(GrContext* ctx, GrDrawingManager* mgr, GrRenderTa
rget* rt, |
| 30 const SkSurfaceProps* surfaceProps, GrAuditTrail*
at, | 30 const SkSurfaceProps* surfaceProps, GrAuditTrail*
at, |
| 31 GrSingleOwner* so) | 31 GrSingleOwner* so) |
| 32 : INHERITED(ctx, mgr, rt, surfaceProps, at, so) | 32 : INHERITED(ctx, mgr, rt, surfaceProps, at, so) {} |
| 33 , fStencilAndCoverTextContext(nullptr) {} | |
| 34 | 33 |
| 35 private: | 34 private: |
| 36 GrStencilAndCoverTextContext* fStencilAndCoverTextContext; | 35 SkAutoTDelete<GrStencilAndCoverTextContext> fStencilAndCoverTextContext; |
| 37 | 36 |
| 38 friend class GrDrawingManager; // for ctor | 37 friend class GrDrawingManager; // for ctor |
| 39 | 38 |
| 40 typedef GrDrawContext INHERITED; | 39 typedef GrDrawContext INHERITED; |
| 41 }; | 40 }; |
| 42 | 41 |
| 43 #endif | 42 #endif |
| OLD | NEW |