| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 for (int s = 0; s < GrDrawState::kNumStages; ++s) { | 385 for (int s = 0; s < GrDrawState::kNumStages; ++s) { |
| 386 if (drawState.isStageEnabled(s)) { | 386 if (drawState.isStageEnabled(s)) { |
| 387 const GrEffectRef& effect = *drawState.getStage(s).getEffect(); | 387 const GrEffectRef& effect = *drawState.getStage(s).getEffect(); |
| 388 int numTextures = effect->numTextures(); | 388 int numTextures = effect->numTextures(); |
| 389 for (int t = 0; t < numTextures; ++t) { | 389 for (int t = 0; t < numTextures; ++t) { |
| 390 GrTexture* texture = effect->texture(t); | 390 GrTexture* texture = effect->texture(t); |
| 391 GrAssert(texture->asRenderTarget() != drawState.getRenderTarget(
)); | 391 GrAssert(texture->asRenderTarget() != drawState.getRenderTarget(
)); |
| 392 } | 392 } |
| 393 } | 393 } |
| 394 } | 394 } |
| 395 |
| 396 GrAssert(drawState.validateVertexAttribs()); |
| 395 #endif | 397 #endif |
| 396 if (NULL == drawState.getRenderTarget()) { | 398 if (NULL == drawState.getRenderTarget()) { |
| 397 return false; | 399 return false; |
| 398 } | 400 } |
| 399 return true; | 401 return true; |
| 400 } | 402 } |
| 401 | 403 |
| 402 void GrDrawTarget::drawIndexed(GrPrimitiveType type, | 404 void GrDrawTarget::drawIndexed(GrPrimitiveType type, |
| 403 int startVertex, | 405 int startVertex, |
| 404 int startIndex, | 406 int startIndex, |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 GrPrintf("HW AA Lines Support : %s\n", gNY[fInternals.fHWAALineSuppo
rt]); | 689 GrPrintf("HW AA Lines Support : %s\n", gNY[fInternals.fHWAALineSuppo
rt]); |
| 688 GrPrintf("Shader Derivative Support : %s\n", gNY[fInternals.fShaderDerivat
iveSupport]); | 690 GrPrintf("Shader Derivative Support : %s\n", gNY[fInternals.fShaderDerivat
iveSupport]); |
| 689 GrPrintf("Geometry Shader Support : %s\n", gNY[fInternals.fGeometryShade
rSupport]); | 691 GrPrintf("Geometry Shader Support : %s\n", gNY[fInternals.fGeometryShade
rSupport]); |
| 690 GrPrintf("FSAA Support : %s\n", gNY[fInternals.fFSAASupport])
; | 692 GrPrintf("FSAA Support : %s\n", gNY[fInternals.fFSAASupport])
; |
| 691 GrPrintf("Dual Source Blending Support: %s\n", gNY[fInternals.fDualSourceBle
ndingSupport]); | 693 GrPrintf("Dual Source Blending Support: %s\n", gNY[fInternals.fDualSourceBle
ndingSupport]); |
| 692 GrPrintf("Buffer Lock Support : %s\n", gNY[fInternals.fBufferLockSup
port]); | 694 GrPrintf("Buffer Lock Support : %s\n", gNY[fInternals.fBufferLockSup
port]); |
| 693 GrPrintf("Path Stenciling Support : %s\n", gNY[fInternals.fPathStencilin
gSupport]); | 695 GrPrintf("Path Stenciling Support : %s\n", gNY[fInternals.fPathStencilin
gSupport]); |
| 694 GrPrintf("Max Texture Size : %d\n", fInternals.fMaxTextureSize); | 696 GrPrintf("Max Texture Size : %d\n", fInternals.fMaxTextureSize); |
| 695 GrPrintf("Max Render Target Size : %d\n", fInternals.fMaxRenderTargetSi
ze); | 697 GrPrintf("Max Render Target Size : %d\n", fInternals.fMaxRenderTargetSi
ze); |
| 696 } | 698 } |
| OLD | NEW |