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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 1418573002: cc: Add image decode control in the compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« cc/playback/discardable_image_map.cc ('K') | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index f596bd5bf1507daadbb6224d83f4c99d015ac95c..491bea2adea70d5764b01c8f2c0f38012e8e7017 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -753,10 +753,13 @@ void RenderThreadImpl::Init() {
DCHECK(parsed_num_raster_threads) << string_value;
DCHECK_GT(num_raster_threads, 0);
+#if defined(OS_ANDROID)
// Note: Currently, enabling image decode tasks only provides a benefit if
- // there's more than one raster thread. This might change in the future but we
- // avoid it for now to reduce the cost of recording.
- are_image_decode_tasks_enabled_ = num_raster_threads > 1;
+ // we use high quality interpolation filters, which are disabled on android.
+ are_image_decode_tasks_enabled_ = false;
+#else
+ are_image_decode_tasks_enabled_ = true;
+#endif
base::SimpleThread::Options thread_options;
#if defined(OS_ANDROID) || defined(OS_LINUX)
« cc/playback/discardable_image_map.cc ('K') | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698