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

Unified Diff: src/gpu/GrStyle.h

Issue 1967513002: Revert of Replace GrStrokeInfo with GrStyle. (Closed) Base URL: https://chromium.googlesource.com/skia.git@resscale
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrStrokeInfo.cpp ('k') | src/gpu/GrTestUtils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrStyle.h
diff --git a/src/gpu/GrStyle.h b/src/gpu/GrStyle.h
index 07efb40866b91df4f9fbbfd9bef3763c0712d3e2..6166b56fb707eafffcc013b160b71dc0c1478247 100644
--- a/src/gpu/GrStyle.h
+++ b/src/gpu/GrStyle.h
@@ -85,11 +85,6 @@
this->initPathEffect(paint.getPathEffect());
}
- explicit GrStyle(const SkPaint& paint, SkPaint::Style overrideStyle)
- : fStrokeRec(paint, overrideStyle) {
- this->initPathEffect(paint.getPathEffect());
- }
-
GrStyle& operator=(const GrStyle& that) {
fPathEffect = that.fPathEffect;
fDashInfo = that.fDashInfo;
@@ -138,12 +133,6 @@
return this->pathEffect() || (!fStrokeRec.isFillStyle() && !fStrokeRec.isHairlineStyle());
}
- static SkScalar MatrixToScaleFactor(const SkMatrix& matrix) {
- // getMaxScale will return -1 if the matrix has perspective. In that case we can use a scale
- // factor of 1. This isn't necessarily a good choice and in the future we might consider
- // taking a bounds here for the perspective case.
- return SkScalarAbs(matrix.getMaxScale());
- }
/**
* Applies just the path effect and returns remaining stroke information. This will fail if
* there is no path effect. dst may or may not have been overwritten on failure. Scale controls
« no previous file with comments | « src/gpu/GrStrokeInfo.cpp ('k') | src/gpu/GrTestUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698