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

Side by Side Diff: gm/blurs.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/blurroundrect.cpp ('k') | gm/circles.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 2011 Google Inc. 3 * Copyright 2011 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 #include "gm.h" 8 #include "gm.h"
9 #include "SkBlurMask.h" 9 #include "SkBlurMask.h"
10 #include "SkBlurMaskFilter.h" 10 #include "SkBlurMaskFilter.h"
11 11
12 namespace skiagm { 12 namespace skiagm {
13 13
14 class BlursGM : public GM { 14 class BlursGM : public GM {
15 public: 15 public:
16 BlursGM() { 16 BlursGM() {
17 this->setBGColor(0xFFDDDDDD); 17 this->setBGColor(0xFFDDDDDD);
18 } 18 }
19 19
20 protected: 20 protected:
21 virtual uint32_t onGetFlags() const SK_OVERRIDE {
22 return kSkipTiled_Flag;
23 }
24
21 virtual SkString onShortName() { 25 virtual SkString onShortName() {
22 return SkString("blurs"); 26 return SkString("blurs");
23 } 27 }
24 28
25 virtual SkISize onISize() { 29 virtual SkISize onISize() {
26 return make_isize(700, 500); 30 return make_isize(700, 500);
27 } 31 }
28 32
29 virtual void onDraw(SkCanvas* canvas) { 33 virtual void onDraw(SkCanvas* canvas) {
30 SkBlurStyle NONE = SkBlurStyle(-999); 34 SkBlurStyle NONE = SkBlurStyle(-999);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 private: 93 private:
90 typedef GM INHERITED; 94 typedef GM INHERITED;
91 }; 95 };
92 96
93 ////////////////////////////////////////////////////////////////////////////// 97 //////////////////////////////////////////////////////////////////////////////
94 98
95 static GM* MyFactory(void*) { return new BlursGM; } 99 static GM* MyFactory(void*) { return new BlursGM; }
96 static GMRegistry reg(MyFactory); 100 static GMRegistry reg(MyFactory);
97 101
98 } 102 }
OLDNEW
« no previous file with comments | « gm/blurroundrect.cpp ('k') | gm/circles.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698