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

Side by Side Diff: src/gpu/GrAAConvexPathRenderer.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 | « gm/yuvtorgbeffect.cpp ('k') | src/gpu/GrAADistanceFieldPathRenderer.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 2012 Google Inc. 3 * Copyright 2012 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 "GrAAConvexPathRenderer.h" 9 #include "GrAAConvexPathRenderer.h"
10 10
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 if (path.isEmpty()) { 994 if (path.isEmpty()) {
995 return true; 995 return true;
996 } 996 }
997 997
998 AAConvexPathBatch::Geometry geometry; 998 AAConvexPathBatch::Geometry geometry;
999 geometry.fColor = color; 999 geometry.fColor = color;
1000 geometry.fViewMatrix = vm; 1000 geometry.fViewMatrix = vm;
1001 geometry.fPath = path; 1001 geometry.fPath = path;
1002 1002
1003 SkAutoTUnref<GrBatch> batch(AAConvexPathBatch::Create(geometry)); 1003 SkAutoTUnref<GrBatch> batch(AAConvexPathBatch::Create(geometry));
1004 target->drawBatch(pipelineBuilder, batch); 1004 target->drawBatch(*pipelineBuilder, batch);
1005 1005
1006 return true; 1006 return true;
1007 1007
1008 } 1008 }
1009 1009
1010 //////////////////////////////////////////////////////////////////////////////// /////////////////// 1010 //////////////////////////////////////////////////////////////////////////////// ///////////////////
1011 1011
1012 #ifdef GR_TEST_UTILS 1012 #ifdef GR_TEST_UTILS
1013 1013
1014 BATCH_TEST_DEFINE(AAConvexPathBatch) { 1014 BATCH_TEST_DEFINE(AAConvexPathBatch) {
1015 AAConvexPathBatch::Geometry geometry; 1015 AAConvexPathBatch::Geometry geometry;
1016 geometry.fColor = GrRandomColor(random); 1016 geometry.fColor = GrRandomColor(random);
1017 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); 1017 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random);
1018 geometry.fPath = GrTest::TestPathConvex(random); 1018 geometry.fPath = GrTest::TestPathConvex(random);
1019 1019
1020 return AAConvexPathBatch::Create(geometry); 1020 return AAConvexPathBatch::Create(geometry);
1021 } 1021 }
1022 1022
1023 #endif 1023 #endif
OLDNEW
« no previous file with comments | « gm/yuvtorgbeffect.cpp ('k') | src/gpu/GrAADistanceFieldPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698