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

Unified Diff: ui/compositor/compositor.cc

Issue 2736303002: ui/compositor: Enable image decode tasks in the UI compositor. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index f438b216f1d17ee15a8929d81267630ef372030d..6413973016e8bfa770efa9eabf8c21bc59de4e9e 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -186,9 +186,10 @@ Compositor::Compositor(const cc::FrameSinkId& frame_sink_id,
}
}
- // Note: Only enable image decode tasks if we have more than one worker
- // thread.
- settings.image_decode_tasks_enabled = false;
+ // Note: Although there is only one image decode thread, we should still get a
+ // benefit from locking images across several raster tasks. At worst, this
+ // should do as much work as it would anyway.
+ settings.image_decode_tasks_enabled = true;
settings.gpu_memory_policy.bytes_limit_when_visible = 512 * 1024 * 1024;
settings.gpu_memory_policy.priority_cutoff_when_visible =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698