OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_IMAGE_DECODER_H_ | 5 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_IMAGE_DECODER_H_ |
6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_IMAGE_DECODER_H_ | 6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_IMAGE_DECODER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 class SkBitmap; | 10 class SkBitmap; |
11 | 11 |
12 namespace blimp { | 12 namespace blimp { |
13 namespace client { | 13 namespace client { |
14 | 14 |
15 // BlimpImageDecoder is an implementation of SkPicture::InstallPixelRefProc | 15 // DecodeBlimpImage is an implementation of SkPicture::InstallPixelRefProc |
16 // which is used by the client to decode WebP images that are part of an | 16 // which is used by the client to decode WebP images that are part of an |
17 // SkPicture. | 17 // SkPicture. |
18 bool BlimpImageDecoder(const void* input, size_t input_size, SkBitmap* bitmap); | 18 bool DecodeBlimpImage(const void* input, size_t input_size, SkBitmap* bitmap); |
19 | 19 |
20 } // namespace client | 20 } // namespace client |
21 } // namespace blimp | 21 } // namespace blimp |
22 | 22 |
23 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_IMAGE_DECODER_H_ | 23 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_IMAGE_DECODER_H_ |
OLD | NEW |