OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GFX_CODEC_PNG_CODEC_H_ | 5 #ifndef UI_GFX_CODEC_PNG_CODEC_H_ |
6 #define UI_GFX_CODEC_PNG_CODEC_H_ | 6 #define UI_GFX_CODEC_PNG_CODEC_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/basictypes.h" | 13 #include "base/macros.h" |
12 #include "ui/gfx/gfx_export.h" | 14 #include "ui/gfx/gfx_export.h" |
13 | 15 |
14 class SkBitmap; | 16 class SkBitmap; |
15 | 17 |
16 namespace gfx { | 18 namespace gfx { |
17 | 19 |
18 class Size; | 20 class Size; |
19 | 21 |
20 // Interface for encoding and decoding PNG data. This is a wrapper around | 22 // Interface for encoding and decoding PNG data. This is a wrapper around |
21 // libpng, which has an inconvenient interface for callers. This is currently | 23 // libpng, which has an inconvenient interface for callers. This is currently |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 static bool Decode(const unsigned char* input, size_t input_size, | 127 static bool Decode(const unsigned char* input, size_t input_size, |
126 SkBitmap* bitmap); | 128 SkBitmap* bitmap); |
127 | 129 |
128 private: | 130 private: |
129 DISALLOW_COPY_AND_ASSIGN(PNGCodec); | 131 DISALLOW_COPY_AND_ASSIGN(PNGCodec); |
130 }; | 132 }; |
131 | 133 |
132 } // namespace gfx | 134 } // namespace gfx |
133 | 135 |
134 #endif // UI_GFX_CODEC_PNG_CODEC_H_ | 136 #endif // UI_GFX_CODEC_PNG_CODEC_H_ |
OLD | NEW |