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

Side by Side Diff: gm/imagefiltersscaled.cpp

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 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
« no previous file with comments | « gm/imagefiltersclipped.cpp ('k') | gm/texdata.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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 SkDisplacementMapEffect::Create(SkDisplacementMapEffect::kR_ChannelS electorType, 78 SkDisplacementMapEffect::Create(SkDisplacementMapEffect::kR_ChannelS electorType,
79 SkDisplacementMapEffect::kR_ChannelS electorType, 79 SkDisplacementMapEffect::kR_ChannelS electorType,
80 SkIntToScalar(12), 80 SkIntToScalar(12),
81 gradient.get(), 81 gradient.get(),
82 checkerboard.get()), 82 checkerboard.get()),
83 SkDilateImageFilter::Create(1, 1, checkerboard.get()), 83 SkDilateImageFilter::Create(1, 1, checkerboard.get()),
84 SkErodeImageFilter::Create(1, 1, checkerboard.get()), 84 SkErodeImageFilter::Create(1, 1, checkerboard.get()),
85 SkOffsetImageFilter::Create(SkIntToScalar(32), 0), 85 SkOffsetImageFilter::Create(SkIntToScalar(32), 0),
86 SkImageFilter::CreateMatrixFilter(resizeMatrix, kNone_SkFilterQualit y), 86 SkImageFilter::CreateMatrixFilter(resizeMatrix, kNone_SkFilterQualit y),
87 SkRectShaderImageFilter::Create(noise), 87 SkRectShaderImageFilter::Create(noise),
88 SkLightingImageFilter::CreatePointLitDiffuse(pointLocation, white, s urfaceScale, kd), 88 SkLightingImageFilter::CreatePointLitDiffuse(pointLocation, white, s urfaceScale, kd, NULL, NULL),
89 SkLightingImageFilter::CreateSpotLitDiffuse(spotLocation, spotTarget , spotExponent, 89 SkLightingImageFilter::CreateSpotLitDiffuse(spotLocation, spotTarget , spotExponent,
90 cutoffAngle, white, surf aceScale, kd), 90 cutoffAngle, white, surf aceScale, kd, NULL, NULL),
91 }; 91 };
92 92
93 SkVector scales[] = { 93 SkVector scales[] = {
94 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)), 94 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)),
95 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)), 95 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)),
96 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)), 96 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)),
97 SkVector::Make(SkIntToScalar(2), SkIntToScalar(1)), 97 SkVector::Make(SkIntToScalar(2), SkIntToScalar(1)),
98 SkVector::Make(SkIntToScalar(2), SkIntToScalar(2)), 98 SkVector::Make(SkIntToScalar(2), SkIntToScalar(2)),
99 }; 99 };
100 100
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 SkAutoTUnref<SkImage> fCheckerboard, fGradientCircle; 157 SkAutoTUnref<SkImage> fCheckerboard, fGradientCircle;
158 158
159 typedef GM INHERITED; 159 typedef GM INHERITED;
160 }; 160 };
161 161
162 ////////////////////////////////////////////////////////////////////////////// 162 //////////////////////////////////////////////////////////////////////////////
163 163
164 DEF_GM(return new ImageFiltersScaledGM;) 164 DEF_GM(return new ImageFiltersScaledGM;)
165 } 165 }
OLDNEW
« no previous file with comments | « gm/imagefiltersclipped.cpp ('k') | gm/texdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698