• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

修訂596dbf6d8d4f00e7452aacdfcff0d829e1edefca (tree)
時間2020-04-14 23:46:53
作者Mauro Rossi <issor.oruam@gmai...>
CommiterChih-Wei Huang

Log Message

Modify color inversion matrix to swap Red and Blue colors

Instead of color inversion it will produce Red and Blue colors swap,
in order to correct displayed colors for R4xx and other old drivers
still based on KMS API

Change Summary

差異

--- a/services/core/java/com/android/server/display/color/ColorDisplayService.java
+++ b/services/core/java/com/android/server/display/color/ColorDisplayService.java
@@ -153,10 +153,10 @@ public final class ColorDisplayService extends SystemService {
153153 * ProgramCache for full implementation details.
154154 */
155155 private static final float[] MATRIX_INVERT_COLOR = new float[]{
156- 0.402f, -0.598f, -0.599f, 0f,
157- -1.174f, -0.174f, -1.175f, 0f,
158- -0.228f, -0.228f, 0.772f, 0f,
159- 1f, 1f, 1f, 1f
156+ 0.0f, 0.0f, 1.0f, 0,
157+ 0.0f, 1.0f, 0.0f, 0,
158+ 1.0f, 0.0f, 0.0f, 0,
159+ 0, 0, 0, 1
160160 };
161161
162162 private final Handler mHandler;