OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |