Add ICU message format support
[chromium-blink-merge.git] / content / public / child / image_decoder_utils.h
blobc85893d7a513b34713877c64d84a94d592267182
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_CHILD_IMAGE_DECODER_UTILS_H_
6 #define CONTENT_PUBLIC_CHILD_IMAGE_DECODER_UTILS_H_
8 #include "base/basictypes.h"
9 #include "content/common/content_export.h"
11 class SkBitmap;
13 namespace gfx {
14 class Size;
17 namespace content {
19 // Helper function to decode the image using the data passed in.
20 // On success returns the decoded image.
21 // On failure returns an empty bitmap.
22 CONTENT_EXPORT SkBitmap DecodeImage(const unsigned char* data,
23 const gfx::Size& desired_image_size,
24 size_t size);
25 } // namespace content
27 #endif // CONTENT_PUBLIC_CHILD_IMAGE_DECODER_UTILS_H_