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

Side by Side Diff: gm/skbug1719.cpp

Issue 1852113003: switch maskfilters to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « gm/samplerstress.cpp ('k') | gm/textbloblooper.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 "SkBlurMaskFilter.h" 9 #include "SkBlurMaskFilter.h"
10 #include "SkColorFilter.h" 10 #include "SkColorFilter.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 drawPath.cubicTo(827.58173f, 732.f, 824.f, 728.41827f, 824.f, 724.f); 54 drawPath.cubicTo(827.58173f, 732.f, 824.f, 728.41827f, 824.f, 724.f);
55 drawPath.lineTo(824.f, 662.f); 55 drawPath.lineTo(824.f, 662.f);
56 drawPath.cubicTo(824.f, 657.58173f, 827.58173f, 654.f, 832.f, 654.f); 56 drawPath.cubicTo(824.f, 657.58173f, 827.58173f, 654.f, 832.f, 654.f);
57 drawPath.close(); 57 drawPath.close();
58 drawPath.setFillType(SkPath::kEvenOdd_FillType); 58 drawPath.setFillType(SkPath::kEvenOdd_FillType);
59 59
60 SkPaint paint; 60 SkPaint paint;
61 paint.setAntiAlias(true); 61 paint.setAntiAlias(true);
62 paint.setColor(0xFF000000); 62 paint.setColor(0xFF000000);
63 paint.setMaskFilter( 63 paint.setMaskFilter(
64 SkBlurMaskFilter::Create(kNormal_SkBlurStyle, 64 SkBlurMaskFilter::Make(kNormal_SkBlurStyle, 0.78867501f,
65 0.78867501f, 65 SkBlurMaskFilter::kHighQuality_BlurFlag));
66 SkBlurMaskFilter::kHighQuality_BlurFlag))-> unref();
67 paint.setColorFilter(SkColorFilter::MakeModeFilter(0xBFFFFFFF, SkXfermod e::kSrcIn_Mode)); 66 paint.setColorFilter(SkColorFilter::MakeModeFilter(0xBFFFFFFF, SkXfermod e::kSrcIn_Mode));
68 67
69 canvas->clipPath(clipPath, SkRegion::kIntersect_Op, true); 68 canvas->clipPath(clipPath, SkRegion::kIntersect_Op, true);
70 canvas->drawPath(drawPath, paint); 69 canvas->drawPath(drawPath, paint);
71 } 70 }
OLDNEW
« no previous file with comments | « gm/samplerstress.cpp ('k') | gm/textbloblooper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698