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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 1031163002: content: Use background priority for raster thread in browser compositor on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index d427bccd5e240ebfc6f07a920ab7e35a3c21f879..8b5bd3452955a3d1a22f6120668261257e1e2b08 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -145,6 +145,7 @@ class SingleThreadTaskGraphRunner
public:
SingleThreadTaskGraphRunner() : worker_thread_(this, "CompositorWorker") {
worker_thread_.Start();
+ worker_thread_.SetThreadPriority(base::kThreadPriority_Background);
}
~SingleThreadTaskGraphRunner() override {
« 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