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

Unified Diff: cc/tiles/tile_manager.h

Issue 1951193002: cc: Add mailbox support to ResourceProvider write locks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@worker_context_stream
Patch Set: ericrk's review Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: cc/tiles/tile_manager.h
diff --git a/cc/tiles/tile_manager.h b/cc/tiles/tile_manager.h
index 588bed8decfaa05cf5c1c92a0d15b2686ef5ff60..87a8e5c197693c09782b69367c608fa8fedf2416 100644
--- a/cc/tiles/tile_manager.h
+++ b/cc/tiles/tile_manager.h
@@ -120,6 +120,7 @@ class CC_EXPORT TileManager {
void SetResources(ResourcePool* resource_pool,
ImageDecodeController* image_decode_controller,
TileTaskManager* tile_task_manager,
+ RasterBufferProvider* raster_buffer_provider,
size_t scheduled_raster_task_limit,
bool use_gpu_rasterization);
@@ -148,8 +149,7 @@ class CC_EXPORT TileManager {
TileDrawInfo& draw_info = tiles[i]->draw_info();
draw_info.resource_ = resource_pool_->AcquireResource(
tiles[i]->desired_texture_size(),
- tile_task_manager_->GetRasterBufferProvider()->GetResourceFormat(
- false));
+ raster_buffer_provider_->GetResourceFormat(false));
}
}
@@ -167,6 +167,9 @@ class CC_EXPORT TileManager {
void SetTileTaskManagerForTesting(TileTaskManager* tile_task_manager);
+ void SetRasterBufferProviderForTesting(
+ RasterBufferProvider* raster_buffer_provider);
+
void FreeResourcesAndCleanUpReleasedTilesForTesting() {
FreeResourcesForReleasedTiles();
CleanUpReleasedTiles();
@@ -294,6 +297,7 @@ class CC_EXPORT TileManager {
base::SequencedTaskRunner* task_runner_;
ResourcePool* resource_pool_;
TileTaskManager* tile_task_manager_;
+ RasterBufferProvider* raster_buffer_provider_;
GlobalStateThatImpactsTilePriority global_state_;
size_t scheduled_raster_task_limit_;
const bool use_partial_raster_;

Powered by Google App Engine
This is Rietveld 408576698