| OLD | NEW |
| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 show_bm(canvas, medium, medium, colors); | 93 show_bm(canvas, medium, medium, colors); |
| 94 canvas->translate(0, SkIntToScalar(150)); | 94 canvas->translate(0, SkIntToScalar(150)); |
| 95 | 95 |
| 96 colors[0] = SK_ColorGREEN; | 96 colors[0] = SK_ColorGREEN; |
| 97 colors[1] = SK_ColorYELLOW; | 97 colors[1] = SK_ColorYELLOW; |
| 98 // as of this writing, the raster code will fail to draw the scaled vers
ion | 98 // as of this writing, the raster code will fail to draw the scaled vers
ion |
| 99 // since it has a 64K limit on x,y coordinates... (but gpu should succee
d) | 99 // since it has a 64K limit on x,y coordinates... (but gpu should succee
d) |
| 100 show_bm(canvas, veryBig, small, colors); | 100 show_bm(canvas, veryBig, small, colors); |
| 101 } | 101 } |
| 102 | 102 |
| 103 virtual uint32_t onGetFlags() const { |
| 104 #ifdef SK_BUILD_FOR_WIN32 |
| 105 // The Windows bot runs out of memory in replay modes on this test in 32
bit builds: |
| 106 // http://skbug.com/1756 |
| 107 return kSkipPicture_Flag | |
| 108 kSkipPipe_Flag | |
| 109 kSkipPipeCrossProcess_Flag | |
| 110 kSkipTiled_Flag | |
| 111 kSkipScaledReplay_Flag; |
| 112 #else |
| 113 return 0; |
| 114 #endif |
| 115 } |
| 116 |
| 103 private: | 117 private: |
| 104 typedef skiagm::GM INHERITED; | 118 typedef skiagm::GM INHERITED; |
| 105 }; | 119 }; |
| 106 | 120 |
| 107 ////////////////////////////////////////////////////////////////////////////// | 121 ////////////////////////////////////////////////////////////////////////////// |
| 108 | 122 |
| 109 // This GM allocates more memory than Android devices are capable of fulfilling. | 123 // This GM allocates more memory than Android devices are capable of fulfilling. |
| 110 #ifndef SK_BUILD_FOR_ANDROID | 124 #ifndef SK_BUILD_FOR_ANDROID |
| 111 static skiagm::GM* MyFactory(void*) { return new VeryLargeBitmapGM; } | 125 static skiagm::GM* MyFactory(void*) { return new VeryLargeBitmapGM; } |
| 112 static skiagm::GMRegistry reg(MyFactory); | 126 static skiagm::GMRegistry reg(MyFactory); |
| 113 #endif | 127 #endif |
| OLD | NEW |