Loading services/surfaceflinger/SurfaceFlinger.cpp +17 −2 Original line number Diff line number Diff line Loading @@ -227,8 +227,10 @@ SurfaceFlinger::SurfaceFlinger() mLayerTripleBufferingDisabled = atoi(value); ALOGI_IF(mLayerTripleBufferingDisabled, "Disabling Triple Buffering"); property_get("persist.sys.sf.color_saturation", value, "1.0"); mSaturation = atof(value); // We should be reading 'persist.sys.sf.color_saturation' here // but since /data may be encrypted, we need to wait until after vold // comes online to attempt to read the property. The property is // instead read after the boot animation } void SurfaceFlinger::onFirstRef() Loading Loading @@ -373,6 +375,11 @@ void SurfaceFlinger::bootFinished() const int LOGTAG_SF_STOP_BOOTANIM = 60110; LOG_EVENT_LONG(LOGTAG_SF_STOP_BOOTANIM, ns2ms(systemTime(SYSTEM_TIME_MONOTONIC))); sp<LambdaMessage> readProperties = new LambdaMessage([&]() { readPersistentProperties(); }); postMessageAsync(readProperties); } void SurfaceFlinger::deleteTextureAsync(uint32_t texture) { Loading Loading @@ -631,6 +638,14 @@ void SurfaceFlinger::init() { ALOGV("Done initializing"); } void SurfaceFlinger::readPersistentProperties() { char value[PROPERTY_VALUE_MAX]; property_get("persist.sys.sf.color_saturation", value, "1.0"); mSaturation = atof(value); ALOGV("Saturation is set to %.2f", mSaturation); } void SurfaceFlinger::startBootAnim() { // Start boot animation service by setting a property mailbox // if property setting thread is already running, Start() will be just a NOP Loading services/surfaceflinger/SurfaceFlinger.h +5 −0 Original line number Diff line number Diff line Loading @@ -435,6 +435,11 @@ private: sp<StartPropertySetThread> mStartPropertySetThread = nullptr; /* ------------------------------------------------------------------------ * Properties */ void readPersistentProperties(); /* ------------------------------------------------------------------------ * EGL */ Loading Loading
services/surfaceflinger/SurfaceFlinger.cpp +17 −2 Original line number Diff line number Diff line Loading @@ -227,8 +227,10 @@ SurfaceFlinger::SurfaceFlinger() mLayerTripleBufferingDisabled = atoi(value); ALOGI_IF(mLayerTripleBufferingDisabled, "Disabling Triple Buffering"); property_get("persist.sys.sf.color_saturation", value, "1.0"); mSaturation = atof(value); // We should be reading 'persist.sys.sf.color_saturation' here // but since /data may be encrypted, we need to wait until after vold // comes online to attempt to read the property. The property is // instead read after the boot animation } void SurfaceFlinger::onFirstRef() Loading Loading @@ -373,6 +375,11 @@ void SurfaceFlinger::bootFinished() const int LOGTAG_SF_STOP_BOOTANIM = 60110; LOG_EVENT_LONG(LOGTAG_SF_STOP_BOOTANIM, ns2ms(systemTime(SYSTEM_TIME_MONOTONIC))); sp<LambdaMessage> readProperties = new LambdaMessage([&]() { readPersistentProperties(); }); postMessageAsync(readProperties); } void SurfaceFlinger::deleteTextureAsync(uint32_t texture) { Loading Loading @@ -631,6 +638,14 @@ void SurfaceFlinger::init() { ALOGV("Done initializing"); } void SurfaceFlinger::readPersistentProperties() { char value[PROPERTY_VALUE_MAX]; property_get("persist.sys.sf.color_saturation", value, "1.0"); mSaturation = atof(value); ALOGV("Saturation is set to %.2f", mSaturation); } void SurfaceFlinger::startBootAnim() { // Start boot animation service by setting a property mailbox // if property setting thread is already running, Start() will be just a NOP Loading
services/surfaceflinger/SurfaceFlinger.h +5 −0 Original line number Diff line number Diff line Loading @@ -435,6 +435,11 @@ private: sp<StartPropertySetThread> mStartPropertySetThread = nullptr; /* ------------------------------------------------------------------------ * Properties */ void readPersistentProperties(); /* ------------------------------------------------------------------------ * EGL */ Loading