Index: cc/resources/resource_provider.h |
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h |
index d5b57127c205db172299d6cc7048e747779e56a8..6f1b80a77b33f7a782578a10f189102e8d4d96a2 100644 |
--- a/cc/resources/resource_provider.h |
+++ b/cc/resources/resource_provider.h |
@@ -84,6 +84,7 @@ class CC_EXPORT ResourceProvider { |
BlockingTaskRunner* blocking_main_thread_task_runner, |
int highp_threshold_min, |
bool use_rgba_4444_texture_format, |
+ bool use_tile_compression, |
reveman
2015/07/21 04:26:33
s/use_tile_compression/use_compressed_texture_form
|
size_t id_allocation_chunk_size, |
bool use_persistent_map_for_gpu_memory_buffers); |
virtual ~ResourceProvider(); |
@@ -91,9 +92,8 @@ class CC_EXPORT ResourceProvider { |
void DidLoseOutputSurface() { lost_output_surface_ = true; } |
int max_texture_size() const { return max_texture_size_; } |
- ResourceFormat memory_efficient_texture_format() const { |
- return use_rgba_4444_texture_format_ ? RGBA_4444 : best_texture_format_; |
- } |
+ ResourceFormat memory_efficient_texture_format(bool must_be_noncompressed, |
reveman
2015/07/21 04:26:33
Can we avoid must_be_noncompressed param for now a
|
+ bool must_support_alpha) const; |
reveman
2015/07/21 04:26:33
I think this change that adds a "bool alpha" param
|
ResourceFormat best_texture_format() const { return best_texture_format_; } |
ResourceFormat best_render_buffer_format() const { |
return best_render_buffer_format_; |
@@ -444,6 +444,7 @@ class CC_EXPORT ResourceProvider { |
BlockingTaskRunner* blocking_main_thread_task_runner, |
int highp_threshold_min, |
bool use_rgba_4444_texture_format, |
+ bool use_tile_compression, |
size_t id_allocation_chunk_size, |
bool use_persistent_map_for_gpu_memory_buffers); |
void Initialize(); |
@@ -594,6 +595,7 @@ class CC_EXPORT ResourceProvider { |
scoped_refptr<Fence> current_read_lock_fence_; |
bool use_rgba_4444_texture_format_; |
+ bool use_tile_compression_; |
const size_t id_allocation_chunk_size_; |
scoped_ptr<IdAllocator> texture_id_allocator_; |