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

Side by Side Diff: src/gpu/batches/GrAAConvexPathRenderer.cpp

Issue 1988923002: Remove GrRenderTarget from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 4 years, 6 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/GrStencilAttachment.h ('k') | src/gpu/batches/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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrAAConvexPathRenderer.h" 8 #include "GrAAConvexPathRenderer.h"
9 9
10 #include "GrAAConvexTessellator.h" 10 #include "GrAAConvexTessellator.h"
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 } 1002 }
1003 1003
1004 AAConvexPathBatch::Geometry geometry; 1004 AAConvexPathBatch::Geometry geometry;
1005 geometry.fColor = args.fColor; 1005 geometry.fColor = args.fColor;
1006 geometry.fViewMatrix = *args.fViewMatrix; 1006 geometry.fViewMatrix = *args.fViewMatrix;
1007 geometry.fPath = *args.fPath; 1007 geometry.fPath = *args.fPath;
1008 1008
1009 SkAutoTUnref<GrDrawBatch> batch(AAConvexPathBatch::Create(geometry)); 1009 SkAutoTUnref<GrDrawBatch> batch(AAConvexPathBatch::Create(geometry));
1010 1010
1011 GrPipelineBuilder pipelineBuilder(*args.fPaint, args.fDrawContext->isUnified Multisampled()); 1011 GrPipelineBuilder pipelineBuilder(*args.fPaint, args.fDrawContext->isUnified Multisampled());
1012 pipelineBuilder.setRenderTarget(args.fDrawContext->accessRenderTarget());
1013 pipelineBuilder.setUserStencil(args.fUserStencilSettings); 1012 pipelineBuilder.setUserStencil(args.fUserStencilSettings);
1014 1013
1015 args.fDrawContext->drawBatch(pipelineBuilder, *args.fClip, batch); 1014 args.fDrawContext->drawBatch(pipelineBuilder, *args.fClip, batch);
1016 1015
1017 return true; 1016 return true;
1018 1017
1019 } 1018 }
1020 1019
1021 //////////////////////////////////////////////////////////////////////////////// /////////////////// 1020 //////////////////////////////////////////////////////////////////////////////// ///////////////////
1022 1021
1023 #ifdef GR_TEST_UTILS 1022 #ifdef GR_TEST_UTILS
1024 1023
1025 DRAW_BATCH_TEST_DEFINE(AAConvexPathBatch) { 1024 DRAW_BATCH_TEST_DEFINE(AAConvexPathBatch) {
1026 AAConvexPathBatch::Geometry geometry; 1025 AAConvexPathBatch::Geometry geometry;
1027 geometry.fColor = GrRandomColor(random); 1026 geometry.fColor = GrRandomColor(random);
1028 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); 1027 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random);
1029 geometry.fPath = GrTest::TestPathConvex(random); 1028 geometry.fPath = GrTest::TestPathConvex(random);
1030 1029
1031 return AAConvexPathBatch::Create(geometry); 1030 return AAConvexPathBatch::Create(geometry);
1032 } 1031 }
1033 1032
1034 #endif 1033 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrStencilAttachment.h ('k') | src/gpu/batches/GrAADistanceFieldPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698