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

Side by Side Diff: gm/verylargebitmap.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/twopointradial.cpp ('k') | src/core/SkCanvas.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 "SkGradientShader.h" 10 #include "SkGradientShader.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 show_bm(canvas, medium, medium, colors); 92 show_bm(canvas, medium, medium, colors);
93 canvas->translate(0, SkIntToScalar(150)); 93 canvas->translate(0, SkIntToScalar(150));
94 94
95 colors[0] = SK_ColorGREEN; 95 colors[0] = SK_ColorGREEN;
96 colors[1] = SK_ColorYELLOW; 96 colors[1] = SK_ColorYELLOW;
97 // as of this writing, the raster code will fail to draw the scaled vers ion 97 // as of this writing, the raster code will fail to draw the scaled vers ion
98 // since it has a 64K limit on x,y coordinates... (but gpu should succee d) 98 // since it has a 64K limit on x,y coordinates... (but gpu should succee d)
99 show_bm(canvas, veryBig, small, colors); 99 show_bm(canvas, veryBig, small, colors);
100 } 100 }
101 101
102 #ifdef SK_BUILD_FOR_WIN32
102 virtual uint32_t onGetFlags() const { 103 virtual uint32_t onGetFlags() const {
103 #ifdef SK_BUILD_FOR_WIN32
104 // The Windows bot runs out of memory in replay modes on this test in 32 bit builds: 104 // The Windows bot runs out of memory in replay modes on this test in 32 bit builds:
105 // http://skbug.com/1756 105 // http://skbug.com/1756
106 return kSkipPicture_Flag | 106 return kSkipPicture_Flag |
107 kSkipPipe_Flag | 107 kSkipPipe_Flag |
108 kSkipPipeCrossProcess_Flag | 108 kSkipPipeCrossProcess_Flag |
109 kSkipTiled_Flag | 109 kSkipTiled_Flag |
110 kSkipScaledReplay_Flag; 110 kSkipScaledReplay_Flag;
111 #else 111 }
112 return kSkipTiled_Flag;
113 #endif 112 #endif
114 }
115 113
116 private: 114 private:
117 typedef skiagm::GM INHERITED; 115 typedef skiagm::GM INHERITED;
118 }; 116 };
119 117
120 ////////////////////////////////////////////////////////////////////////////// 118 //////////////////////////////////////////////////////////////////////////////
121 119
122 static skiagm::GM* MyFactory(void*) { return new VeryLargeBitmapGM; } 120 static skiagm::GM* MyFactory(void*) { return new VeryLargeBitmapGM; }
123 static skiagm::GMRegistry reg(MyFactory); 121 static skiagm::GMRegistry reg(MyFactory);
OLDNEW
« no previous file with comments | « gm/twopointradial.cpp ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698