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

Side by Side Diff: cc/tile_manager.h

Issue 12353003: cc: Refactored Tile::GetResourceId (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more changes Created 7 years, 9 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 | Annotate | Revision Log
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_TILE_MANAGER_H_ 5 #ifndef CC_TILE_MANAGER_H_
6 #define CC_TILE_MANAGER_H_ 6 #define CC_TILE_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // This is state that is specific to a tile that is 68 // This is state that is specific to a tile that is
69 // managed by the TileManager. 69 // managed by the TileManager.
70 class CC_EXPORT ManagedTileState { 70 class CC_EXPORT ManagedTileState {
71 public: 71 public:
72 ManagedTileState(); 72 ManagedTileState();
73 ~ManagedTileState(); 73 ~ManagedTileState();
74 scoped_ptr<base::Value> AsValue() const; 74 scoped_ptr<base::Value> AsValue() const;
75 75
76 // Persisted state: valid all the time. 76 // Persisted state: valid all the time.
77 bool can_use_gpu_memory; 77 bool can_use_gpu_memory;
78 bool can_be_freed;
nduca 2013/03/07 21:52:29 I would like to see drawing_info_ be a member of M
79 scoped_ptr<ResourcePool::Resource> resource;
80 bool resource_is_being_initialized;
81 bool contents_swizzled;
82 bool need_to_gather_pixel_refs; 78 bool need_to_gather_pixel_refs;
83 std::list<skia::LazyPixelRef*> pending_pixel_refs; 79 std::list<skia::LazyPixelRef*> pending_pixel_refs;
84 TileRasterState raster_state; 80 TileRasterState raster_state;
85 81
86 // Ephemeral state, valid only during Manage. 82 // Ephemeral state, valid only during Manage.
87 TileManagerBin bin[NUM_BIN_PRIORITIES]; 83 TileManagerBin bin[NUM_BIN_PRIORITIES];
88 TileManagerBin tree_bin[NUM_TREES]; 84 TileManagerBin tree_bin[NUM_TREES];
89 // The bin that the tile would have if the GPU memory manager had a maximally permissive policy, 85 // The bin that the tile would have if the GPU memory manager had a maximally permissive policy,
90 // send to the GPU memory manager to determine policy. 86 // send to the GPU memory manager to determine policy.
91 TileManagerBin gpu_memmgr_stats_bin; 87 TileManagerBin gpu_memmgr_stats_bin;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 bool did_schedule_cheap_tasks_; 230 bool did_schedule_cheap_tasks_;
235 bool allow_cheap_tasks_; 231 bool allow_cheap_tasks_;
236 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; 232 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS];
237 233
238 DISALLOW_COPY_AND_ASSIGN(TileManager); 234 DISALLOW_COPY_AND_ASSIGN(TileManager);
239 }; 235 };
240 236
241 } // namespace cc 237 } // namespace cc
242 238
243 #endif // CC_TILE_MANAGER_H_ 239 #endif // CC_TILE_MANAGER_H_
OLDNEW
« cc/tile_drawing_info.h ('K') | « cc/tile_drawing_info.cc ('k') | cc/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698