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

Side by Side Diff: gm/complexclip2.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/complexclip.cpp ('k') | gm/composeshader.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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #include "gm.h" 9 #include "gm.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 return "rect"; 104 return "rect";
105 case kRRect_Clip: 105 case kRRect_Clip:
106 return "rrect"; 106 return "rrect";
107 case kPath_Clip: 107 case kPath_Clip:
108 return "path"; 108 return "path";
109 } 109 }
110 SkDEBUGFAIL("Unknown clip type."); 110 SkDEBUGFAIL("Unknown clip type.");
111 return ""; 111 return "";
112 } 112 }
113 113
114 virtual uint32_t onGetFlags() const SK_OVERRIDE {
115 if (kRect_Clip != fClip) {
116 return kSkipTiled_Flag;
117 }
118 return 0;
119 }
120
114 virtual SkString onShortName() { 121 virtual SkString onShortName() {
115 if (kRect_Clip == fClip && !fAntiAlias) { 122 if (kRect_Clip == fClip && !fAntiAlias) {
116 return SkString("complexclip2"); 123 return SkString("complexclip2");
117 } 124 }
118 125
119 SkString str; 126 SkString str;
120 str.printf("complexclip2_%s_%s", 127 str.printf("complexclip2_%s_%s",
121 ClipStr(fClip), 128 ClipStr(fClip),
122 fAntiAlias ? "aa" : "bw"); 129 fAntiAlias ? "aa" : "bw");
123 return str; 130 return str;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRect_Clip, false); ) 213 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRect_Clip, false); )
207 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRRect_Clip, false); ) 214 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRRect_Clip, false); )
208 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kPath_Clip, false); ) 215 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kPath_Clip, false); )
209 216
210 // aa 217 // aa
211 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRect_Clip, true); ) 218 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRect_Clip, true); )
212 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRRect_Clip, true); ) 219 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRRect_Clip, true); )
213 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kPath_Clip, true); ) 220 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kPath_Clip, true); )
214 221
215 } 222 }
OLDNEW
« no previous file with comments | « gm/complexclip.cpp ('k') | gm/composeshader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698