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

Side by Side Diff: gm/factory.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/etc1bitmap.cpp ('k') | gm/filterbitmap.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 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 9
10 #include "Resources.h" 10 #include "Resources.h"
11 #include "SkCanvas.h" 11 #include "SkCanvas.h"
12 #include "SkData.h" 12 #include "SkData.h"
13 #include "SkDiscardableMemoryPool.h" 13 #include "SkDiscardableMemoryPool.h"
14 #include "SkDiscardablePixelRef.h" 14 #include "SkDiscardablePixelRef.h"
15 #include "SkImageDecoder.h"
16 #include "SkImageGeneratorPriv.h" 15 #include "SkImageGeneratorPriv.h"
17 #include "SkOSFile.h" 16 #include "SkOSFile.h"
18 #include "SkStream.h" 17 #include "SkStream.h"
19 18
20 namespace skiagm { 19 namespace skiagm {
21 20
22 /** 21 /**
23 * Draw a PNG created by SkBitmapFactory. 22 * Draw a PNG created by SkBitmapFactory.
24 */ 23 */
25 class FactoryGM : public GM { 24 class FactoryGM : public GM {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 58
60 typedef GM INHERITED; 59 typedef GM INHERITED;
61 }; 60 };
62 61
63 ////////////////////////////////////////////////////////////////////////////// 62 //////////////////////////////////////////////////////////////////////////////
64 63
65 static GM* MyFactory(void*) { return new FactoryGM; } 64 static GM* MyFactory(void*) { return new FactoryGM; }
66 static GMRegistry reg(MyFactory); 65 static GMRegistry reg(MyFactory);
67 66
68 } // namespace skiagm 67 } // namespace skiagm
OLDNEW
« no previous file with comments | « gm/etc1bitmap.cpp ('k') | gm/filterbitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698