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

Side by Side Diff: content/public/child/image_decoder_utils.h

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/public/test/render_widget_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CONTENT_PUBLIC_UTILITY_IMAGE_DECODER_UTILS_H_ 5 #ifndef CONTENT_PUBLIC_UTILITY_IMAGE_DECODER_UTILS_H_
6 #define CONTENT_PUBLIC_UTILITY_IMAGE_DECODER_UTILS_H_ 6 #define CONTENT_PUBLIC_UTILITY_IMAGE_DECODER_UTILS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ui/gfx/size.h" 10 #include "ui/gfx/geometry/size.h"
11 11
12 class SkBitmap; 12 class SkBitmap;
13 13
14 namespace content { 14 namespace content {
15 15
16 // Helper function to decode the image using the data passed in. 16 // Helper function to decode the image using the data passed in.
17 // On success returns the decoded image. 17 // On success returns the decoded image.
18 // On failure returns an empty bitmap. 18 // On failure returns an empty bitmap.
19 CONTENT_EXPORT SkBitmap DecodeImage(const unsigned char* data, 19 CONTENT_EXPORT SkBitmap DecodeImage(const unsigned char* data,
20 const gfx::Size& desired_image_size, 20 const gfx::Size& desired_image_size,
21 size_t size); 21 size_t size);
22 } // namespace content 22 } // namespace content
23 23
24 #endif // CONTENT_PUBLIC_UTILITY_IMAGE_DECODER_UTILS_H_ 24 #endif // CONTENT_PUBLIC_UTILITY_IMAGE_DECODER_UTILS_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/public/test/render_widget_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698