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

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: rebase Created 4 years, 11 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
« no previous file with comments | « cc/tiles/image_decode_controller_unittest.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> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void Flush(); 125 void Flush();
126 126
127 ScopedTilePtr CreateTile(const Tile::CreateInfo& info, 127 ScopedTilePtr CreateTile(const Tile::CreateInfo& info,
128 int layer_id, 128 int layer_id,
129 int source_frame_number, 129 int source_frame_number,
130 int flags); 130 int flags);
131 131
132 bool IsReadyToActivate() const; 132 bool IsReadyToActivate() const;
133 bool IsReadyToDraw() const; 133 bool IsReadyToDraw() const;
134 134
135 ImageDecodeController* GetImageDecodeController() {
136 return &image_decode_controller_;
137 }
138
135 scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue() 139 scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue()
136 const; 140 const;
137 void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const; 141 void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const;
138 const MemoryHistory::Entry& memory_stats_from_last_assign() const { 142 const MemoryHistory::Entry& memory_stats_from_last_assign() const {
139 return memory_stats_from_last_assign_; 143 return memory_stats_from_last_assign_;
140 } 144 }
141 145
142 // Public methods for testing. 146 // Public methods for testing.
143 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) { 147 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) {
144 for (size_t i = 0; i < tiles.size(); ++i) { 148 for (size_t i = 0; i < tiles.size(); ++i) {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 bool did_notify_all_tile_tasks_completed; 330 bool did_notify_all_tile_tasks_completed;
327 } signals_; 331 } signals_;
328 332
329 UniqueNotifier signals_check_notifier_; 333 UniqueNotifier signals_check_notifier_;
330 334
331 bool has_scheduled_tile_tasks_; 335 bool has_scheduled_tile_tasks_;
332 336
333 uint64_t prepare_tiles_count_; 337 uint64_t prepare_tiles_count_;
334 uint64_t next_tile_id_; 338 uint64_t next_tile_id_;
335 339
340 base::hash_map<Tile::Id, std::vector<DrawImage>> scheduled_draw_images_;
341
336 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; 342 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_;
337 343
338 DISALLOW_COPY_AND_ASSIGN(TileManager); 344 DISALLOW_COPY_AND_ASSIGN(TileManager);
339 }; 345 };
340 346
341 } // namespace cc 347 } // namespace cc
342 348
343 #endif // CC_TILES_TILE_MANAGER_H_ 349 #endif // CC_TILES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/tiles/image_decode_controller_unittest.cc ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698