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

Side by Side Diff: gm/giantbitmap.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/getpostextpath.cpp ('k') | gm/gradientDirtyLaundry.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 #include "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 fMode = mode; 64 fMode = mode;
65 fDoFilter = doFilter; 65 fDoFilter = doFilter;
66 fDoRotate = doRotate; 66 fDoRotate = doRotate;
67 } 67 }
68 68
69 virtual ~GiantBitmapGM() { 69 virtual ~GiantBitmapGM() {
70 SkDELETE(fBM); 70 SkDELETE(fBM);
71 } 71 }
72 72
73 protected: 73 protected:
74 virtual uint32_t onGetFlags() const SK_OVERRIDE {
75 if (fDoFilter && fDoRotate && fMode != SkShader::kClamp_TileMode) {
76 return kSkipTiled_Flag;
77 }
78 return 0;
79 }
80
74 virtual SkString onShortName() { 81 virtual SkString onShortName() {
75 SkString str("giantbitmap_"); 82 SkString str("giantbitmap_");
76 switch (fMode) { 83 switch (fMode) {
77 case SkShader::kClamp_TileMode: 84 case SkShader::kClamp_TileMode:
78 str.append("clamp"); 85 str.append("clamp");
79 break; 86 break;
80 case SkShader::kRepeat_TileMode: 87 case SkShader::kRepeat_TileMode:
81 str.append("repeat"); 88 str.append("repeat");
82 break; 89 break;
83 case SkShader::kMirror_TileMode: 90 case SkShader::kMirror_TileMode:
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 static skiagm::GMRegistry reg010(G010); 150 static skiagm::GMRegistry reg010(G010);
144 static skiagm::GMRegistry reg110(G110); 151 static skiagm::GMRegistry reg110(G110);
145 static skiagm::GMRegistry reg210(G210); 152 static skiagm::GMRegistry reg210(G210);
146 153
147 static skiagm::GMRegistry reg001(G001); 154 static skiagm::GMRegistry reg001(G001);
148 static skiagm::GMRegistry reg101(G101); 155 static skiagm::GMRegistry reg101(G101);
149 static skiagm::GMRegistry reg201(G201); 156 static skiagm::GMRegistry reg201(G201);
150 static skiagm::GMRegistry reg011(G011); 157 static skiagm::GMRegistry reg011(G011);
151 static skiagm::GMRegistry reg111(G111); 158 static skiagm::GMRegistry reg111(G111);
152 static skiagm::GMRegistry reg211(G211); 159 static skiagm::GMRegistry reg211(G211);
OLDNEW
« no previous file with comments | « gm/getpostextpath.cpp ('k') | gm/gradientDirtyLaundry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698