Merge "Add a debug property to enable Skia systrace"
This commit is contained in:
committed by
Android (Google) Code Review
commit
aefe326db0
@@ -17,6 +17,7 @@
|
||||
#include "Properties.h"
|
||||
#include "Debug.h"
|
||||
#include "DeviceInfo.h"
|
||||
#include "SkTraceEventCommon.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdlib>
|
||||
@@ -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) ||
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user