| 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 11 matching lines...) Expand all Loading... |
| 22 const GrStencilSettings& stencil, | 22 const GrStencilSettings& stencil, |
| 23 const GrScissorState& scissor, | 23 const GrScissorState& scissor, |
| 24 GrRenderTarget* renderTarget, | 24 GrRenderTarget* renderTarget, |
| 25 const GrPath* path) { | 25 const GrPath* path) { |
| 26 return SkNEW_ARGS(GrStencilPathBatch, (viewMatrix, useHWAA, stencil, sci
ssor, renderTarget, | 26 return SkNEW_ARGS(GrStencilPathBatch, (viewMatrix, useHWAA, stencil, sci
ssor, renderTarget, |
| 27 path)); | 27 path)); |
| 28 } | 28 } |
| 29 | 29 |
| 30 const char* name() const override { return "StencilPath"; } | 30 const char* name() const override { return "StencilPath"; } |
| 31 | 31 |
| 32 uint32_t renderTargetUniqueID() const { return fRenderTarget.get()->getUniqu
eID(); } | 32 uint32_t renderTargetUniqueID() const override { return fRenderTarget.get()-
>getUniqueID(); } |
| 33 | 33 |
| 34 SkString dumpInfo() const override { | 34 SkString dumpInfo() const override { |
| 35 SkString string; | 35 SkString string; |
| 36 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA); | 36 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA); |
| 37 return string; | 37 return string; |
| 38 } | 38 } |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 GrStencilPathBatch(const SkMatrix& viewMatrix, | 41 GrStencilPathBatch(const SkMatrix& viewMatrix, |
| 42 bool useHWAA, | 42 bool useHWAA, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 65 | 65 |
| 66 SkMatrix fViewMatrix; | 66 SkMatrix fViewMatrix; |
| 67 bool fUseHWAA; | 67 bool fUseHWAA; |
| 68 GrStencilSettings fStencil; | 68 GrStencilSettings fStencil; |
| 69 GrScissorState fScissor; | 69 GrScissorState fScissor; |
| 70 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; | 70 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; |
| 71 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath; | 71 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 #endif | 74 #endif |
| OLD | NEW |