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

Side by Side Diff: components/webp_transcode/webp_decoder.mm

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
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 #include "components/webp_transcode/webp_decoder.h" 5 #include "components/webp_transcode/webp_decoder.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 #include <stdint.h>
8 #import <UIKit/UIKit.h> 9 #import <UIKit/UIKit.h>
9 10
10 #include "base/logging.h" 11 #include "base/logging.h"
11 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
12 13
13 namespace { 14 namespace {
14 15
15 const uint8_t kNumIfdEntries = 15; 16 const uint8_t kNumIfdEntries = 15;
16 const unsigned int kExtraDataSize = 16; 17 const unsigned int kExtraDataSize = 16;
17 // 10b for signature/header + n * 12b entries + 4b for IFD terminator: 18 // 10b for signature/header + n * 12b entries + 4b for IFD terminator:
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 } 243 }
243 UMA_HISTOGRAM_ENUMERATION("WebP.DecodedImageFormat", format, 244 UMA_HISTOGRAM_ENUMERATION("WebP.DecodedImageFormat", format,
244 DECODED_FORMAT_COUNT); 245 DECODED_FORMAT_COUNT);
245 delegate_->SetImageFeatures([result_data length], format); 246 delegate_->SetImageFeatures([result_data length], format);
246 delegate_->OnDataDecoded(result_data); 247 delegate_->OnDataDecoded(result_data);
247 output_buffer_.reset(); 248 output_buffer_.reset();
248 return true; 249 return true;
249 } 250 }
250 251
251 } // namespace webp_transcode 252 } // namespace webp_transcode
OLDNEW
« no previous file with comments | « components/webp_transcode/webp_decoder.h ('k') | components/webp_transcode/webp_decoder_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698