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

Side by Side Diff: gm/samplerstress.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/resizeimagefilter.cpp ('k') | gm/shadows.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 2012 Google Inc. 2 * Copyright 2012 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 "SkShader.h" 10 #include "SkShader.h"
(...skipping 10 matching lines...) Expand all
21 SamplerStressGM() 21 SamplerStressGM()
22 : fTextureCreated(false) 22 : fTextureCreated(false)
23 , fShader(NULL) 23 , fShader(NULL)
24 , fMaskFilter(NULL) { 24 , fMaskFilter(NULL) {
25 } 25 }
26 26
27 virtual ~SamplerStressGM() { 27 virtual ~SamplerStressGM() {
28 } 28 }
29 29
30 protected: 30 protected:
31 virtual uint32_t onGetFlags() const SK_OVERRIDE {
32 return kSkipTiled_Flag;
33 }
34
35 virtual SkString onShortName() { 31 virtual SkString onShortName() {
36 return SkString("samplerstress"); 32 return SkString("samplerstress");
37 } 33 }
38 34
39 virtual SkISize onISize() { 35 virtual SkISize onISize() {
40 return SkISize::Make(640, 480); 36 return SkISize::Make(640, 480);
41 } 37 }
42 38
43 /** 39 /**
44 * Create a red & green stripes on black texture 40 * Create a red & green stripes on black texture
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 143
148 typedef GM INHERITED; 144 typedef GM INHERITED;
149 }; 145 };
150 146
151 ////////////////////////////////////////////////////////////////////////////// 147 //////////////////////////////////////////////////////////////////////////////
152 148
153 static GM* MyFactory(void*) { return new SamplerStressGM; } 149 static GM* MyFactory(void*) { return new SamplerStressGM; }
154 static GMRegistry reg(MyFactory); 150 static GMRegistry reg(MyFactory);
155 151
156 } 152 }
OLDNEW
« no previous file with comments | « gm/resizeimagefilter.cpp ('k') | gm/shadows.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698