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

Side by Side Diff: gm/imagefiltersscaled.cpp

Issue 1842793002: Switch SkLocalMatrixImageFilter and SkPaintImageFilter over to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Ooops 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/imagefiltersclipped.cpp ('k') | gm/localmatriximagefilter.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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode), 79 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode),
80 SkDisplacementMapEffect::Create(SkDisplacementMapEffect::kR_ChannelS electorType, 80 SkDisplacementMapEffect::Create(SkDisplacementMapEffect::kR_ChannelS electorType,
81 SkDisplacementMapEffect::kR_ChannelS electorType, 81 SkDisplacementMapEffect::kR_ChannelS electorType,
82 SkIntToScalar(12), 82 SkIntToScalar(12),
83 gradient.get(), 83 gradient.get(),
84 checkerboard.get()), 84 checkerboard.get()),
85 SkDilateImageFilter::Create(1, 1, checkerboard.get()), 85 SkDilateImageFilter::Create(1, 1, checkerboard.get()),
86 SkErodeImageFilter::Create(1, 1, checkerboard.get()), 86 SkErodeImageFilter::Create(1, 1, checkerboard.get()),
87 SkOffsetImageFilter::Create(SkIntToScalar(32), 0), 87 SkOffsetImageFilter::Create(SkIntToScalar(32), 0),
88 SkImageFilter::CreateMatrixFilter(resizeMatrix, kNone_SkFilterQualit y), 88 SkImageFilter::CreateMatrixFilter(resizeMatrix, kNone_SkFilterQualit y),
89 SkPaintImageFilter::Create(noisePaint), 89 SkPaintImageFilter::Make(noisePaint).release(),
90 SkLightingImageFilter::CreatePointLitDiffuse(pointLocation, white, s urfaceScale, kd), 90 SkLightingImageFilter::CreatePointLitDiffuse(pointLocation, white, s urfaceScale, kd),
91 SkLightingImageFilter::CreateSpotLitDiffuse(spotLocation, spotTarget , spotExponent, 91 SkLightingImageFilter::CreateSpotLitDiffuse(spotLocation, spotTarget , spotExponent,
92 cutoffAngle, white, surf aceScale, kd), 92 cutoffAngle, white, surf aceScale, kd),
93 }; 93 };
94 94
95 SkVector scales[] = { 95 SkVector scales[] = {
96 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)), 96 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)),
97 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)), 97 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)),
98 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)), 98 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)),
99 SkVector::Make(SkIntToScalar(2), SkIntToScalar(1)), 99 SkVector::Make(SkIntToScalar(2), SkIntToScalar(1)),
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 sk_sp<SkImage> fCheckerboard, fGradientCircle; 156 sk_sp<SkImage> fCheckerboard, fGradientCircle;
157 157
158 typedef GM INHERITED; 158 typedef GM INHERITED;
159 }; 159 };
160 160
161 ////////////////////////////////////////////////////////////////////////////// 161 //////////////////////////////////////////////////////////////////////////////
162 162
163 DEF_GM(return new ImageFiltersScaledGM;) 163 DEF_GM(return new ImageFiltersScaledGM;)
164 } 164 }
OLDNEW
« no previous file with comments | « gm/imagefiltersclipped.cpp ('k') | gm/localmatriximagefilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698