| 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 | 9 |
| 10 | 10 |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 } | 368 } |
| 369 for (int s = 0; s < drawState.numCoverageStages(); ++s) { | 369 for (int s = 0; s < drawState.numCoverageStages(); ++s) { |
| 370 const GrProcessor* effect = drawState.getCoverageStage(s).getProcessor()
; | 370 const GrProcessor* effect = drawState.getCoverageStage(s).getProcessor()
; |
| 371 int numTextures = effect->numTextures(); | 371 int numTextures = effect->numTextures(); |
| 372 for (int t = 0; t < numTextures; ++t) { | 372 for (int t = 0; t < numTextures; ++t) { |
| 373 GrTexture* texture = effect->texture(t); | 373 GrTexture* texture = effect->texture(t); |
| 374 SkASSERT(texture->asRenderTarget() != drawState.getRenderTarget()); | 374 SkASSERT(texture->asRenderTarget() != drawState.getRenderTarget()); |
| 375 } | 375 } |
| 376 } | 376 } |
| 377 | 377 |
| 378 SkASSERT(drawState.validateVertexAttribs()); | |
| 379 #endif | 378 #endif |
| 380 if (NULL == drawState.getRenderTarget()) { | 379 if (NULL == drawState.getRenderTarget()) { |
| 381 return false; | 380 return false; |
| 382 } | 381 } |
| 383 return true; | 382 return true; |
| 384 } | 383 } |
| 385 | 384 |
| 386 bool GrDrawTarget::setupDstReadIfNecessary(GrDrawState* ds, | 385 bool GrDrawTarget::setupDstReadIfNecessary(GrDrawState* ds, |
| 387 GrDeviceCoordTexture* dstCopy, | 386 GrDeviceCoordTexture* dstCopy, |
| 388 const SkRect* drawBounds) { | 387 const SkRect* drawBounds) { |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1159 GrDrawState::AutoRestoreStencil* ars, | 1158 GrDrawState::AutoRestoreStencil* ars, |
| 1160 GrDrawState* ds, | 1159 GrDrawState* ds, |
| 1161 GrClipMaskManager::ScissorState* scissorState) { | 1160 GrClipMaskManager::ScissorState* scissorState) { |
| 1162 return fClipMaskManager.setupClipping(ds, | 1161 return fClipMaskManager.setupClipping(ds, |
| 1163 are, | 1162 are, |
| 1164 ars, | 1163 ars, |
| 1165 scissorState, | 1164 scissorState, |
| 1166 this->getClip(), | 1165 this->getClip(), |
| 1167 devBounds); | 1166 devBounds); |
| 1168 } | 1167 } |
| OLD | NEW |