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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "ui/base/ui_export.h" | 12 #include "ui/gfx/gfx_export.h" |
13 | 13 |
14 class SkBitmap; | 14 class SkBitmap; |
15 | 15 |
16 namespace gfx { | 16 namespace gfx { |
17 | 17 |
18 class Size; | 18 class Size; |
19 | 19 |
20 // Interface for encoding and decoding PNG data. This is a wrapper around | 20 // Interface for encoding and decoding PNG data. This is a wrapper around |
21 // libpng, which has an inconvenient interface for callers. This is currently | 21 // libpng, which has an inconvenient interface for callers. This is currently |
22 // designed for use in tests only (where we control the files), so the handling | 22 // designed for use in tests only (where we control the files), so the handling |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 static SkBitmap* CreateSkBitmapFromBGRAFormat( | 119 static SkBitmap* CreateSkBitmapFromBGRAFormat( |
120 const std::vector<unsigned char>& bgra, int width, int height); | 120 const std::vector<unsigned char>& bgra, int width, int height); |
121 | 121 |
122 private: | 122 private: |
123 DISALLOW_COPY_AND_ASSIGN(PNGCodec); | 123 DISALLOW_COPY_AND_ASSIGN(PNGCodec); |
124 }; | 124 }; |
125 | 125 |
126 } // namespace gfx | 126 } // namespace gfx |
127 | 127 |
128 #endif // UI_GFX_CODEC_PNG_CODEC_H_ | 128 #endif // UI_GFX_CODEC_PNG_CODEC_H_ |
OLD | NEW |