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

Side by Side Diff: gm/gammatext.cpp

Issue 943673002: Revert of disable gammatext gm for a while, looking for other flakes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkPath.h" 10 #include "SkPath.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 y += paint.getTextSize() * 2; 88 y += paint.getTextSize() * 2;
89 } 89 }
90 x += SkIntToScalar(1024) / SK_ARRAY_COUNT(fg); 90 x += SkIntToScalar(1024) / SK_ARRAY_COUNT(fg);
91 } 91 }
92 } 92 }
93 93
94 private: 94 private:
95 typedef skiagm::GM INHERITED; 95 typedef skiagm::GM INHERITED;
96 }; 96 };
97 97
98 // TEMP disable to see if nothing else flakes <reed> 98 DEF_GM( return new GammaTextGM; )
99 //DEF_GM( return new GammaTextGM; )
100 99
101 ////////////////////////////////////////////////////////////////////////////// 100 //////////////////////////////////////////////////////////////////////////////
102 101
103 static SkShader* make_gradient(SkColor c) { 102 static SkShader* make_gradient(SkColor c) {
104 const SkPoint pts[] = { { 0, 0 }, { 240, 0 } }; 103 const SkPoint pts[] = { { 0, 0 }, { 240, 0 } };
105 SkColor colors[2]; 104 SkColor colors[2];
106 colors[0] = c; 105 colors[0] = c;
107 colors[1] = SkColorSetA(c, 0); 106 colors[1] = SkColorSetA(c, 0);
108 return SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp _TileMode); 107 return SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp _TileMode);
109 } 108 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 canvas->translate(0, 80); 171 canvas->translate(0, 80);
173 } 172 }
174 } 173 }
175 174
176 private: 175 private:
177 typedef skiagm::GM INHERITED; 176 typedef skiagm::GM INHERITED;
178 }; 177 };
179 178
180 DEF_GM( return new GammaShaderTextGM; ) 179 DEF_GM( return new GammaShaderTextGM; )
181 180
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698