OLD | NEW |
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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 ResourceFormat DetermineResourceFormat(const Tile* tile) const; | 325 ResourceFormat DetermineResourceFormat(const Tile* tile) const; |
326 bool DetermineResourceRequiresSwizzle(const Tile* tile) const; | 326 bool DetermineResourceRequiresSwizzle(const Tile* tile) const; |
327 | 327 |
328 void DidFinishRunningTileTasksRequiredForActivation(); | 328 void DidFinishRunningTileTasksRequiredForActivation(); |
329 void DidFinishRunningTileTasksRequiredForDraw(); | 329 void DidFinishRunningTileTasksRequiredForDraw(); |
330 void DidFinishRunningAllTileTasks(); | 330 void DidFinishRunningAllTileTasks(); |
331 | 331 |
332 scoped_refptr<TileTask> CreateTaskSetFinishedTask( | 332 scoped_refptr<TileTask> CreateTaskSetFinishedTask( |
333 void (TileManager::*callback)()); | 333 void (TileManager::*callback)()); |
334 PrioritizedWorkToSchedule AssignGpuMemoryToTiles(); | 334 PrioritizedWorkToSchedule AssignGpuMemoryToTiles(); |
335 void ScheduleTasks(const PrioritizedWorkToSchedule& work_to_schedule); | 335 void ScheduleTasks(PrioritizedWorkToSchedule work_to_schedule); |
336 | 336 |
337 void PartitionImagesForCheckering(const PrioritizedTile& prioritized_tile, | 337 void PartitionImagesForCheckering(const PrioritizedTile& prioritized_tile, |
338 const gfx::ColorSpace& raster_color_space, | 338 const gfx::ColorSpace& raster_color_space, |
339 std::vector<DrawImage>* sync_decoded_images, | 339 std::vector<DrawImage>* sync_decoded_images, |
340 std::vector<PaintImage>* checkered_images); | 340 std::vector<PaintImage>* checkered_images); |
341 void AddCheckeredImagesToDecodeQueue( | 341 void AddCheckeredImagesToDecodeQueue( |
342 const PrioritizedTile& prioritized_tile, | 342 const PrioritizedTile& prioritized_tile, |
343 const gfx::ColorSpace& raster_color_space, | 343 const gfx::ColorSpace& raster_color_space, |
| 344 CheckerImageTracker::DecodeType decode_type, |
344 CheckerImageTracker::ImageDecodeQueue* image_decode_queue); | 345 CheckerImageTracker::ImageDecodeQueue* image_decode_queue); |
345 | 346 |
346 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> | 347 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
347 ScheduledTasksStateAsValue() const; | 348 ScheduledTasksStateAsValue() const; |
348 | 349 |
349 bool UsePartialRaster() const; | 350 bool UsePartialRaster() const; |
350 | 351 |
351 void CheckPendingGpuWorkTiles(bool issue_signals); | 352 void CheckPendingGpuWorkTiles(bool issue_signals); |
352 | 353 |
353 TileManagerClient* client_; | 354 TileManagerClient* client_; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; | 409 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; |
409 // The |ready_to_draw_callback_weak_ptr_factory_| is never invalidated. | 410 // The |ready_to_draw_callback_weak_ptr_factory_| is never invalidated. |
410 base::WeakPtrFactory<TileManager> ready_to_draw_callback_weak_ptr_factory_; | 411 base::WeakPtrFactory<TileManager> ready_to_draw_callback_weak_ptr_factory_; |
411 | 412 |
412 DISALLOW_COPY_AND_ASSIGN(TileManager); | 413 DISALLOW_COPY_AND_ASSIGN(TileManager); |
413 }; | 414 }; |
414 | 415 |
415 } // namespace cc | 416 } // namespace cc |
416 | 417 |
417 #endif // CC_TILES_TILE_MANAGER_H_ | 418 #endif // CC_TILES_TILE_MANAGER_H_ |
OLD | NEW |