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

Side by Side Diff: gm/showmiplevels.cpp

Issue 1806383002: Revert of Remove uses of SkImageDecoder from gms (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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/pixelxorxfermode.cpp ('k') | gm/tiledscaledbitmap.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 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
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); )
OLDNEW
« no previous file with comments | « gm/pixelxorxfermode.cpp ('k') | gm/tiledscaledbitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698