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

Unified Diff: cc/output/renderer_settings.cc

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: Replace memory_efficient_format* with preferred_tile_format Created 5 years 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/output/renderer_settings.cc
diff --git a/cc/output/renderer_settings.cc b/cc/output/renderer_settings.cc
index 7b182784035baf443db0c6608b85a068c8dea35c..f5e3c3a0f50708cc8189b5ef6397c71d18a0b3a3 100644
--- a/cc/output/renderer_settings.cc
+++ b/cc/output/renderer_settings.cc
@@ -7,6 +7,7 @@
#include <limits>
#include "base/logging.h"
+#include "cc/resources/platform_color.h"
namespace cc {
@@ -21,9 +22,9 @@ RendererSettings::RendererSettings()
delay_releasing_overlay_resources(false),
refresh_rate(60.0),
highp_threshold_min(0),
- use_rgba_4444_textures(false),
texture_id_allocation_chunk_size(64),
- use_gpu_memory_buffer_resources(false) {}
+ use_gpu_memory_buffer_resources(false),
+ preferred_tile_format(PlatformColor::BestTextureFormat(true)) {}
reveman 2015/12/02 18:27:18 nit: I find calling BestTextureFormat with support
christiank 2015/12/03 12:57:59 I was thinking along the same lines. Fixed. I thi
RendererSettings::~RendererSettings() {
}

Powered by Google App Engine
This is Rietveld 408576698