diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/WebCore/platform/graphics/android/TilesManager.h | 4 | ||||
-rw-r--r-- | Source/WebKit/android/nav/WebView.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/TilesManager.h b/Source/WebCore/platform/graphics/android/TilesManager.h index 5ea4ccb..25f6ba2 100644 --- a/Source/WebCore/platform/graphics/android/TilesManager.h +++ b/Source/WebCore/platform/graphics/android/TilesManager.h @@ -150,6 +150,10 @@ public: m_invertedScreen = invert; } + void setInvertedScreenContrast(float contrast) { + m_shader.setContrast(contrast); + } + private: TilesManager(); diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp index 69d1ee8..a19e7f4 100644 --- a/Source/WebKit/android/nav/WebView.cpp +++ b/Source/WebKit/android/nav/WebView.cpp @@ -2524,6 +2524,10 @@ static void nativeSetProperty(JNIEnv *env, jobject obj, jstring jkey, jstring jv else TilesManager::instance()->setInvertedScreen(false); } + if (key == "gfxInvertedScreenContrast") { + float contrast = value.toFloat(); + TilesManager::instance()->setInvertedScreenContrast(contrast); + } } static jstring nativeGetProperty(JNIEnv *env, jobject obj, jstring key) |