| 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 13 matching lines...) Expand all Loading... |
| 24 const GrStencilSettings& stencil, | 24 const GrStencilSettings& stencil, |
| 25 const GrScissorState& scissor, | 25 const GrScissorState& scissor, |
| 26 GrRenderTarget* renderTarget, | 26 GrRenderTarget* renderTarget, |
| 27 const GrPath* path) { | 27 const GrPath* path) { |
| 28 return new GrStencilPathBatch(viewMatrix, useHWAA, stencil, scissor, ren
derTarget, path); | 28 return new GrStencilPathBatch(viewMatrix, useHWAA, stencil, scissor, ren
derTarget, path); |
| 29 } | 29 } |
| 30 | 30 |
| 31 const char* name() const override { return "StencilPath"; } | 31 const char* name() const override { return "StencilPath"; } |
| 32 | 32 |
| 33 uint32_t renderTargetUniqueID() const override { return fRenderTarget.get()-
>getUniqueID(); } | 33 uint32_t renderTargetUniqueID() const override { return fRenderTarget.get()-
>getUniqueID(); } |
| 34 GrRenderTarget* renderTarget() const override { return fRenderTarget.get();
} |
| 34 | 35 |
| 35 SkString dumpInfo() const override { | 36 SkString dumpInfo() const override { |
| 36 SkString string; | 37 SkString string; |
| 37 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA); | 38 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA); |
| 38 return string; | 39 return string; |
| 39 } | 40 } |
| 40 | 41 |
| 41 private: | 42 private: |
| 42 GrStencilPathBatch(const SkMatrix& viewMatrix, | 43 GrStencilPathBatch(const SkMatrix& viewMatrix, |
| 43 bool useHWAA, | 44 bool useHWAA, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 69 bool fUseHWAA; | 70 bool fUseHWAA; |
| 70 GrStencilSettings fStencil; | 71 GrStencilSettings fStencil; |
| 71 GrScissorState fScissor; | 72 GrScissorState fScissor; |
| 72 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; | 73 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; |
| 73 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath; | 74 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath; |
| 74 | 75 |
| 75 typedef GrBatch INHERITED; | 76 typedef GrBatch INHERITED; |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 #endif | 79 #endif |
| OLD | NEW |