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

Side by Side Diff: gm/showmiplevels.cpp

Issue 1791583002: 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"
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
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); )
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