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

Side by Side Diff: cc/tiles/picture_layer_tiling.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/tiles/image_decode_controller.cc ('k') | cc/tiles/picture_layer_tiling.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_TILES_PICTURE_LAYER_TILING_H_ 5 #ifndef CC_TILES_PICTURE_LAYER_TILING_H_
6 #define CC_TILES_PICTURE_LAYER_TILING_H_ 6 #define CC_TILES_PICTURE_LAYER_TILING_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
8 #include <map> 11 #include <map>
9 #include <utility> 12 #include <utility>
10 #include <vector> 13 #include <vector>
11 14
12 #include "base/basictypes.h"
13 #include "base/containers/scoped_ptr_hash_map.h" 15 #include "base/containers/scoped_ptr_hash_map.h"
16 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
15 #include "cc/base/cc_export.h" 18 #include "cc/base/cc_export.h"
16 #include "cc/base/region.h" 19 #include "cc/base/region.h"
17 #include "cc/base/tiling_data.h" 20 #include "cc/base/tiling_data.h"
18 #include "cc/tiles/tile.h" 21 #include "cc/tiles/tile.h"
19 #include "cc/tiles/tile_priority.h" 22 #include "cc/tiles/tile_priority.h"
20 #include "cc/trees/occlusion.h" 23 #include "cc/trees/occlusion.h"
21 #include "ui/gfx/geometry/rect.h" 24 #include "ui/gfx/geometry/rect.h"
22 25
23 namespace base { 26 namespace base {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 int index_x; 66 int index_x;
64 int index_y; 67 int index_y;
65 }; 68 };
66 69
67 } // namespace cc 70 } // namespace cc
68 71
69 namespace BASE_HASH_NAMESPACE { 72 namespace BASE_HASH_NAMESPACE {
70 template <> 73 template <>
71 struct hash<cc::TileMapKey> { 74 struct hash<cc::TileMapKey> {
72 size_t operator()(const cc::TileMapKey& key) const { 75 size_t operator()(const cc::TileMapKey& key) const {
73 uint16 value1 = static_cast<uint16>(key.index_x); 76 uint16_t value1 = static_cast<uint16_t>(key.index_x);
74 uint16 value2 = static_cast<uint16>(key.index_y); 77 uint16_t value2 = static_cast<uint16_t>(key.index_y);
75 uint32 value1_32 = value1; 78 uint32_t value1_32 = value1;
76 return (value1_32 << 16) | value2; 79 return (value1_32 << 16) | value2;
77 } 80 }
78 }; 81 };
79 } // namespace BASE_HASH_NAMESPACE 82 } // namespace BASE_HASH_NAMESPACE
80 83
81 namespace cc { 84 namespace cc {
82 85
83 class CC_EXPORT PictureLayerTiling { 86 class CC_EXPORT PictureLayerTiling {
84 public: 87 public:
85 static const int kBorderTexels = 1; 88 static const int kBorderTexels = 1;
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 bool has_eventually_rect_tiles_; 412 bool has_eventually_rect_tiles_;
410 bool all_tiles_done_; 413 bool all_tiles_done_;
411 414
412 private: 415 private:
413 DISALLOW_ASSIGN(PictureLayerTiling); 416 DISALLOW_ASSIGN(PictureLayerTiling);
414 }; 417 };
415 418
416 } // namespace cc 419 } // namespace cc
417 420
418 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ 421 #endif // CC_TILES_PICTURE_LAYER_TILING_H_
OLDNEW
« no previous file with comments | « cc/tiles/image_decode_controller.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698