| 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 GrTargetCommands_DEFINED | 8 #ifndef GrTargetCommands_DEFINED |
| 9 #define GrTargetCommands_DEFINED | 9 #define GrTargetCommands_DEFINED |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 const float transformValues[], | 118 const float transformValues[], |
| 119 GrDrawTarget::PathTransformType , | 119 GrDrawTarget::PathTransformType , |
| 120 int, | 120 int, |
| 121 const GrStencilSettings&, | 121 const GrStencilSettings&, |
| 122 const GrDrawTarget::PipelineInfo&); | 122 const GrDrawTarget::PipelineInfo&); |
| 123 Cmd* recordClear(GrInOrderDrawBuffer*, | 123 Cmd* recordClear(GrInOrderDrawBuffer*, |
| 124 const SkIRect* rect, | 124 const SkIRect* rect, |
| 125 GrColor, | 125 GrColor, |
| 126 bool canIgnoreRect, | 126 bool canIgnoreRect, |
| 127 GrRenderTarget*); | 127 GrRenderTarget*); |
| 128 Cmd* recordCopySurface(GrInOrderDrawBuffer*, | 128 Cmd* recordCopySurface(GrSurface* dst, |
| 129 GrSurface* dst, | |
| 130 GrSurface* src, | 129 GrSurface* src, |
| 131 const SkIRect& srcRect, | 130 const SkIRect& srcRect, |
| 132 const SkIPoint& dstPoint); | 131 const SkIPoint& dstPoint); |
| 133 | 132 |
| 134 protected: | 133 protected: |
| 135 void willReserveVertexAndIndexSpace(int vertexCount, | 134 void willReserveVertexAndIndexSpace(int vertexCount, |
| 136 size_t vertexStride, | 135 size_t vertexStride, |
| 137 int indexCount); | 136 int indexCount); |
| 138 | 137 |
| 139 private: | 138 private: |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 // TODO hack until batch is everywhere | 314 // TODO hack until batch is everywhere |
| 316 GrTargetCommands::DrawBatch* fDrawBatch; | 315 GrTargetCommands::DrawBatch* fDrawBatch; |
| 317 | 316 |
| 318 // This will go away when everything uses batch. However, in the short ter
m anything which | 317 // This will go away when everything uses batch. However, in the short ter
m anything which |
| 319 // might be put into the GrInOrderDrawBuffer needs to make sure it closes t
he last batch | 318 // might be put into the GrInOrderDrawBuffer needs to make sure it closes t
he last batch |
| 320 void closeBatch(); | 319 void closeBatch(); |
| 321 }; | 320 }; |
| 322 | 321 |
| 323 #endif | 322 #endif |
| 324 | 323 |
| OLD | NEW |