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

Side by Side Diff: include/images/SkImageEncoder.h

Issue 14298010: Updates to images project. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Name changes Created 7 years, 8 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 | « include/images/SkImageDecoder.h ('k') | src/images/SkImageDecoder_Factory.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkImageEncoder_DEFINED 8 #ifndef SkImageEncoder_DEFINED
9 #define SkImageEncoder_DEFINED 9 #define SkImageEncoder_DEFINED
10 10
11 #include "SkTypes.h" 11 #include "SkTypes.h"
12 12
13 class SkBitmap; 13 class SkBitmap;
14 class SkWStream; 14 class SkWStream;
15 15
16 class SkImageEncoder { 16 class SkImageEncoder {
17 public: 17 public:
18 enum Type { 18 enum Type {
19 kBMP_Type,
20 kGIF_Type,
21 kICO_Type,
19 kJPEG_Type, 22 kJPEG_Type,
20 kPNG_Type, 23 kPNG_Type,
21 kWEBP_Type 24 kWBMP_Type,
25 kWEBP_Type,
22 }; 26 };
23 static SkImageEncoder* Create(Type); 27 static SkImageEncoder* Create(Type);
24 28
25 virtual ~SkImageEncoder(); 29 virtual ~SkImageEncoder();
26 30
27 /* Quality ranges from 0..100 */ 31 /* Quality ranges from 0..100 */
28 enum { 32 enum {
29 kDefaultQuality = 80 33 kDefaultQuality = 80
30 }; 34 };
31 35
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 return SkNEW( Sk ## codec ); \ 81 return SkNEW( Sk ## codec ); \
78 } 82 }
79 83
80 // All the encoders known by Skia. Note that, depending on the compiler settings , 84 // All the encoders known by Skia. Note that, depending on the compiler settings ,
81 // not all of these will be available 85 // not all of these will be available
82 DECLARE_ENCODER_CREATOR(JPEGImageEncoder); 86 DECLARE_ENCODER_CREATOR(JPEGImageEncoder);
83 DECLARE_ENCODER_CREATOR(PNGImageEncoder); 87 DECLARE_ENCODER_CREATOR(PNGImageEncoder);
84 DECLARE_ENCODER_CREATOR(WEBPImageEncoder); 88 DECLARE_ENCODER_CREATOR(WEBPImageEncoder);
85 89
86 #endif 90 #endif
OLDNEW
« no previous file with comments | « include/images/SkImageDecoder.h ('k') | src/images/SkImageDecoder_Factory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698