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

Side by Side Diff: gm/convexpolyclip.cpp

Issue 256373002: Turn on quilt mode in DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 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/convexpaths.cpp ('k') | gm/cubicpaths.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 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "gm.h" 9 #include "gm.h"
10 10
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 x += textW + 2 * kMargin; 206 x += textW + 2 * kMargin;
207 } 207 }
208 y += fBmp.height() + kMargin; 208 y += fBmp.height() + kMargin;
209 } 209 }
210 y = 0; 210 y = 0;
211 startX += 2 * fBmp.width() + SkScalarCeilToInt(2 * textW) + 6 * kMar gin; 211 startX += 2 * fBmp.width() + SkScalarCeilToInt(2 * textW) + 6 * kMar gin;
212 } 212 }
213 } 213 }
214 214
215 virtual uint32_t onGetFlags() const { 215 virtual uint32_t onGetFlags() const {
216 return kAsBench_Flag; 216 return kAsBench_Flag | kSkipTiled_Flag;
217 } 217 }
218 218
219 private: 219 private:
220 class Clip { 220 class Clip {
221 public: 221 public:
222 enum ClipType { 222 enum ClipType {
223 kNone_ClipType, 223 kNone_ClipType,
224 kPath_ClipType, 224 kPath_ClipType,
225 kRect_ClipType 225 kRect_ClipType
226 }; 226 };
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 SkTLList<Clip> fClips; 293 SkTLList<Clip> fClips;
294 SkBitmap fBmp; 294 SkBitmap fBmp;
295 295
296 typedef GM INHERITED; 296 typedef GM INHERITED;
297 }; 297 };
298 298
299 DEF_GM( return SkNEW(ConvexPolyClip); ) 299 DEF_GM( return SkNEW(ConvexPolyClip); )
300 300
301 } 301 }
OLDNEW
« no previous file with comments | « gm/convexpaths.cpp ('k') | gm/cubicpaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698