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

Side by Side Diff: gm/filterbitmap.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/filltypespersp.cpp ('k') | gm/fontscaler.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 "SkGradientShader.h" 9 #include "SkGradientShader.h"
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 SkBitmap fBM; 64 SkBitmap fBM;
65 SkMatrix fMatrix[3]; 65 SkMatrix fMatrix[3];
66 SkString fName; 66 SkString fName;
67 67
68 FilterBitmapGM() 68 FilterBitmapGM()
69 { 69 {
70 this->setBGColor(0xFFDDDDDD); 70 this->setBGColor(0xFFDDDDDD);
71 } 71 }
72 72
73 protected: 73 protected:
74 virtual uint32_t onGetFlags() const SK_OVERRIDE {
75 return kSkipTiled_Flag;
76 }
77
74 virtual SkString onShortName() SK_OVERRIDE { 78 virtual SkString onShortName() SK_OVERRIDE {
75 return fName; 79 return fName;
76 } 80 }
77 81
78 virtual SkISize onISize() SK_OVERRIDE { 82 virtual SkISize onISize() SK_OVERRIDE {
79 return SkISize::Make(1024, 768); 83 return SkISize::Make(1024, 768);
80 } 84 }
81 85
82 virtual void makeBitmap() = 0; 86 virtual void makeBitmap() = 0;
83 virtual SkScalar getScale() = 0; 87 virtual SkScalar getScale() = 0;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 DEF_GM( return new FilterBitmapCheckerboardGM(32,32); ) 226 DEF_GM( return new FilterBitmapCheckerboardGM(32,32); )
223 DEF_GM( return new FilterBitmapCheckerboardGM(32,8); ) 227 DEF_GM( return new FilterBitmapCheckerboardGM(32,8); )
224 DEF_GM( return new FilterBitmapCheckerboardGM(32,2); ) 228 DEF_GM( return new FilterBitmapCheckerboardGM(32,2); )
225 DEF_GM( return new FilterBitmapCheckerboardGM(192,192); ) 229 DEF_GM( return new FilterBitmapCheckerboardGM(192,192); )
226 DEF_GM( return new FilterBitmapImageGM("mandrill_16.png"); ) 230 DEF_GM( return new FilterBitmapImageGM("mandrill_16.png"); )
227 DEF_GM( return new FilterBitmapImageGM("mandrill_32.png"); ) 231 DEF_GM( return new FilterBitmapImageGM("mandrill_32.png"); )
228 DEF_GM( return new FilterBitmapImageGM("mandrill_64.png"); ) 232 DEF_GM( return new FilterBitmapImageGM("mandrill_64.png"); )
229 DEF_GM( return new FilterBitmapImageGM("mandrill_128.png"); ) 233 DEF_GM( return new FilterBitmapImageGM("mandrill_128.png"); )
230 DEF_GM( return new FilterBitmapImageGM("mandrill_256.png"); ) 234 DEF_GM( return new FilterBitmapImageGM("mandrill_256.png"); )
231 DEF_GM( return new FilterBitmapImageGM("mandrill_512.png"); ) 235 DEF_GM( return new FilterBitmapImageGM("mandrill_512.png"); )
OLDNEW
« no previous file with comments | « gm/filltypespersp.cpp ('k') | gm/fontscaler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698