Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 666d5daa authored by Romain Guy's avatar Romain Guy
Browse files

Fix issue when toggling profiling from visual to off to visual

Change-Id: I4a623020a9bf0079029d184c13e58d92e692faf8
parent a4fef026
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -716,9 +716,7 @@ public abstract class HardwareRenderer {

                if (mProfileEnabled) {
                    Log.d(LOG_TAG, "Profiling hardware renderer");
                }

                if (mProfileEnabled) {
                    int maxProfileFrames = SystemProperties.getInt(PROFILE_MAXFRAMES_PROPERTY,
                            PROFILE_MAX_FRAMES);
                    mProfileData = new float[maxProfileFrames * PROFILE_FRAME_DATA_COUNT];
@@ -732,8 +730,7 @@ public abstract class HardwareRenderer {
                    mProfileLock = null;
                }

                mProfileRects = null;
                mProfilePaint = null;
                mProfileCurrentFrame = -PROFILE_FRAME_DATA_COUNT;
            }

            value = SystemProperties.getBoolean(DEBUG_DIRTY_REGIONS_PROPERTY, false);