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

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: rebase Created 4 years, 11 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/tiles/tile_manager.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | 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 70bfc08ffdce74990e881c4adfe3f0589469b2fe..e72728b7b80bcbbafb04a6d62c4a141f450485cb 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -817,10 +817,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)
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698