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

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

Issue 13468004: Make drawRect preserve vertex attrib state and push/pop the geom sources. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/gpu/GrAARectRenderer.cpp » ('j') | src/gpu/GrDrawTarget.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 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 "GrAAHairLinePathRenderer.h" 9 #include "GrAAHairLinePathRenderer.h"
10 10
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 drawState->setEffect(kEdgeEffectStage, hairQuadEffect, kEdgeAttrIndex)->unre f(); 633 drawState->setEffect(kEdgeEffectStage, hairQuadEffect, kEdgeAttrIndex)->unre f();
634 while (quads < quadCnt) { 634 while (quads < quadCnt) {
635 int n = GrMin(quadCnt - quads, kNumQuadsInIdxBuffer); 635 int n = GrMin(quadCnt - quads, kNumQuadsInIdxBuffer);
636 target->drawIndexed(kTriangles_GrPrimitiveType, 636 target->drawIndexed(kTriangles_GrPrimitiveType,
637 4 * lineCnt + kVertsPerQuad*quads, // startV 637 4 * lineCnt + kVertsPerQuad*quads, // startV
638 0, // startI 638 0, // startI
639 kVertsPerQuad*n, // vCount 639 kVertsPerQuad*n, // vCount
640 kIdxsPerQuad*n); // iCount 640 kIdxsPerQuad*n); // iCount
641 quads += n; 641 quads += n;
642 } 642 }
643 target->resetIndexSource();
643 644
644 return true; 645 return true;
645 } 646 }
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrAARectRenderer.cpp » ('j') | src/gpu/GrDrawTarget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698