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

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

Issue 2165283002: Remove DrawFace enum from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: try again Created 4 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/GrResourceProvider.cpp ('k') | src/gpu/batches/GrDashLinePathRenderer.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 "GrSoftwarePathRenderer.h" 8 #include "GrSoftwarePathRenderer.h"
9 #include "GrAuditTrail.h" 9 #include "GrAuditTrail.h"
10 #include "GrClip.h" 10 #include "GrClip.h"
11 #include "GrPipelineBuilder.h"
11 #include "GrSWMaskHelper.h" 12 #include "GrSWMaskHelper.h"
12 #include "GrTextureProvider.h" 13 #include "GrTextureProvider.h"
13 #include "batches/GrRectBatchFactory.h" 14 #include "batches/GrRectBatchFactory.h"
14 15
15 //////////////////////////////////////////////////////////////////////////////// 16 ////////////////////////////////////////////////////////////////////////////////
16 bool GrSoftwarePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const { 17 bool GrSoftwarePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const {
17 // Pass on any style that applies. The caller will apply the style if a suit able renderer is 18 // Pass on any style that applies. The caller will apply the style if a suit able renderer is
18 // not found and try again with the new GrShape. 19 // not found and try again with the new GrShape.
19 return !args.fShape->style().applies() && SkToBool(fTexProvider); 20 return !args.fShape->style().applies() && SkToBool(fTexProvider);
20 } 21 }
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 devShapeBounds); 159 devShapeBounds);
159 160
160 if (inverseFilled) { 161 if (inverseFilled) {
161 DrawAroundInvPath(args.fDrawContext, *args.fPaint, args.fUserStencilSett ings, 162 DrawAroundInvPath(args.fDrawContext, *args.fPaint, args.fUserStencilSett ings,
162 *args.fClip, 163 *args.fClip,
163 *args.fViewMatrix, devClipBounds, devShapeBounds); 164 *args.fViewMatrix, devClipBounds, devShapeBounds);
164 } 165 }
165 166
166 return true; 167 return true;
167 } 168 }
OLDNEW
« no previous file with comments | « src/gpu/GrResourceProvider.cpp ('k') | src/gpu/batches/GrDashLinePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698