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

Side by Side Diff: components/image_fetcher/ios/webp_decoder.mm

Issue 2699633006: Move WebpDecoder from ios/web to components/image_fetcher (Closed)
Patch Set: Separate header Created 3 years, 10 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 #import "ios/web/public/image_fetcher/webp_decoder.h" 5 #import "components/image_fetcher/ios/webp_decoder.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 #import <UIKit/UIKit.h>
9
8 #include <stdint.h> 10 #include <stdint.h>
9 #import <UIKit/UIKit.h>
10 11
11 #include "base/logging.h" 12 #include "base/logging.h"
12 #include "base/metrics/histogram_macros.h" 13 #include "base/metrics/histogram_macros.h"
13 14
14 #if !defined(__has_feature) || !__has_feature(objc_arc) 15 #if !defined(__has_feature) || !__has_feature(objc_arc)
15 #error "This file requires ARC support." 16 #error "This file requires ARC support."
16 #endif 17 #endif
17 18
18 namespace { 19 namespace {
19 20
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 } 301 }
301 UMA_HISTOGRAM_ENUMERATION("WebP.DecodedImageFormat", format, 302 UMA_HISTOGRAM_ENUMERATION("WebP.DecodedImageFormat", format,
302 DECODED_FORMAT_COUNT); 303 DECODED_FORMAT_COUNT);
303 delegate_->SetImageFeatures([result_data length], format); 304 delegate_->SetImageFeatures([result_data length], format);
304 delegate_->OnDataDecoded(result_data); 305 delegate_->OnDataDecoded(result_data);
305 output_buffer_.reset(); 306 output_buffer_.reset();
306 return true; 307 return true;
307 } 308 }
308 309
309 } // namespace webp_transcode 310 } // namespace webp_transcode
OLDNEW
« no previous file with comments | « components/image_fetcher/ios/webp_decoder.h ('k') | components/image_fetcher/ios/webp_decoder_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698