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

Side by Side Diff: gm/factory.cpp

Issue 295243006: hide discardable factory from public imagegenerator api (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | include/core/SkImageGenerator.h » ('j') | tests/ImageDecodingTest.cpp » ('J')
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 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkData.h" 10 #include "SkData.h"
11 #include "SkDecodingImageGenerator.h" 11 #include "SkDecodingImageGenerator.h"
12 #include "SkDiscardableMemoryPool.h" 12 #include "SkDiscardableMemoryPool.h"
13 #include "SkDiscardablePixelRef.h" 13 #include "SkDiscardablePixelRef.h"
14 #include "SkImageDecoder.h" 14 #include "SkImageDecoder.h"
15 #include "SkImageGenerator.h" 15 #include "SkImageGeneratorPriv.h"
16 #include "SkOSFile.h" 16 #include "SkOSFile.h"
17 #include "SkStream.h" 17 #include "SkStream.h"
18 18
19 namespace skiagm { 19 namespace skiagm {
20 20
21 /** 21 /**
22 * Draw a PNG created by SkBitmapFactory. 22 * Draw a PNG created by SkBitmapFactory.
23 */ 23 */
24 class FactoryGM : public GM { 24 class FactoryGM : public GM {
25 public: 25 public:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 typedef GM INHERITED; 66 typedef GM INHERITED;
67 }; 67 };
68 68
69 ////////////////////////////////////////////////////////////////////////////// 69 //////////////////////////////////////////////////////////////////////////////
70 70
71 static GM* MyFactory(void*) { return new FactoryGM; } 71 static GM* MyFactory(void*) { return new FactoryGM; }
72 static GMRegistry reg(MyFactory); 72 static GMRegistry reg(MyFactory);
73 73
74 } // namespace skiagm 74 } // namespace skiagm
OLDNEW
« no previous file with comments | « no previous file | include/core/SkImageGenerator.h » ('j') | tests/ImageDecodingTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698