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

Side by Side Diff: cc/tiles/tile_manager.h

Issue 1418573002: cc: Add image decode control in the compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
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 <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void Flush(); 135 void Flush();
136 136
137 ScopedTilePtr CreateTile(const Tile::CreateInfo& info, 137 ScopedTilePtr CreateTile(const Tile::CreateInfo& info,
138 int layer_id, 138 int layer_id,
139 int source_frame_number, 139 int source_frame_number,
140 int flags); 140 int flags);
141 141
142 bool IsReadyToActivate() const; 142 bool IsReadyToActivate() const;
143 bool IsReadyToDraw() const; 143 bool IsReadyToDraw() const;
144 144
145 ImageDecodeController* GetImageDecodeController() {
146 return &image_decode_controller_;
147 }
148
145 scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue() 149 scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue()
146 const; 150 const;
147 void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const; 151 void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const;
148 const MemoryHistory::Entry& memory_stats_from_last_assign() const { 152 const MemoryHistory::Entry& memory_stats_from_last_assign() const {
149 return memory_stats_from_last_assign_; 153 return memory_stats_from_last_assign_;
150 } 154 }
151 155
152 // Public methods for testing. 156 // Public methods for testing.
153 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) { 157 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) {
154 for (size_t i = 0; i < tiles.size(); ++i) { 158 for (size_t i = 0; i < tiles.size(); ++i) {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 bool did_notify_all_tile_tasks_completed; 334 bool did_notify_all_tile_tasks_completed;
331 } signals_; 335 } signals_;
332 336
333 UniqueNotifier signals_check_notifier_; 337 UniqueNotifier signals_check_notifier_;
334 338
335 bool has_scheduled_tile_tasks_; 339 bool has_scheduled_tile_tasks_;
336 340
337 uint64_t prepare_tiles_count_; 341 uint64_t prepare_tiles_count_;
338 uint64_t next_tile_id_; 342 uint64_t next_tile_id_;
339 343
344 base::hash_map<Tile::Id, std::vector<DrawImage>> scheduled_draw_images_;
345
340 DISALLOW_COPY_AND_ASSIGN(TileManager); 346 DISALLOW_COPY_AND_ASSIGN(TileManager);
341 }; 347 };
342 348
343 } // namespace cc 349 } // namespace cc
344 350
345 #endif // CC_TILES_TILE_MANAGER_H_ 351 #endif // CC_TILES_TILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698