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

Side by Side Diff: gm/circles.cpp

Issue 253833002: move common blur types into central header (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 6 years, 7 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/drawbitmaprect.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 "SkBlurDrawLooper.h" 9 #include "SkBlurDrawLooper.h"
10 #include "SkBlurMask.h" 10 #include "SkBlurMask.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 SkPaint p; 45 SkPaint p;
46 p.setAntiAlias(true); 46 p.setAntiAlias(true);
47 fPaints.push_back(p); 47 fPaints.push_back(p);
48 } 48 }
49 49
50 { 50 {
51 // AA with mask filter 51 // AA with mask filter
52 SkPaint p; 52 SkPaint p;
53 p.setAntiAlias(true); 53 p.setAntiAlias(true);
54 SkMaskFilter* mf = SkBlurMaskFilter::Create( 54 SkMaskFilter* mf = SkBlurMaskFilter::Create(
55 SkBlurMaskFilter::kNormal_BlurStyle, 55 kNormal_SkBlurStyle,
56 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5) ), 56 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5) ),
57 SkBlurMaskFilter::kHighQuality_BlurFlag); 57 SkBlurMaskFilter::kHighQuality_BlurFlag);
58 p.setMaskFilter(mf)->unref(); 58 p.setMaskFilter(mf)->unref();
59 fPaints.push_back(p); 59 fPaints.push_back(p);
60 } 60 }
61 61
62 { 62 {
63 // AA with radial shader 63 // AA with radial shader
64 SkPaint p; 64 SkPaint p;
65 p.setAntiAlias(true); 65 p.setAntiAlias(true);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 SkTArray<SkPaint> fPaints; 198 SkTArray<SkPaint> fPaints;
199 SkTArray<SkMatrix> fMatrices; 199 SkTArray<SkMatrix> fMatrices;
200 }; 200 };
201 201
202 ////////////////////////////////////////////////////////////////////////////// 202 //////////////////////////////////////////////////////////////////////////////
203 203
204 static GM* MyFactory(void*) { return new CircleGM; } 204 static GM* MyFactory(void*) { return new CircleGM; }
205 static GMRegistry reg(MyFactory); 205 static GMRegistry reg(MyFactory);
206 206
207 } 207 }
OLDNEW
« no previous file with comments | « gm/blurs.cpp ('k') | gm/drawbitmaprect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698