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

Side by Side Diff: ui/gfx/codec/png_codec.h

Issue 23486010: Adds a gfx_export.h to ui/gfx and converts all code in ui/gfx to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix find and replace error. Created 7 years, 3 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 | « ui/gfx/codec/jpeg_codec.h ('k') | ui/gfx/color_analysis.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/gfx/codec/jpeg_codec.h ('k') | ui/gfx/color_analysis.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698