OSDN Git Service

Lower the priority of ProcessingService to 'background'.
authorSascha Haeberling <haeberling@google.com>
Thu, 30 Apr 2015 19:58:54 +0000 (12:58 -0700)
committerSascha Haeberling <haeberling@google.com>
Thu, 30 Apr 2015 21:09:28 +0000 (14:09 -0700)
  Bug: 20675397

This should e.g. greatly reduce the jank we see while Lens Blurs are
processing.

Change-Id: I7ffd9bb394a113b913105a6e91c8f12fc067bfbb

src/com/android/camera/processing/ProcessingService.java

index b9c71eb..c67ebd6 100644 (file)
@@ -72,7 +72,7 @@ public class ProcessingService extends Service implements ProgressListener {
     }
 
     private static final Log.Tag TAG = new Log.Tag("ProcessingService");
-    private static final int THREAD_PRIORITY = Process.THREAD_PRIORITY_DISPLAY;
+    private static final int THREAD_PRIORITY = Process.THREAD_PRIORITY_BACKGROUND;
     private static final int CAMERA_NOTIFICATION_ID = 2;
     private Notification.Builder mNotificationBuilder;
     private NotificationManager mNotificationManager;