Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: src/gpu/GrDrawTarget.cpp

Issue 761563002: First step to moving vertex attributes to the geometryProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more cleanup Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698