| 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();
} | |
| 35 | 34 |
| 36 SkString dumpInfo() const override { | 35 SkString dumpInfo() const override { |
| 37 SkString string; | 36 SkString string; |
| 38 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA); | 37 string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA); |
| 39 return string; | 38 return string; |
| 40 } | 39 } |
| 41 | 40 |
| 42 private: | 41 private: |
| 43 GrStencilPathBatch(const SkMatrix& viewMatrix, | 42 GrStencilPathBatch(const SkMatrix& viewMatrix, |
| 44 bool useHWAA, | 43 bool useHWAA, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 70 bool fUseHWAA; | 69 bool fUseHWAA; |
| 71 GrStencilSettings fStencil; | 70 GrStencilSettings fStencil; |
| 72 GrScissorState fScissor; | 71 GrScissorState fScissor; |
| 73 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; | 72 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; |
| 74 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath; | 73 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath; |
| 75 | 74 |
| 76 typedef GrBatch INHERITED; | 75 typedef GrBatch INHERITED; |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 #endif | 78 #endif |
| OLD | NEW |