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

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

Issue 1825393002: Consolidate GPU buffer implementations (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: asserts Created 4 years, 9 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/GrTest.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 "GrSoftwarePathRenderer.h" 9 #include "GrSoftwarePathRenderer.h"
10 #include "GrContext.h" 10 #include "GrContext.h"
11 #include "GrSWMaskHelper.h" 11 #include "GrSWMaskHelper.h"
12 #include "GrVertexBuffer.h"
13 #include "batches/GrRectBatchFactory.h" 12 #include "batches/GrRectBatchFactory.h"
14 13
15 //////////////////////////////////////////////////////////////////////////////// 14 ////////////////////////////////////////////////////////////////////////////////
16 bool GrSoftwarePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const { 15 bool GrSoftwarePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const {
17 if (nullptr == fContext) { 16 if (nullptr == fContext) {
18 return false; 17 return false;
19 } 18 }
20 if (args.fStroke->isDashed()) { 19 if (args.fStroke->isDashed()) {
21 return false; 20 return false;
22 } 21 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 GrSWMaskHelper::DrawToTargetWithPathMask(texture, args.fTarget, args.fPipeli neBuilder, 141 GrSWMaskHelper::DrawToTargetWithPathMask(texture, args.fTarget, args.fPipeli neBuilder,
143 args.fColor, *args.fViewMatrix, dev PathBounds); 142 args.fColor, *args.fViewMatrix, dev PathBounds);
144 143
145 if (args.fPath->isInverseFillType()) { 144 if (args.fPath->isInverseFillType()) {
146 draw_around_inv_path(args.fTarget, args.fPipelineBuilder, args.fColor, * args.fViewMatrix, 145 draw_around_inv_path(args.fTarget, args.fPipelineBuilder, args.fColor, * args.fViewMatrix,
147 devClipBounds, devPathBounds); 146 devClipBounds, devPathBounds);
148 } 147 }
149 148
150 return true; 149 return true;
151 } 150 }
OLDNEW
« no previous file with comments | « src/gpu/GrResourceProvider.cpp ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698