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

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

Issue 1100073003: Extract gpu line dashing to GrDashLinePathRenderer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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
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 "GrStrokeInfo.h"
9
10 #include "SkDashPathPriv.h"
11
12 bool GrStrokeInfo::applyDash(SkPath* dst, GrStrokeInfo* dstStrokeInfo, const SkP ath& src) const {
13 if (this->isDashed()) {
14 const SkPathEffect::DashInfo& info = this->getDashInfo();
15 SkStrokeRec strokeRec = fStroke;
16 if (SkDashPath::FilterDashPath(dst, src, &strokeRec, NULL, info)) {
17 dstStrokeInfo->fStroke = strokeRec;
18 dstStrokeInfo->removeDash();
19 return true;
20 }
21 }
22 return false;
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698