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

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

Issue 1229983003: Trivial cleanup of copying GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « src/gpu/GrClipMaskManager.cpp ('k') | no next file » | 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"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return true; 138 return true;
139 } 139 }
140 140
141 SkAutoTUnref<GrTexture> texture( 141 SkAutoTUnref<GrTexture> texture(
142 GrSWMaskHelper::DrawPathMaskToTexture(fContext, path, stroke, 142 GrSWMaskHelper::DrawPathMaskToTexture(fContext, path, stroke,
143 devPathBounds, 143 devPathBounds,
144 antiAlias, &viewMatrix)); 144 antiAlias, &viewMatrix));
145 if (NULL == texture) { 145 if (NULL == texture) {
146 return false; 146 return false;
147 } 147 }
148 148
robertphillips 2015/07/09 18:48:41 Can DrawToTargetWithPathMask take a "const GrPipel
149 GrPipelineBuilder copy = *pipelineBuilder; 149 GrSWMaskHelper::DrawToTargetWithPathMask(texture, target, pipelineBuilder, c olor, viewMatrix,
150 GrSWMaskHelper::DrawToTargetWithPathMask(texture, target, &copy, color, view Matrix,
151 devPathBounds); 150 devPathBounds);
152 151
153 if (path.isInverseFillType()) { 152 if (path.isInverseFillType()) {
154 draw_around_inv_path(target, pipelineBuilder, color, viewMatrix, devClip Bounds, 153 draw_around_inv_path(target, pipelineBuilder, color, viewMatrix, devClip Bounds,
155 devPathBounds); 154 devPathBounds);
156 } 155 }
157 156
158 return true; 157 return true;
159 } 158 }
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698