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

Side by Side Diff: gm/imagefiltersclipped.cpp

Issue 1858353002: Update SkMatrixImageFilter to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix fuzz 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/imagefilters.cpp ('k') | gm/imagefiltersscaled.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 2014 Google Inc. 2 * Copyright 2014 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 "sk_tool_utils.h" 8 #include "sk_tool_utils.h"
9 #include "SkBlurImageFilter.h" 9 #include "SkBlurImageFilter.h"
10 #include "SkColor.h" 10 #include "SkColor.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 SkIntToScalar(3), SkIntToScalar(3), SK_ColorGREEN, 99 SkIntToScalar(3), SkIntToScalar(3), SK_ColorGREEN,
100 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode), 100 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode),
101 SkDisplacementMapEffect::Create(SkDisplacementMapEffect::kR_ChannelS electorType, 101 SkDisplacementMapEffect::Create(SkDisplacementMapEffect::kR_ChannelS electorType,
102 SkDisplacementMapEffect::kR_ChannelS electorType, 102 SkDisplacementMapEffect::kR_ChannelS electorType,
103 SkIntToScalar(12), 103 SkIntToScalar(12),
104 gradient.get(), 104 gradient.get(),
105 checkerboard.get()), 105 checkerboard.get()),
106 SkDilateImageFilter::Make(2, 2, checkerboard).release(), 106 SkDilateImageFilter::Make(2, 2, checkerboard).release(),
107 SkErodeImageFilter::Make(2, 2, checkerboard).release(), 107 SkErodeImageFilter::Make(2, 2, checkerboard).release(),
108 SkOffsetImageFilter::Make(SkIntToScalar(-16), SkIntToScalar(32), nul lptr).release(), 108 SkOffsetImageFilter::Make(SkIntToScalar(-16), SkIntToScalar(32), nul lptr).release(),
109 SkImageFilter::CreateMatrixFilter(resizeMatrix, kNone_SkFilterQualit y), 109 SkImageFilter::MakeMatrixFilter(resizeMatrix, kNone_SkFilterQuality, nullptr).release(),
110 SkLightingImageFilter::CreatePointLitDiffuse(pointLocation, SK_Color WHITE, SK_Scalar1, 110 SkLightingImageFilter::CreatePointLitDiffuse(pointLocation, SK_Color WHITE, SK_Scalar1,
111 SkIntToScalar(2), check erboard.get()), 111 SkIntToScalar(2), check erboard.get()),
112 112
113 }; 113 };
114 114
115 SkRect r = SkRect::MakeWH(SkIntToScalar(64), SkIntToScalar(64)); 115 SkRect r = SkRect::MakeWH(SkIntToScalar(64), SkIntToScalar(64));
116 SkScalar margin = SkIntToScalar(16); 116 SkScalar margin = SkIntToScalar(16);
117 SkRect bounds = r; 117 SkRect bounds = r;
118 bounds.outset(margin, margin); 118 bounds.outset(margin, margin);
119 119
(...skipping 29 matching lines...) Expand all
149 private: 149 private:
150 sk_sp<SkImage> fCheckerboard, fGradientCircle; 150 sk_sp<SkImage> fCheckerboard, fGradientCircle;
151 151
152 typedef GM INHERITED; 152 typedef GM INHERITED;
153 }; 153 };
154 154
155 ////////////////////////////////////////////////////////////////////////////// 155 //////////////////////////////////////////////////////////////////////////////
156 156
157 DEF_GM(return new ImageFiltersClippedGM;) 157 DEF_GM(return new ImageFiltersClippedGM;)
158 } 158 }
OLDNEW
« no previous file with comments | « gm/imagefilters.cpp ('k') | gm/imagefiltersscaled.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698