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

Side by Side Diff: cc/tiles/tile_manager.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/tile.cc ('k') | cc/tiles/tile_manager.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_TILE_MANAGER_H_ 5 #ifndef CC_TILES_TILE_MANAGER_H_
6 #define CC_TILES_TILE_MANAGER_H_ 6 #define CC_TILES_TILE_MANAGER_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
8 #include <set> 11 #include <set>
9 #include <utility> 12 #include <utility>
10 #include <vector> 13 #include <vector>
11 14
12 #include "base/containers/hash_tables.h" 15 #include "base/containers/hash_tables.h"
16 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
14 #include "base/values.h" 18 #include "base/values.h"
15 #include "cc/base/unique_notifier.h" 19 #include "cc/base/unique_notifier.h"
16 #include "cc/playback/display_list_raster_source.h" 20 #include "cc/playback/display_list_raster_source.h"
17 #include "cc/raster/tile_task_runner.h" 21 #include "cc/raster/tile_task_runner.h"
18 #include "cc/resources/memory_history.h" 22 #include "cc/resources/memory_history.h"
19 #include "cc/resources/resource_pool.h" 23 #include "cc/resources/resource_pool.h"
20 #include "cc/tiles/eviction_tile_priority_queue.h" 24 #include "cc/tiles/eviction_tile_priority_queue.h"
21 #include "cc/tiles/image_decode_controller.h" 25 #include "cc/tiles/image_decode_controller.h"
22 #include "cc/tiles/raster_tile_priority_queue.h" 26 #include "cc/tiles/raster_tile_priority_queue.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 MemoryUsage(size_t memory_bytes, size_t resource_count); 225 MemoryUsage(size_t memory_bytes, size_t resource_count);
222 226
223 static MemoryUsage FromConfig(const gfx::Size& size, ResourceFormat format); 227 static MemoryUsage FromConfig(const gfx::Size& size, ResourceFormat format);
224 static MemoryUsage FromTile(const Tile* tile); 228 static MemoryUsage FromTile(const Tile* tile);
225 229
226 MemoryUsage& operator+=(const MemoryUsage& other); 230 MemoryUsage& operator+=(const MemoryUsage& other);
227 MemoryUsage& operator-=(const MemoryUsage& other); 231 MemoryUsage& operator-=(const MemoryUsage& other);
228 MemoryUsage operator-(const MemoryUsage& other); 232 MemoryUsage operator-(const MemoryUsage& other);
229 233
230 bool Exceeds(const MemoryUsage& limit) const; 234 bool Exceeds(const MemoryUsage& limit) const;
231 int64 memory_bytes() const { return memory_bytes_; } 235 int64_t memory_bytes() const { return memory_bytes_; }
232 236
233 private: 237 private:
234 int64 memory_bytes_; 238 int64_t memory_bytes_;
235 int resource_count_; 239 int resource_count_;
236 }; 240 };
237 241
238 void OnRasterTaskCompleted( 242 void OnRasterTaskCompleted(
239 Tile::Id tile, 243 Tile::Id tile,
240 Resource* resource, 244 Resource* resource,
241 const DisplayListRasterSource::SolidColorAnalysis& analysis, 245 const DisplayListRasterSource::SolidColorAnalysis& analysis,
242 bool was_canceled); 246 bool was_canceled);
243 void UpdateTileDrawInfo( 247 void UpdateTileDrawInfo(
244 Tile* tile, 248 Tile* tile,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 uint64_t next_tile_id_; 337 uint64_t next_tile_id_;
334 338
335 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; 339 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_;
336 340
337 DISALLOW_COPY_AND_ASSIGN(TileManager); 341 DISALLOW_COPY_AND_ASSIGN(TileManager);
338 }; 342 };
339 343
340 } // namespace cc 344 } // namespace cc
341 345
342 #endif // CC_TILES_TILE_MANAGER_H_ 346 #endif // CC_TILES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/tiles/tile.cc ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698