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

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

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