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

Unified Diff: gm/gradients_2pt_conical.cpp

Issue 311373003: Fix Assert for gpu ConicalTwoPointGradient edgecase to be correct bounds. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix assert to check if zero start rad Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gradients_2pt_conical.cpp
diff --git a/gm/gradients_2pt_conical.cpp b/gm/gradients_2pt_conical.cpp
index 27f0da186d1dd324e943e6f2552269aab809ff17..5a6cec28feb02511f1be6625a35d09833248099c 100644
--- a/gm/gradients_2pt_conical.cpp
+++ b/gm/gradients_2pt_conical.cpp
@@ -194,6 +194,7 @@ static SkShader* Make2ConicalEdgeY(const SkPoint pts[2], const GradData& data,
data.fColors, data.fPos,
data.fCount, tm, 0, &localMatrix);
}
+
static SkShader* Make2ConicalZeroRadEdgeX(const SkPoint pts[2], const GradData& data,
SkShader::TileMode tm, const SkMatrix& localMatrix) {
SkPoint center0, center1;
« no previous file with comments | « no previous file | src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698