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

Side by Side Diff: gm/ovals.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/nonclosedpaths.cpp ('k') | gm/patheffects.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 17
18 namespace skiagm { 18 namespace skiagm {
19 19
20 class OvalGM : public GM { 20 class OvalGM : public GM {
21 public: 21 public:
22 OvalGM() { 22 OvalGM() {
23 this->setBGColor(0xFF000000); 23 this->setBGColor(0xFF000000);
24 this->makePaints(); 24 this->makePaints();
25 this->makeMatrices(); 25 this->makeMatrices();
26 } 26 }
27 27
28 protected: 28 protected:
29 virtual uint32_t onGetFlags() const SK_OVERRIDE {
30 return kSkipTiled_Flag;
31 }
32
29 virtual SkString onShortName() SK_OVERRIDE { 33 virtual SkString onShortName() SK_OVERRIDE {
30 return SkString("ovals"); 34 return SkString("ovals");
31 } 35 }
32 36
33 virtual SkISize onISize() SK_OVERRIDE { 37 virtual SkISize onISize() SK_OVERRIDE {
34 return make_isize(1200, 900); 38 return make_isize(1200, 900);
35 } 39 }
36 40
37 void makePaints() { 41 void makePaints() {
38 { 42 {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 282
279 typedef GM INHERITED; 283 typedef GM INHERITED;
280 }; 284 };
281 285
282 ////////////////////////////////////////////////////////////////////////////// 286 //////////////////////////////////////////////////////////////////////////////
283 287
284 static GM* MyFactory(void*) { return new OvalGM; } 288 static GM* MyFactory(void*) { return new OvalGM; }
285 static GMRegistry reg(MyFactory); 289 static GMRegistry reg(MyFactory);
286 290
287 } 291 }
OLDNEW
« no previous file with comments | « gm/nonclosedpaths.cpp ('k') | gm/patheffects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698