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 GrImmediateDrawTarget_DEFINED | 8 #ifndef GrImmediateDrawTarget_DEFINED |
9 #define GrImmediateDrawTarget_DEFINED | 9 #define GrImmediateDrawTarget_DEFINED |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 bool insideClip, | 30 bool insideClip, |
31 GrRenderTarget* renderTarget) override; | 31 GrRenderTarget* renderTarget) override; |
32 | 32 |
33 void discard(GrRenderTarget*) override; | 33 void discard(GrRenderTarget*) override; |
34 | 34 |
35 private: | 35 private: |
36 void onReset() override; | 36 void onReset() override; |
37 void onFlush() override; | 37 void onFlush() override; |
38 | 38 |
39 // overrides from GrDrawTarget | 39 // overrides from GrDrawTarget |
40 void onDrawBatch(GrBatch*) override; | 40 void onDrawBatch(GrDrawBatch*) override; |
41 void onStencilPath(const GrPipelineBuilder&, | 41 void onStencilPath(const GrPipelineBuilder&, |
42 const GrPathProcessor*, | 42 const GrPathProcessor*, |
43 const GrPath*, | 43 const GrPath*, |
44 const GrScissorState&, | 44 const GrScissorState&, |
45 const GrStencilSettings&) override { | 45 const GrStencilSettings&) override { |
46 SkFAIL("Only batch implemented\n"); | 46 SkFAIL("Only batch implemented\n"); |
47 } | 47 } |
48 void onDrawPath(const GrPathProcessor*, | 48 void onDrawPath(const GrPathProcessor*, |
49 const GrPath*, | 49 const GrPath*, |
50 const GrStencilSettings&, | 50 const GrStencilSettings&, |
(...skipping 21 matching lines...) Expand all Loading... |
72 | 72 |
73 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; } | 73 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; } |
74 | 74 |
75 GrBatchTarget fBatchTarget; | 75 GrBatchTarget fBatchTarget; |
76 uint32_t fDrawID; | 76 uint32_t fDrawID; |
77 | 77 |
78 typedef GrClipTarget INHERITED; | 78 typedef GrClipTarget INHERITED; |
79 }; | 79 }; |
80 | 80 |
81 #endif | 81 #endif |
OLD | NEW |