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

Side by Side Diff: gm/rects.cpp

Issue 21835004: Blur refactoring (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Removed unneeded #includes Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « gm/circles.cpp ('k') | gm/shadows.cpp » ('j') | 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 2013 Google Inc. 2 * Copyright 2013 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 "SkTArray.h" 9 #include "SkTArray.h"
10 #include "SkMatrix.h" 10 #include "SkMatrix.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 { 81 {
82 // AA with blur 82 // AA with blur
83 SkPaint p; 83 SkPaint p;
84 p.setColor(SK_ColorWHITE); 84 p.setColor(SK_ColorWHITE);
85 p.setAntiAlias(true); 85 p.setAntiAlias(true);
86 SkBlurDrawLooper* shadowLooper = 86 SkBlurDrawLooper* shadowLooper =
87 new SkBlurDrawLooper (SkIntToScalar(10), SkIntToScalar(5), 87 new SkBlurDrawLooper (SkIntToScalar(10), SkIntToScalar(5),
88 SkIntToScalar(10), SK_ColorWHITE, 88 SkIntToScalar(10), SK_ColorWHITE,
89 SkBlurDrawLooper::kIgnoreTransform_BlurFla g | 89 SkBlurDrawLooper::kIgnoreTransform_BlurFla g |
90 SkBlurDrawLooper::kOverrideColor_BlurFlag | 90 SkBlurDrawLooper::kOverrideColor_BlurFlag |
91 SkBlurDrawLooper::kHighQuality_BlurFlag ); 91 SkBlurDrawLooper::kHighQuality_BlurFlag);
92 SkAutoUnref aurL0(shadowLooper); 92 SkAutoUnref aurL0(shadowLooper);
93 p.setLooper(shadowLooper); 93 p.setLooper(shadowLooper);
94 fPaints.push_back(p); 94 fPaints.push_back(p);
95 } 95 }
96 96
97 { 97 {
98 // AA with stroke style 98 // AA with stroke style
99 SkPaint p; 99 SkPaint p;
100 p.setColor(SK_ColorWHITE); 100 p.setColor(SK_ColorWHITE);
101 p.setAntiAlias(true); 101 p.setAntiAlias(true);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 248
249 typedef GM INHERITED; 249 typedef GM INHERITED;
250 }; 250 };
251 251
252 ////////////////////////////////////////////////////////////////////////////// 252 //////////////////////////////////////////////////////////////////////////////
253 253
254 static GM* MyFactory(void*) { return new RectsGM; } 254 static GM* MyFactory(void*) { return new RectsGM; }
255 static GMRegistry reg(MyFactory); 255 static GMRegistry reg(MyFactory);
256 256
257 } 257 }
OLDNEW
« no previous file with comments | « gm/circles.cpp ('k') | gm/shadows.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698