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

Side by Side Diff: gm/filterindiabox.cpp

Issue 371023005: Add always-threaded SkRecord quilt tests. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: bigger tile -> more GMs can quilt Created 6 years, 5 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/drawlooper.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 9
10 #include "Resources.h" 10 #include "Resources.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 FilterIndiaBoxGM() { 65 FilterIndiaBoxGM() {
66 this->setBGColor(0xFFDDDDDD); 66 this->setBGColor(0xFFDDDDDD);
67 } 67 }
68 68
69 FilterIndiaBoxGM(const char filename[]) : fFilename(filename) { 69 FilterIndiaBoxGM(const char filename[]) : fFilename(filename) {
70 fName.printf("filterindiabox"); 70 fName.printf("filterindiabox");
71 } 71 }
72 72
73 protected: 73 protected:
74 virtual uint32_t onGetFlags() const SK_OVERRIDE {
75 return kSkipTiled_Flag;
76 }
77
78 virtual SkString onShortName() SK_OVERRIDE { 74 virtual SkString onShortName() SK_OVERRIDE {
79 return fName; 75 return fName;
80 } 76 }
81 77
82 virtual SkISize onISize() SK_OVERRIDE { 78 virtual SkISize onISize() SK_OVERRIDE {
83 return SkISize::Make(1024, 768); 79 return SkISize::Make(1024, 768);
84 } 80 }
85 81
86 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { 82 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
87 canvas->translate(10, 10); 83 canvas->translate(10, 10);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 fSize = fBM.height(); 117 fSize = fBM.height();
122 } 118 }
123 private: 119 private:
124 typedef skiagm::GM INHERITED; 120 typedef skiagm::GM INHERITED;
125 }; 121 };
126 122
127 ////////////////////////////////////////////////////////////////////////////// 123 //////////////////////////////////////////////////////////////////////////////
128 124
129 125
130 DEF_GM( return new FilterIndiaBoxGM("box.gif"); ) 126 DEF_GM( return new FilterIndiaBoxGM("box.gif"); )
OLDNEW
« no previous file with comments | « gm/drawlooper.cpp ('k') | gm/gradientDirtyLaundry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698