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

Unified Diff: cc/raster/one_copy_tile_task_worker_pool.h

Issue 1379783002: Allow one-copy task tile worker pool to use compressed textures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use memory_efficient_format* settings and revert allocation modifications 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 side-by-side diff with in-line comments
Download patch
Index: cc/raster/one_copy_tile_task_worker_pool.h
diff --git a/cc/raster/one_copy_tile_task_worker_pool.h b/cc/raster/one_copy_tile_task_worker_pool.h
index 08445b03dc6ce02111404dee19832c13f0edae03..9ff6c977387e569c9c6db3f6e51d5cb0a97023d7 100644
--- a/cc/raster/one_copy_tile_task_worker_pool.h
+++ b/cc/raster/one_copy_tile_task_worker_pool.h
@@ -50,7 +50,8 @@ class CC_EXPORT OneCopyTileTaskWorkerPool
int max_copy_texture_chromium_size,
bool use_partial_raster,
int max_staging_buffer_usage_in_bytes,
- bool use_rgba_4444_texture_format);
+ ResourceFormat memory_efficient_format,
+ ResourceFormat memory_efficient_format_with_alpha);
// Overridden from TileTaskWorkerPool:
TileTaskRunner* AsTileTaskRunner() override;
@@ -93,7 +94,8 @@ class CC_EXPORT OneCopyTileTaskWorkerPool
int max_copy_texture_chromium_size,
bool use_partial_raster,
int max_staging_buffer_usage_in_bytes,
- bool use_rgba_4444_texture_format);
+ ResourceFormat memory_efficient_format,
+ ResourceFormat memory_efficient_format_with_alpha);
private:
struct StagingBuffer {
@@ -157,7 +159,8 @@ class CC_EXPORT OneCopyTileTaskWorkerPool
StagingBufferDeque busy_buffers_;
int bytes_scheduled_since_last_flush_;
const int max_staging_buffer_usage_in_bytes_;
- bool use_rgba_4444_texture_format_;
+ ResourceFormat memory_efficient_format_;
+ ResourceFormat memory_efficient_format_with_alpha_;
int staging_buffer_usage_in_bytes_;
int free_staging_buffer_usage_in_bytes_;
const base::TimeDelta staging_buffer_expiration_delay_;

Powered by Google App Engine
This is Rietveld 408576698