| 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 GrStencilPathBatch_DEFINED | 8 #ifndef GrStencilPathBatch_DEFINED |
| 9 #define GrStencilPathBatch_DEFINED | 9 #define GrStencilPathBatch_DEFINED |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 const char* name() const override { return "StencilPath"; } | 34 const char* name() const override { return "StencilPath"; } |
| 35 | 35 |
| 36 uint32_t renderTargetUniqueID() const override { return fRenderTarget.get()-
>getUniqueID(); } | 36 uint32_t renderTargetUniqueID() const override { return fRenderTarget.get()-
>getUniqueID(); } |
| 37 GrRenderTarget* renderTarget() const override { return fRenderTarget.get();
} | 37 GrRenderTarget* renderTarget() const override { return fRenderTarget.get();
} |
| 38 | 38 |
| 39 SkString dumpInfo() const override { | 39 SkString dumpInfo() const override { |
| 40 SkString string; | 40 SkString string; |
| 41 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA); | 41 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA); |
| 42 string.append(INHERITED::dumpInfo()); |
| 42 return string; | 43 return string; |
| 43 } | 44 } |
| 44 | 45 |
| 45 private: | 46 private: |
| 46 GrStencilPathBatch(const SkMatrix& viewMatrix, | 47 GrStencilPathBatch(const SkMatrix& viewMatrix, |
| 47 bool useHWAA, | 48 bool useHWAA, |
| 48 GrPathRendering::FillType fillType, | 49 GrPathRendering::FillType fillType, |
| 49 bool hasStencilClip, | 50 bool hasStencilClip, |
| 50 int numStencilBits, | 51 int numStencilBits, |
| 51 const GrScissorState& scissor, | 52 const GrScissorState& scissor, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 75 bool fUseHWAA; | 76 bool fUseHWAA; |
| 76 GrStencilSettings fStencil; | 77 GrStencilSettings fStencil; |
| 77 GrScissorState fScissor; | 78 GrScissorState fScissor; |
| 78 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; | 79 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; |
| 79 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath; | 80 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath; |
| 80 | 81 |
| 81 typedef GrBatch INHERITED; | 82 typedef GrBatch INHERITED; |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 #endif | 85 #endif |
| OLD | NEW |