OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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" |
11 #include "SkBitmapScaler.h" | 11 #include "SkBitmapScaler.h" |
12 #include "SkGradientShader.h" | 12 #include "SkGradientShader.h" |
13 #include "SkTypeface.h" | 13 #include "SkTypeface.h" |
14 #include "SkImageDecoder.h" | |
15 #include "SkStream.h" | 14 #include "SkStream.h" |
16 #include "SkPaint.h" | 15 #include "SkPaint.h" |
17 #include "SkMipMap.h" | 16 #include "SkMipMap.h" |
18 #include "Resources.h" | 17 #include "Resources.h" |
19 #include "sk_tool_utils.h" | 18 #include "sk_tool_utils.h" |
20 | 19 |
21 #define SHOW_MIP_COLOR 0xFF000000 | 20 #define SHOW_MIP_COLOR 0xFF000000 |
22 | 21 |
23 static SkBitmap make_bitmap(int w, int h) { | 22 static SkBitmap make_bitmap(int w, int h) { |
24 SkBitmap bm; | 23 SkBitmap bm; |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 } | 301 } |
303 } | 302 } |
304 | 303 |
305 private: | 304 private: |
306 typedef skiagm::GM INHERITED; | 305 typedef skiagm::GM INHERITED; |
307 }; | 306 }; |
308 DEF_GM( return new ShowMipLevels2(255, 255); ) | 307 DEF_GM( return new ShowMipLevels2(255, 255); ) |
309 DEF_GM( return new ShowMipLevels2(256, 255); ) | 308 DEF_GM( return new ShowMipLevels2(256, 255); ) |
310 DEF_GM( return new ShowMipLevels2(255, 256); ) | 309 DEF_GM( return new ShowMipLevels2(255, 256); ) |
311 DEF_GM( return new ShowMipLevels2(256, 256); ) | 310 DEF_GM( return new ShowMipLevels2(256, 256); ) |
OLD | NEW |