Chromium Code Reviews| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 * Together these two functions flush all queued up draws to the Gpu. | 98 * Together these two functions flush all queued up draws to the Gpu. |
| 99 */ | 99 */ |
| 100 void prepareBatches(GrBatchFlushState* flushState); | 100 void prepareBatches(GrBatchFlushState* flushState); |
| 101 void drawBatches(GrBatchFlushState* flushState); | 101 void drawBatches(GrBatchFlushState* flushState); |
| 102 | 102 |
| 103 /** | 103 /** |
| 104 * Gets the capabilities of the draw target. | 104 * Gets the capabilities of the draw target. |
| 105 */ | 105 */ |
| 106 const GrCaps* caps() const { return fGpu->caps(); } | 106 const GrCaps* caps() const { return fGpu->caps(); } |
| 107 | 107 |
| 108 /** | |
| 109 * Gets the pixel config of the underlying render target. | |
| 110 */ | |
| 111 GrPixelConfig config() const { return fRenderTarget->config(); } | |
|
bsalomon
2016/04/13 14:36:23
+Rob
robertphillips
2016/04/13 15:28:45
Commented in person but, can we make the getter mo
| |
| 112 | |
| 108 void drawBatch(const GrPipelineBuilder&, GrDrawBatch*, const SkIRect* scisso rRect = nullptr); | 113 void drawBatch(const GrPipelineBuilder&, GrDrawBatch*, const SkIRect* scisso rRect = nullptr); |
| 109 | 114 |
| 110 /** | 115 /** |
| 111 * Draws path into the stencil buffer. The fill must be either even/odd or | 116 * Draws path into the stencil buffer. The fill must be either even/odd or |
| 112 * winding (not inverse or hairline). It will respect the HW antialias flag | 117 * winding (not inverse or hairline). It will respect the HW antialias flag |
| 113 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve r have an inverse | 118 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve r have an inverse |
| 114 * fill with stencil path | 119 * fill with stencil path |
| 115 */ | 120 */ |
| 116 void stencilPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, const GrPath*, | 121 void stencilPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, const GrPath*, |
| 117 GrPathRendering::FillType); | 122 GrPathRendering::FillType); |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 259 GrRenderTarget* fRenderTarget; | 264 GrRenderTarget* fRenderTarget; |
| 260 | 265 |
| 261 bool fDrawBatchBounds; | 266 bool fDrawBatchBounds; |
| 262 int fMaxBatchLookback; | 267 int fMaxBatchLookback; |
| 263 int fMaxBatchLookahead; | 268 int fMaxBatchLookahead; |
| 264 | 269 |
| 265 typedef SkRefCnt INHERITED; | 270 typedef SkRefCnt INHERITED; |
| 266 }; | 271 }; |
| 267 | 272 |
| 268 #endif | 273 #endif |
| OLD | NEW |