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

Unified Diff: cc/resources/resource_provider.h

Issue 1351283003: Allow task pools to reason about transparency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make StagingBuffer constructor non-explicit Created 5 years, 3 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
« no previous file with comments | « cc/raster/zero_copy_tile_task_worker_pool.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index 99947e57c68fc793139dc50a3f2605c21d3a5b75..4af135eab57613d1070f77558020606222b00357 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -86,7 +86,6 @@ class CC_EXPORT ResourceProvider
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
BlockingTaskRunner* blocking_main_thread_task_runner,
int highp_threshold_min,
- bool use_rgba_4444_texture_format,
size_t id_allocation_chunk_size,
const std::vector<unsigned>& use_image_texture_targets);
~ResourceProvider() override;
@@ -94,9 +93,6 @@ 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 best_texture_format() const { return best_texture_format_; }
ResourceFormat best_render_buffer_format() const {
return best_render_buffer_format_;
@@ -448,7 +444,6 @@ class CC_EXPORT ResourceProvider
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
BlockingTaskRunner* blocking_main_thread_task_runner,
int highp_threshold_min,
- bool use_rgba_4444_texture_format,
size_t id_allocation_chunk_size,
const std::vector<unsigned>& use_image_texture_targets);
void Initialize();
@@ -596,7 +591,6 @@ class CC_EXPORT ResourceProvider
base::ThreadChecker thread_checker_;
scoped_refptr<Fence> current_read_lock_fence_;
- bool use_rgba_4444_texture_format_;
const size_t id_allocation_chunk_size_;
scoped_ptr<IdAllocator> texture_id_allocator_;
« no previous file with comments | « cc/raster/zero_copy_tile_task_worker_pool.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698