OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_WEBP_TRANSCODE_WEBP_DECODER_H_ | 5 #ifndef COMPONENTS_WEBP_TRANSCODE_WEBP_DECODER_H_ |
6 #define COMPONENTS_WEBP_TRANSCODE_WEBP_DECODER_H_ | 6 #define COMPONENTS_WEBP_TRANSCODE_WEBP_DECODER_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 #include <stddef.h> |
9 | 10 |
10 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "third_party/libwebp/webp/decode.h" | 14 #include "third_party/libwebp/webp/decode.h" |
14 | 15 |
15 @class NSData; | 16 @class NSData; |
16 | 17 |
17 namespace webp_transcode { | 18 namespace webp_transcode { |
18 | 19 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 WebpDecoder::State state_; | 68 WebpDecoder::State state_; |
68 scoped_ptr<WebPIDecoder, WebPIDecoderDeleter> incremental_decoder_; | 69 scoped_ptr<WebPIDecoder, WebPIDecoderDeleter> incremental_decoder_; |
69 base::scoped_nsobject<NSData> output_buffer_; | 70 base::scoped_nsobject<NSData> output_buffer_; |
70 base::scoped_nsobject<NSMutableData> features_; | 71 base::scoped_nsobject<NSMutableData> features_; |
71 int has_alpha_; | 72 int has_alpha_; |
72 }; | 73 }; |
73 | 74 |
74 } // namespace webp_transcode | 75 } // namespace webp_transcode |
75 | 76 |
76 #endif // COMPONENTS_WEBP_TRANSCODE_WEBP_DECODER_H_ | 77 #endif // COMPONENTS_WEBP_TRANSCODE_WEBP_DECODER_H_ |
OLD | NEW |