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

Side by Side Diff: gm/complexclip.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/colorfilters.cpp ('k') | gm/complexclip2.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 "SkCanvas.h" 9 #include "SkCanvas.h"
10 //#include "SkParsePath.h" 10 //#include "SkParsePath.h"
(...skipping 11 matching lines...) Expand all
22 bool fDoSaveLayer; 22 bool fDoSaveLayer;
23 public: 23 public:
24 ComplexClipGM(bool aaclip, bool saveLayer) 24 ComplexClipGM(bool aaclip, bool saveLayer)
25 : fDoAAClip(aaclip) 25 : fDoAAClip(aaclip)
26 , fDoSaveLayer(saveLayer) { 26 , fDoSaveLayer(saveLayer) {
27 this->setBGColor(0xFFDDDDDD); 27 this->setBGColor(0xFFDDDDDD);
28 // this->setBGColor(SkColorSetRGB(0xB0,0xDD,0xB0)); 28 // this->setBGColor(SkColorSetRGB(0xB0,0xDD,0xB0));
29 } 29 }
30 30
31 protected: 31 protected:
32 virtual uint32_t onGetFlags() const SK_OVERRIDE {
33 return kSkipTiled_Flag;
34 }
35
32 36
33 SkString onShortName() { 37 SkString onShortName() {
34 SkString str; 38 SkString str;
35 str.printf("complexclip_%s%s", 39 str.printf("complexclip_%s%s",
36 fDoAAClip ? "aa" : "bw", 40 fDoAAClip ? "aa" : "bw",
37 fDoSaveLayer ? "_layer" : ""); 41 fDoSaveLayer ? "_layer" : "");
38 return str; 42 return str;
39 } 43 }
40 44
41 SkISize onISize() { return make_isize(970, 780); } 45 SkISize onISize() { return make_isize(970, 780); }
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // aliased and anti-aliased w/ a layer 192 // aliased and anti-aliased w/ a layer
189 static GM* gFact2(void*) { return new ComplexClipGM(false, true); } 193 static GM* gFact2(void*) { return new ComplexClipGM(false, true); }
190 static GM* gFact3(void*) { return new ComplexClipGM(true, true); } 194 static GM* gFact3(void*) { return new ComplexClipGM(true, true); }
191 195
192 static GMRegistry gReg0(gFact0); 196 static GMRegistry gReg0(gFact0);
193 static GMRegistry gReg1(gFact1); 197 static GMRegistry gReg1(gFact1);
194 static GMRegistry gReg2(gFact2); 198 static GMRegistry gReg2(gFact2);
195 static GMRegistry gReg3(gFact3); 199 static GMRegistry gReg3(gFact3);
196 200
197 } 201 }
OLDNEW
« no previous file with comments | « gm/colorfilters.cpp ('k') | gm/complexclip2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698