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

Side by Side Diff: gm/imagefilterscropexpand.cpp

Issue 1019493002: Remove uniqueID from all filter serialization. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Null out fUniqueID deserialization 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/filterfastbounds.cpp ('k') | gm/tablecolorfilter.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 "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkColorFilter.h" 10 #include "SkColorFilter.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 draw(canvas, checkerboard, rect, SkDilateImageFilter::Create( 137 draw(canvas, checkerboard, rect, SkDilateImageFilter::Create(
138 2, 2, noop_cropped.get(), &big_rect)); 138 2, 2, noop_cropped.get(), &big_rect));
139 139
140 draw(canvas, checkerboard, rect, SkErodeImageFilter::Create( 140 draw(canvas, checkerboard, rect, SkErodeImageFilter::Create(
141 2, 2, noop_cropped.get(), &big_rect)); 141 2, 2, noop_cropped.get(), &big_rect));
142 142
143 draw(canvas, checkerboard, rect, SkDropShadowImageFilter::Create( 143 draw(canvas, checkerboard, rect, SkDropShadowImageFilter::Create(
144 SkIntToScalar(10), SkIntToScalar(10), SkIntToScalar(3), SkIntToS calar(3), 144 SkIntToScalar(10), SkIntToScalar(10), SkIntToScalar(3), SkIntToS calar(3),
145 SK_ColorBLUE, SkDropShadowImageFilter::kDrawShadowAndForeground_ ShadowMode, 145 SK_ColorBLUE, SkDropShadowImageFilter::kDrawShadowAndForeground_ ShadowMode,
146 noop_cropped.get(), &big_rect, 0)); 146 noop_cropped.get(), &big_rect));
147 147
148 draw(canvas, checkerboard, rect, SkDisplacementMapEffect::Create( 148 draw(canvas, checkerboard, rect, SkDisplacementMapEffect::Create(
149 SkDisplacementMapEffect::kR_ChannelSelectorType, 149 SkDisplacementMapEffect::kR_ChannelSelectorType,
150 SkDisplacementMapEffect::kR_ChannelSelectorType, 150 SkDisplacementMapEffect::kR_ChannelSelectorType,
151 SkIntToScalar(12), 151 SkIntToScalar(12),
152 gradient_circle_source.get(), 152 gradient_circle_source.get(),
153 noop_cropped.get(), 153 noop_cropped.get(),
154 &big_rect)); 154 &big_rect));
155 155
156 draw(canvas, checkerboard, rect, SkOffsetImageFilter::Create( 156 draw(canvas, checkerboard, rect, SkOffsetImageFilter::Create(
157 SkIntToScalar(-8), SkIntToScalar(16), noop_cropped.get(), &big_r ect)); 157 SkIntToScalar(-8), SkIntToScalar(16), noop_cropped.get(), &big_r ect));
158 158
159 canvas->restore(); 159 canvas->restore();
160 canvas->translate(0, SkIntToScalar(80)); 160 canvas->translate(0, SkIntToScalar(80));
161 } 161 }
162 } 162 }
163 163
164 private: 164 private:
165 typedef GM INHERITED; 165 typedef GM INHERITED;
166 }; 166 };
167 167
168 /////////////////////////////////////////////////////////////////////////////// 168 ///////////////////////////////////////////////////////////////////////////////
169 169
170 static skiagm::GM* MyFactory(void*) { return new ImageFiltersCropExpandGM; } 170 static skiagm::GM* MyFactory(void*) { return new ImageFiltersCropExpandGM; }
171 static skiagm::GMRegistry reg(MyFactory); 171 static skiagm::GMRegistry reg(MyFactory);
OLDNEW
« no previous file with comments | « gm/filterfastbounds.cpp ('k') | gm/tablecolorfilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698