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

Side by Side Diff: cc/resources/resource_util.h

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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 | « cc/resources/resource_provider_unittest.cc ('k') | cc/resources/resource_util_unittest.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CC_RESOURCES_RESOURCE_UTIL_H_ 5 #ifndef CC_RESOURCES_RESOURCE_UTIL_H_
6 #define CC_RESOURCES_RESOURCE_UTIL_H_ 6 #define CC_RESOURCES_RESOURCE_UTIL_H_
7 7
8 #include <stddef.h>
9
8 #include <limits> 10 #include <limits>
9 11
12 #include "base/macros.h"
10 #include "base/numerics/safe_math.h" 13 #include "base/numerics/safe_math.h"
11 #include "cc/base/cc_export.h" 14 #include "cc/base/cc_export.h"
12 #include "cc/base/math_util.h" 15 #include "cc/base/math_util.h"
13 #include "cc/resources/resource_format.h" 16 #include "cc/resources/resource_format.h"
14 #include "ui/gfx/geometry/size.h" 17 #include "ui/gfx/geometry/size.h"
15 18
16 namespace cc { 19 namespace cc {
17 20
18 class CC_EXPORT ResourceUtil { 21 class CC_EXPORT ResourceUtil {
19 public: 22 public:
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 bytes = MathUtil::UncheckedRoundUp<T>(bytes, 4); 216 bytes = MathUtil::UncheckedRoundUp<T>(bytes, 4);
214 if (verify_size) 217 if (verify_size)
215 bytes *= height; 218 bytes *= height;
216 219
217 return bytes; 220 return bytes;
218 } 221 }
219 222
220 } // namespace cc 223 } // namespace cc
221 224
222 #endif // CC_RESOURCES_RESOURCE_UTIL_H_ 225 #endif // CC_RESOURCES_RESOURCE_UTIL_H_
OLDNEW
« no previous file with comments | « cc/resources/resource_provider_unittest.cc ('k') | cc/resources/resource_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698