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 IOS_CHROME_BROWSER_WEBP_TRANSCODE_WEBP_DECODER_H_ | 5 #ifndef COMPONENTS_IMAGE_FETCHER_IOS_WEBP_DECODER_H_ |
6 #define IOS_CHROME_BROWSER_WEBP_TRANSCODE_WEBP_DECODER_H_ | 6 #define COMPONENTS_IMAGE_FETCHER_IOS_WEBP_DECODER_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "base/mac/scoped_nsobject.h" | 13 #include "base/mac/scoped_nsobject.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "third_party/libwebp/webp/decode.h" | 15 #include "third_party/libwebp/webp/decode.h" |
16 | 16 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 WebPDecoderConfig config_; | 68 WebPDecoderConfig config_; |
69 WebpDecoder::State state_; | 69 WebpDecoder::State state_; |
70 std::unique_ptr<WebPIDecoder, WebPIDecoderDeleter> incremental_decoder_; | 70 std::unique_ptr<WebPIDecoder, WebPIDecoderDeleter> incremental_decoder_; |
71 base::scoped_nsobject<NSData> output_buffer_; | 71 base::scoped_nsobject<NSData> output_buffer_; |
72 base::scoped_nsobject<NSMutableData> features_; | 72 base::scoped_nsobject<NSMutableData> features_; |
73 int has_alpha_; | 73 int has_alpha_; |
74 }; | 74 }; |
75 | 75 |
76 } // namespace webp_transcode | 76 } // namespace webp_transcode |
77 | 77 |
78 #endif // IOS_CHROME_BROWSER_WEBP_TRANSCODE_WEBP_DECODER_H_ | 78 #endif // COMPONENTS_IMAGE_FETCHER_IOS_WEBP_DECODER_H_ |
OLD | NEW |