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