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

Unified Diff: bench/GradientBench.cpp

Issue 18259012: Gradient Fixes (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fixed name of GM:gradient_dirty_laundry Created 7 years, 5 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 | gm/gradientDirtyLaundry.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/GradientBench.cpp
diff --git a/bench/GradientBench.cpp b/bench/GradientBench.cpp
index 2787edbf0b21dbbcd8c2de7138d30107ea6359a3..02df14825be6ff81977d41d05b45c9faeb8f143a 100644
--- a/bench/GradientBench.cpp
+++ b/bench/GradientBench.cpp
@@ -22,20 +22,11 @@ struct GradData {
};
static const SkColor gColors[] = {
- SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE, SK_ColorWHITE, SK_ColorBLACK
-};
-static const SkScalar gPos0[] = { 0, SK_Scalar1 };
-static const SkScalar gPos1[] = { SK_Scalar1/4, SK_Scalar1*3/4 };
-static const SkScalar gPos2[] = {
- 0, SK_Scalar1/8, SK_Scalar1/2, SK_Scalar1*7/8, SK_Scalar1
+ SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE, SK_ColorWHITE, SK_ColorBLACK,
};
static const GradData gGradData[] = {
{ 2, gColors, NULL },
- { 2, gColors, gPos0 },
- { 2, gColors, gPos1 },
- { 5, gColors, NULL },
- { 5, gColors, gPos2 }
};
/// Ignores scale
« no previous file with comments | « no previous file | gm/gradientDirtyLaundry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698