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

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

Issue 6246027: Move src/gfx/ to src/ui/gfx... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/DEPS ('k') | ui/gfx/codec/jpeg_codec.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 GFX_CODEC_JPEG_CODEC_H_ 5 #ifndef UI_GFX_CODEC_JPEG_CODEC_H_
6 #define GFX_CODEC_JPEG_CODEC_H_ 6 #define UI_GFX_CODEC_JPEG_CODEC_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 class SkBitmap; 11 class SkBitmap;
12 12
13 namespace gfx { 13 namespace gfx {
14 14
15 // Interface for encoding/decoding JPEG data. This is a wrapper around libjpeg, 15 // Interface for encoding/decoding JPEG data. This is a wrapper around libjpeg,
16 // which has an inconvenient interface for callers. This is only used for UI 16 // which has an inconvenient interface for callers. This is only used for UI
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 int* w, int* h); 58 int* w, int* h);
59 59
60 // Decodes the JPEG data contained in input of length input_size. If 60 // Decodes the JPEG data contained in input of length input_size. If
61 // successful, a SkBitmap is created and returned. It is up to the caller 61 // successful, a SkBitmap is created and returned. It is up to the caller
62 // to delete the returned bitmap. 62 // to delete the returned bitmap.
63 static SkBitmap* Decode(const unsigned char* input, size_t input_size); 63 static SkBitmap* Decode(const unsigned char* input, size_t input_size);
64 }; 64 };
65 65
66 } // namespace gfx 66 } // namespace gfx
67 67
68 #endif // GFX_CODEC_JPEG_CODEC_H_ 68 #endif // UI_GFX_CODEC_JPEG_CODEC_H_
OLDNEW
« no previous file with comments | « ui/gfx/codec/DEPS ('k') | ui/gfx/codec/jpeg_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698