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

Side by Side Diff: gm/circles.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/blurs.cpp ('k') | gm/rects.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 /* 2 /*
3 * Copyright 2012 Intel Inc. 3 * Copyright 2012 Intel Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkTArray.h" 9 #include "SkTArray.h"
10 #include "SkRandom.h" 10 #include "SkRandom.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 { 77 {
78 // AA with blur 78 // AA with blur
79 SkPaint p; 79 SkPaint p;
80 p.setAntiAlias(true); 80 p.setAntiAlias(true);
81 SkBlurDrawLooper* shadowLooper = 81 SkBlurDrawLooper* shadowLooper =
82 new SkBlurDrawLooper (SkIntToScalar(10), SkIntToScalar(5), 82 new SkBlurDrawLooper (SkIntToScalar(10), SkIntToScalar(5),
83 SkIntToScalar(10), 0xFF0000FF, 83 SkIntToScalar(10), 0xFF0000FF,
84 SkBlurDrawLooper::kIgnoreTransform_BlurFlag | 84 SkBlurDrawLooper::kIgnoreTransform_BlurFlag |
85 SkBlurDrawLooper::kOverrideColor_BlurFlag | 85 SkBlurDrawLooper::kOverrideColor_BlurFlag |
86 SkBlurDrawLooper::kHighQuality_BlurFlag ); 86 SkBlurDrawLooper::kHighQuality_BlurFlag);
87 SkAutoUnref aurL0(shadowLooper); 87 SkAutoUnref aurL0(shadowLooper);
88 p.setLooper(shadowLooper); 88 p.setLooper(shadowLooper);
89 fPaints.push_back(p); 89 fPaints.push_back(p);
90 } 90 }
91 91
92 { 92 {
93 // AA with stroke style 93 // AA with stroke style
94 SkPaint p; 94 SkPaint p;
95 p.setAntiAlias(true); 95 p.setAntiAlias(true);
96 p.setStyle(SkPaint::kStroke_Style); 96 p.setStyle(SkPaint::kStroke_Style);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 SkTArray<SkPaint> fPaints; 196 SkTArray<SkPaint> fPaints;
197 SkTArray<SkMatrix> fMatrices; 197 SkTArray<SkMatrix> fMatrices;
198 }; 198 };
199 199
200 ////////////////////////////////////////////////////////////////////////////// 200 //////////////////////////////////////////////////////////////////////////////
201 201
202 static GM* MyFactory(void*) { return new CircleGM; } 202 static GM* MyFactory(void*) { return new CircleGM; }
203 static GMRegistry reg(MyFactory); 203 static GMRegistry reg(MyFactory);
204 204
205 } 205 }
OLDNEW
« no previous file with comments | « gm/blurs.cpp ('k') | gm/rects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698