OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrDrawTarget_DEFINED | 8 #ifndef GrDrawTarget_DEFINED |
9 #define GrDrawTarget_DEFINED | 9 #define GrDrawTarget_DEFINED |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 * Together these two functions flush all queued up draws to the Gpu. | 94 * Together these two functions flush all queued up draws to the Gpu. |
95 */ | 95 */ |
96 void prepareBatches(GrBatchFlushState* flushState); | 96 void prepareBatches(GrBatchFlushState* flushState); |
97 void drawBatches(GrBatchFlushState* flushState); | 97 void drawBatches(GrBatchFlushState* flushState); |
98 | 98 |
99 /** | 99 /** |
100 * Gets the capabilities of the draw target. | 100 * Gets the capabilities of the draw target. |
101 */ | 101 */ |
102 const GrCaps* caps() const { return fGpu->caps(); } | 102 const GrCaps* caps() const { return fGpu->caps(); } |
103 | 103 |
104 void drawBatch(const GrPipelineBuilder&, GrDrawBatch*); | 104 void drawBatch(const GrPipelineBuilder&, GrDrawBatch*, const SkIRect* scisso
rRect = nullptr); |
105 | 105 |
106 /** | 106 /** |
107 * Draws path into the stencil buffer. The fill must be either even/odd or | 107 * Draws path into the stencil buffer. The fill must be either even/odd or |
108 * winding (not inverse or hairline). It will respect the HW antialias flag | 108 * winding (not inverse or hairline). It will respect the HW antialias flag |
109 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve
r have an inverse | 109 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve
r have an inverse |
110 * fill with stencil path | 110 * fill with stencil path |
111 */ | 111 */ |
112 void stencilPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, const
GrPath*, | 112 void stencilPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, const
GrPath*, |
113 GrPathRendering::FillType); | 113 GrPathRendering::FillType); |
114 | 114 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 SkTDArray<GrDrawTarget*> fDependencies; | 258 SkTDArray<GrDrawTarget*> fDependencies; |
259 GrRenderTarget* fRenderTarget; | 259 GrRenderTarget* fRenderTarget; |
260 | 260 |
261 bool fDrawBatchBounds; | 261 bool fDrawBatchBounds; |
262 int fMaxBatchLookback; | 262 int fMaxBatchLookback; |
263 | 263 |
264 typedef SkRefCnt INHERITED; | 264 typedef SkRefCnt INHERITED; |
265 }; | 265 }; |
266 | 266 |
267 #endif | 267 #endif |
OLD | NEW |