OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "GrDrawTarget.h" | 9 #include "GrDrawTarget.h" |
10 | 10 |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 } | 378 } |
379 | 379 |
380 #endif | 380 #endif |
381 if (NULL == pipelineBuilder.getRenderTarget()) { | 381 if (NULL == pipelineBuilder.getRenderTarget()) { |
382 return false; | 382 return false; |
383 } | 383 } |
384 return true; | 384 return true; |
385 } | 385 } |
386 | 386 |
387 bool GrDrawTarget::setupDstReadIfNecessary(const GrPipelineBuilder& pipelineBuil
der, | 387 bool GrDrawTarget::setupDstReadIfNecessary(const GrPipelineBuilder& pipelineBuil
der, |
| 388 const GrProcOptInfo& colorPOI, |
| 389 const GrProcOptInfo& coveragePOI, |
388 GrDeviceCoordTexture* dstCopy, | 390 GrDeviceCoordTexture* dstCopy, |
389 const SkRect* drawBounds) { | 391 const SkRect* drawBounds) { |
390 if (!pipelineBuilder.willXPNeedDstCopy(*this->caps())) { | 392 if (!pipelineBuilder.willXPNeedDstCopy(*this->caps(), colorPOI, coveragePOI)
) { |
391 return true; | 393 return true; |
392 } | 394 } |
393 SkIRect copyRect; | 395 SkIRect copyRect; |
394 const GrClipData* clip = this->getClip(); | 396 const GrClipData* clip = this->getClip(); |
395 GrRenderTarget* rt = pipelineBuilder.getRenderTarget(); | 397 GrRenderTarget* rt = pipelineBuilder.getRenderTarget(); |
396 clip->getConservativeBounds(rt, ©Rect); | 398 clip->getConservativeBounds(rt, ©Rect); |
397 | 399 |
398 if (drawBounds) { | 400 if (drawBounds) { |
399 SkIRect drawIBounds; | 401 SkIRect drawIBounds; |
400 drawBounds->roundOut(&drawIBounds); | 402 drawBounds->roundOut(&drawIBounds); |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1210 GrPipelineBuilder::AutoRestoreStencil* ars, | 1212 GrPipelineBuilder::AutoRestoreStencil* ars, |
1211 GrScissorState* scissorState, | 1213 GrScissorState* scissorState, |
1212 const SkRect* devBounds) { | 1214 const SkRect* devBounds) { |
1213 return fClipMaskManager.setupClipping(pipelineBuilder, | 1215 return fClipMaskManager.setupClipping(pipelineBuilder, |
1214 are, | 1216 are, |
1215 ars, | 1217 ars, |
1216 scissorState, | 1218 scissorState, |
1217 this->getClip(), | 1219 this->getClip(), |
1218 devBounds); | 1220 devBounds); |
1219 } | 1221 } |
OLD | NEW |