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

Side by Side Diff: gm/imagefiltersclipped.cpp

Issue 1014533004: SkPaint::FilterLevel -> SkFilterQuality (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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/giantbitmap.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 "SkBitmapSource.h" 9 #include "SkBitmapSource.h"
10 #include "SkBlurImageFilter.h" 10 #include "SkBlurImageFilter.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 SkIntToScalar(3), SkIntToScalar(3), SK_ColorGREEN, 84 SkIntToScalar(3), SkIntToScalar(3), SK_ColorGREEN,
85 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode), 85 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode),
86 SkDisplacementMapEffect::Create(SkDisplacementMapEffect::kR_ChannelS electorType, 86 SkDisplacementMapEffect::Create(SkDisplacementMapEffect::kR_ChannelS electorType,
87 SkDisplacementMapEffect::kR_ChannelS electorType, 87 SkDisplacementMapEffect::kR_ChannelS electorType,
88 SkIntToScalar(12), 88 SkIntToScalar(12),
89 gradient.get(), 89 gradient.get(),
90 checkerboard.get()), 90 checkerboard.get()),
91 SkDilateImageFilter::Create(2, 2, checkerboard.get()), 91 SkDilateImageFilter::Create(2, 2, checkerboard.get()),
92 SkErodeImageFilter::Create(2, 2, checkerboard.get()), 92 SkErodeImageFilter::Create(2, 2, checkerboard.get()),
93 SkOffsetImageFilter::Create(SkIntToScalar(-16), SkIntToScalar(32)), 93 SkOffsetImageFilter::Create(SkIntToScalar(-16), SkIntToScalar(32)),
94 SkMatrixImageFilter::Create(resizeMatrix, SkPaint::kNone_FilterLevel ), 94 SkMatrixImageFilter::Create(resizeMatrix, kNone_SkFilterQuality),
95 SkRectShaderImageFilter::Create(noise), 95 SkRectShaderImageFilter::Create(noise),
96 }; 96 };
97 97
98 SkRect r = SkRect::MakeWH(SkIntToScalar(64), SkIntToScalar(64)); 98 SkRect r = SkRect::MakeWH(SkIntToScalar(64), SkIntToScalar(64));
99 SkScalar margin = SkIntToScalar(16); 99 SkScalar margin = SkIntToScalar(16);
100 SkRect bounds = r; 100 SkRect bounds = r;
101 bounds.outset(margin, margin); 101 bounds.outset(margin, margin);
102 102
103 for (int xOffset = 0; xOffset < 80; xOffset += 16) { 103 for (int xOffset = 0; xOffset < 80; xOffset += 16) {
104 canvas->save(); 104 canvas->save();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 SkBitmap fGradientCircle; 136 SkBitmap fGradientCircle;
137 typedef GM INHERITED; 137 typedef GM INHERITED;
138 }; 138 };
139 139
140 ////////////////////////////////////////////////////////////////////////////// 140 //////////////////////////////////////////////////////////////////////////////
141 141
142 static GM* MyFactory(void*) { return new ImageFiltersClippedGM; } 142 static GM* MyFactory(void*) { return new ImageFiltersClippedGM; }
143 static GMRegistry reg(MyFactory); 143 static GMRegistry reg(MyFactory);
144 144
145 } 145 }
OLDNEW
« no previous file with comments | « gm/giantbitmap.cpp ('k') | gm/imagefiltersscaled.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698