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

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

Issue 1306143005: Move Pathrenderers to batches folder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 3 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/GrDashLinePathRenderer.h ('k') | src/gpu/GrStencilAndCoverPathRenderer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "GrDashLinePathRenderer.h"
9
10 #include "GrGpu.h"
11 #include "effects/GrDashingEffect.h"
12
13 bool GrDashLinePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const {
14 SkPoint pts[2];
15 if (args.fStroke->isDashed() && args.fPath->isLine(pts)) {
16 return GrDashingEffect::CanDrawDashLine(pts, *args.fStroke, *args.fViewM atrix);
17 }
18 return false;
19 }
20
21 bool GrDashLinePathRenderer::onDrawPath(const DrawPathArgs& args) {
22 SkPoint pts[2];
23 SkAssertResult(args.fPath->isLine(pts));
24 return GrDashingEffect::DrawDashLine(args.fTarget, *args.fPipelineBuilder, a rgs.fColor,
25 *args.fViewMatrix, pts, args.fAntiAlias , *args.fStroke);
26 }
OLDNEW
« no previous file with comments | « src/gpu/GrDashLinePathRenderer.h ('k') | src/gpu/GrStencilAndCoverPathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698