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

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

Issue 1229143007: Start to propagate constness of GrPipelineBuilder up the stack (Closed) Base URL: https://skia.googlesource.com/skia.git@const-fix
Patch Set: rebase Created 5 years, 5 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
« no previous file with comments | « src/gpu/GrAAConvexPathRenderer.cpp ('k') | src/gpu/GrAAHairLinePathRenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 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 "GrAADistanceFieldPathRenderer.h" 9 #include "GrAADistanceFieldPathRenderer.h"
10 10
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 return false; 576 return false;
577 } 577 }
578 } 578 }
579 579
580 AADistanceFieldPathBatch::Geometry geometry(stroke); 580 AADistanceFieldPathBatch::Geometry geometry(stroke);
581 geometry.fPath = path; 581 geometry.fPath = path;
582 geometry.fAntiAlias = antiAlias; 582 geometry.fAntiAlias = antiAlias;
583 583
584 SkAutoTUnref<GrBatch> batch(AADistanceFieldPathBatch::Create(geometry, color , viewMatrix, 584 SkAutoTUnref<GrBatch> batch(AADistanceFieldPathBatch::Create(geometry, color , viewMatrix,
585 fAtlas, &fPathC ache, &fPathList)); 585 fAtlas, &fPathC ache, &fPathList));
586 target->drawBatch(pipelineBuilder, batch); 586 target->drawBatch(*pipelineBuilder, batch);
587 587
588 return true; 588 return true;
589 } 589 }
590 590
591 //////////////////////////////////////////////////////////////////////////////// /////////////////// 591 //////////////////////////////////////////////////////////////////////////////// ///////////////////
592 592
593 #ifdef GR_TEST_UTILS 593 #ifdef GR_TEST_UTILS
594 594
595 struct PathTestStruct { 595 struct PathTestStruct {
596 typedef GrAADistanceFieldPathRenderer::PathCache PathCache; 596 typedef GrAADistanceFieldPathRenderer::PathCache PathCache;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 geometry.fPath = GrTest::TestPath(random); 651 geometry.fPath = GrTest::TestPath(random);
652 geometry.fAntiAlias = random->nextBool(); 652 geometry.fAntiAlias = random->nextBool();
653 653
654 return AADistanceFieldPathBatch::Create(geometry, color, viewMatrix, 654 return AADistanceFieldPathBatch::Create(geometry, color, viewMatrix,
655 gTestStruct.fAtlas, 655 gTestStruct.fAtlas,
656 &gTestStruct.fPathCache, 656 &gTestStruct.fPathCache,
657 &gTestStruct.fPathList); 657 &gTestStruct.fPathList);
658 } 658 }
659 659
660 #endif 660 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrAAConvexPathRenderer.cpp ('k') | src/gpu/GrAAHairLinePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698