Merge "Fix issue when toggling profiling from visual to off to visual"
This commit is contained in:
@@ -716,9 +716,7 @@ public abstract class HardwareRenderer {
|
|||||||
|
|
||||||
if (mProfileEnabled) {
|
if (mProfileEnabled) {
|
||||||
Log.d(LOG_TAG, "Profiling hardware renderer");
|
Log.d(LOG_TAG, "Profiling hardware renderer");
|
||||||
}
|
|
||||||
|
|
||||||
if (mProfileEnabled) {
|
|
||||||
int maxProfileFrames = SystemProperties.getInt(PROFILE_MAXFRAMES_PROPERTY,
|
int maxProfileFrames = SystemProperties.getInt(PROFILE_MAXFRAMES_PROPERTY,
|
||||||
PROFILE_MAX_FRAMES);
|
PROFILE_MAX_FRAMES);
|
||||||
mProfileData = new float[maxProfileFrames * PROFILE_FRAME_DATA_COUNT];
|
mProfileData = new float[maxProfileFrames * PROFILE_FRAME_DATA_COUNT];
|
||||||
@@ -732,8 +730,7 @@ public abstract class HardwareRenderer {
|
|||||||
mProfileLock = null;
|
mProfileLock = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
mProfileRects = null;
|
mProfileCurrentFrame = -PROFILE_FRAME_DATA_COUNT;
|
||||||
mProfilePaint = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
value = SystemProperties.getBoolean(DEBUG_DIRTY_REGIONS_PROPERTY, false);
|
value = SystemProperties.getBoolean(DEBUG_DIRTY_REGIONS_PROPERTY, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user