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 return kSkipPicture_Flag | | |
epoger
2013/10/30 18:08:50
Please add a comment here referring to https://cod
bsalomon
2013/10/30 18:12:51
Done.
| |
106 kSkipPipe_Flag | | |
107 kSkipPipeCrossProcess_Flag | | |
108 kSkipTiled_Flag | | |
109 kSkipScaledReplay_Flag; | |
110 #else | |
111 return 0; | |
112 #endif | |
113 } | |
114 | |
103 private: | 115 private: |
104 typedef skiagm::GM INHERITED; | 116 typedef skiagm::GM INHERITED; |
105 }; | 117 }; |
106 | 118 |
107 ////////////////////////////////////////////////////////////////////////////// | 119 ////////////////////////////////////////////////////////////////////////////// |
108 | 120 |
109 // This GM allocates more memory than Android devices are capable of fulfilling. | 121 // This GM allocates more memory than Android devices are capable of fulfilling. |
110 #ifndef SK_BUILD_FOR_ANDROID | 122 #ifndef SK_BUILD_FOR_ANDROID |
111 static skiagm::GM* MyFactory(void*) { return new VeryLargeBitmapGM; } | 123 static skiagm::GM* MyFactory(void*) { return new VeryLargeBitmapGM; } |
112 static skiagm::GMRegistry reg(MyFactory); | 124 static skiagm::GMRegistry reg(MyFactory); |
113 #endif | 125 #endif |
OLD | NEW |