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

Side by Side Diff: gm/roundrects.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/resizeimagefilter.cpp ('k') | gm/rrect.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 2013 Google Inc. 3 * Copyright 2013 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 #include "SkTArray.h" 10 #include "SkTArray.h"
11 #include "SkRandom.h" 11 #include "SkRandom.h"
12 #include "SkMatrix.h" 12 #include "SkMatrix.h"
13 #include "SkBlurMaskFilter.h" 13 #include "SkBlurMaskFilter.h"
14 #include "SkGradientShader.h" 14 #include "SkGradientShader.h"
15 #include "SkBlurDrawLooper.h" 15 #include "SkBlurDrawLooper.h"
16 #include "SkRect.h" 16 #include "SkRect.h"
17 #include "SkRRect.h" 17 #include "SkRRect.h"
18 18
19 namespace skiagm { 19 namespace skiagm {
20 20
21 class RoundRectGM : public GM { 21 class RoundRectGM : public GM {
22 public: 22 public:
23 RoundRectGM() { 23 RoundRectGM() {
24 this->setBGColor(0xFF000000); 24 this->setBGColor(0xFF000000);
25 this->makePaints(); 25 this->makePaints();
26 this->makeMatrices(); 26 this->makeMatrices();
27 } 27 }
28 28
29 protected: 29 protected:
30 virtual uint32_t onGetFlags() const SK_OVERRIDE {
31 return kSkipTiled_Flag;
32 }
33
30 virtual SkString onShortName() SK_OVERRIDE { 34 virtual SkString onShortName() SK_OVERRIDE {
31 return SkString("roundrects"); 35 return SkString("roundrects");
32 } 36 }
33 37
34 virtual SkISize onISize() SK_OVERRIDE { 38 virtual SkISize onISize() SK_OVERRIDE {
35 return make_isize(1200, 900); 39 return make_isize(1200, 900);
36 } 40 }
37 41
38 void makePaints() { 42 void makePaints() {
39 { 43 {
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 334
331 typedef GM INHERITED; 335 typedef GM INHERITED;
332 }; 336 };
333 337
334 ////////////////////////////////////////////////////////////////////////////// 338 //////////////////////////////////////////////////////////////////////////////
335 339
336 static GM* MyFactory(void*) { return new RoundRectGM; } 340 static GM* MyFactory(void*) { return new RoundRectGM; }
337 static GMRegistry reg(MyFactory); 341 static GMRegistry reg(MyFactory);
338 342
339 } 343 }
OLDNEW
« no previous file with comments | « gm/resizeimagefilter.cpp ('k') | gm/rrect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698