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