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

Side by Side Diff: src/gpu/batches/GrTessellatingPathRenderer.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/batches/GrStencilAndCoverPathRenderer.cpp ('k') | src/gpu/text/GrAtlasTextBlob.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 2015 Google Inc. 2 * Copyright 2015 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 "GrTessellatingPathRenderer.h" 8 #include "GrTessellatingPathRenderer.h"
9 9
10 #include "GrAuditTrail.h" 10 #include "GrAuditTrail.h"
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 SkMatrix vmi; 291 SkMatrix vmi;
292 if (!args.fViewMatrix->invert(&vmi)) { 292 if (!args.fViewMatrix->invert(&vmi)) {
293 return false; 293 return false;
294 } 294 }
295 vmi.mapRect(&clipBounds); 295 vmi.mapRect(&clipBounds);
296 SkAutoTUnref<GrDrawBatch> batch(TessellatingPathBatch::Create(args.fColor, * args.fPath, 296 SkAutoTUnref<GrDrawBatch> batch(TessellatingPathBatch::Create(args.fColor, * args.fPath,
297 *args.fStyle, *args.fViewMatrix, 297 *args.fStyle, *args.fViewMatrix,
298 clipBounds)); 298 clipBounds));
299 299
300 GrPipelineBuilder pipelineBuilder(*args.fPaint, args.fDrawContext->isUnified Multisampled()); 300 GrPipelineBuilder pipelineBuilder(*args.fPaint, args.fDrawContext->isUnified Multisampled());
301 pipelineBuilder.setRenderTarget(args.fDrawContext->accessRenderTarget());
302 pipelineBuilder.setUserStencil(args.fUserStencilSettings); 301 pipelineBuilder.setUserStencil(args.fUserStencilSettings);
303 302
304 args.fDrawContext->drawBatch(pipelineBuilder, *args.fClip, batch); 303 args.fDrawContext->drawBatch(pipelineBuilder, *args.fClip, batch);
305 304
306 return true; 305 return true;
307 } 306 }
308 307
309 //////////////////////////////////////////////////////////////////////////////// /////////////////// 308 //////////////////////////////////////////////////////////////////////////////// ///////////////////
310 309
311 #ifdef GR_TEST_UTILS 310 #ifdef GR_TEST_UTILS
(...skipping 10 matching lines...) Expand all
322 } 321 }
323 vmi.mapRect(&clipBounds); 322 vmi.mapRect(&clipBounds);
324 GrStyle style; 323 GrStyle style;
325 do { 324 do {
326 GrTest::TestStyle(random, &style); 325 GrTest::TestStyle(random, &style);
327 } while (style.strokeRec().isHairlineStyle()); 326 } while (style.strokeRec().isHairlineStyle());
328 return TessellatingPathBatch::Create(color, path, style, viewMatrix, clipBou nds); 327 return TessellatingPathBatch::Create(color, path, style, viewMatrix, clipBou nds);
329 } 328 }
330 329
331 #endif 330 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrStencilAndCoverPathRenderer.cpp ('k') | src/gpu/text/GrAtlasTextBlob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698