Loading libs/hwui/Properties.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ #include "Properties.h" #include "Debug.h" #include "DeviceInfo.h" #include "SkTraceEventCommon.h" #include <algorithm> #include <cstdlib> Loading Loading @@ -140,6 +141,9 @@ bool Properties::load() { skpCaptureEnabled = debuggingEnabled && property_get_bool(PROPERTY_CAPTURE_SKP_ENABLED, false); SkAndroidFrameworkTraceUtil::setEnableTracing( property_get_bool(PROPERTY_SKIA_ATRACE_ENABLED, false)); runningInEmulator = property_get_bool(PROPERTY_QEMU_KERNEL, false); return (prevDebugLayersUpdates != debugLayersUpdates) || (prevDebugOverdraw != debugOverdraw) || Loading libs/hwui/Properties.h +5 −0 Original line number Diff line number Diff line Loading @@ -170,6 +170,11 @@ enum DebugLevel { */ #define PROPERTY_CAPTURE_SKP_ENABLED "debug.hwui.capture_skp_enabled" /** * Allows to record Skia drawing commands with systrace. */ #define PROPERTY_SKIA_ATRACE_ENABLED "debug.hwui.skia_atrace_enabled" /** * Defines how many frames in a sequence to capture. */ Loading Loading
libs/hwui/Properties.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ #include "Properties.h" #include "Debug.h" #include "DeviceInfo.h" #include "SkTraceEventCommon.h" #include <algorithm> #include <cstdlib> Loading Loading @@ -140,6 +141,9 @@ bool Properties::load() { skpCaptureEnabled = debuggingEnabled && property_get_bool(PROPERTY_CAPTURE_SKP_ENABLED, false); SkAndroidFrameworkTraceUtil::setEnableTracing( property_get_bool(PROPERTY_SKIA_ATRACE_ENABLED, false)); runningInEmulator = property_get_bool(PROPERTY_QEMU_KERNEL, false); return (prevDebugLayersUpdates != debugLayersUpdates) || (prevDebugOverdraw != debugOverdraw) || Loading
libs/hwui/Properties.h +5 −0 Original line number Diff line number Diff line Loading @@ -170,6 +170,11 @@ enum DebugLevel { */ #define PROPERTY_CAPTURE_SKP_ENABLED "debug.hwui.capture_skp_enabled" /** * Allows to record Skia drawing commands with systrace. */ #define PROPERTY_SKIA_ATRACE_ENABLED "debug.hwui.skia_atrace_enabled" /** * Defines how many frames in a sequence to capture. */ Loading