diff options
author | Stan Iliev <stani@google.com> | 2017-09-19 12:07:10 -0400 |
---|---|---|
committer | Stan Iliev <stani@google.com> | 2017-10-20 17:49:12 -0400 |
commit | e9d0012bbf8077c1b7e09e44ae30e7873eb7ac31 (patch) | |
tree | e3d7ef79b963359a547ce96b290b3f861446e044 /libs/hwui/Properties.h | |
parent | e059b0f5851bb334a3d07d6b17365052d42d2761 (diff) |
Convert skpCaptureEnabled compile time flag into a property
Convert SkiaPipeline::skpCaptureEnabled into a system property.
Add ability to capture drawing in layers. Add ability to capture
animations/sequence of frames. Fix crash when recording a
TextureView.
Test: Ran capture script.
Change-Id: I463eecf6ec90a601a6cc172ad1901bd4bcc86ac8
Diffstat (limited to 'libs/hwui/Properties.h')
-rw-r--r-- | libs/hwui/Properties.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/hwui/Properties.h b/libs/hwui/Properties.h index 0fe4c7714761..077e7aee6579 100644 --- a/libs/hwui/Properties.h +++ b/libs/hwui/Properties.h @@ -165,6 +165,22 @@ enum DebugLevel { */ #define PROPERTY_RENDERER "debug.hwui.renderer" +/** + * Allows to collect a recording of Skia drawing commands. + */ +#define PROPERTY_CAPTURE_SKP_ENABLED "debug.hwui.capture_skp_enabled" + + +/** + * Defines how many frames in a sequence to capture. + */ +#define PROPERTY_CAPTURE_SKP_FRAMES "debug.hwui.capture_skp_frames" + +/** + * File name and location, where a SKP recording will be saved. + */ +#define PROPERTY_CAPTURE_SKP_FILENAME "debug.hwui.skp_filename" + /////////////////////////////////////////////////////////////////////////////// // Misc /////////////////////////////////////////////////////////////////////////////// @@ -254,6 +270,8 @@ public: // created after changing this. static bool disableVsync; + static bool skpCaptureEnabled; + // Used for testing only to change the render pipeline. #ifdef HWUI_GLES_WRAP_ENABLED static void overrideRenderPipelineType(RenderPipelineType); |