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

Side by Side Diff: gm/filterfastbounds.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/dropshadowimagefilter.cpp ('k') | gm/imagefilterscropexpand.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 "SkBitmapSource.h" 9 #include "SkBitmapSource.h"
10 #include "SkBlurImageFilter.h" 10 #include "SkBlurImageFilter.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 111
112 { 112 {
113 static const SkDropShadowImageFilter::ShadowMode kBoth = 113 static const SkDropShadowImageFilter::ShadowMode kBoth =
114 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode ; 114 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode ;
115 115
116 SkAutoTUnref<SkDropShadowImageFilter> dsif( 116 SkAutoTUnref<SkDropShadowImageFilter> dsif(
117 SkDropShadowImageFilter::Create(10.0f, 10.0f, 117 SkDropShadowImageFilter::Create(10.0f, 10.0f,
118 3.0f, 3.0f, 118 3.0f, 3.0f,
119 SK_ColorRED, kBoth, 119 SK_ColorRED, kBoth,
120 source, NULL, 0)); 120 source, NULL));
121 121
122 add_paint(dsif, paints); 122 add_paint(dsif, paints);
123 } 123 }
124 124
125 { 125 {
126 SkAutoTUnref<SkDropShadowImageFilter> dsif( 126 SkAutoTUnref<SkDropShadowImageFilter> dsif(
127 SkDropShadowImageFilter::Create(27.0f, 27.0f, 127 SkDropShadowImageFilter::Create(27.0f, 27.0f,
128 3.0f, 3.0f, 128 3.0f, 3.0f,
129 SK_ColorRED, 129 SK_ColorRED,
130 SkDropShadowImageFilter::kDrawShadow Only_ShadowMode, 130 SkDropShadowImageFilter::kDrawShadow Only_ShadowMode,
131 source, NULL, 0)); 131 source, NULL));
132 132
133 add_paint(dsif, paints); 133 add_paint(dsif, paints);
134 } 134 }
135 135
136 { 136 {
137 SkAutoTUnref<SkBlurImageFilter> bif(SkBlurImageFilter::Create(3, 3, sour ce)); 137 SkAutoTUnref<SkBlurImageFilter> bif(SkBlurImageFilter::Create(3, 3, sour ce));
138 138
139 add_paint(bif, paints); 139 add_paint(bif, paints);
140 } 140 }
141 141
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 318
319 private: 319 private:
320 typedef GM INHERITED; 320 typedef GM INHERITED;
321 }; 321 };
322 322
323 ////////////////////////////////////////////////////////////////////////////// 323 //////////////////////////////////////////////////////////////////////////////
324 324
325 DEF_GM(return SkNEW(ImageFilterFastBoundGM);) 325 DEF_GM(return SkNEW(ImageFilterFastBoundGM);)
326 326
327 } 327 }
OLDNEW
« no previous file with comments | « gm/dropshadowimagefilter.cpp ('k') | gm/imagefilterscropexpand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698