diff options
author | Stan Iliev <stani@google.com> | 2016-07-07 12:35:54 -0400 |
---|---|---|
committer | Stan Iliev <stani@google.com> | 2016-07-07 14:27:20 -0400 |
commit | 03de074d05108fa9fb07c6b847c7163ada5776da (patch) | |
tree | 161b8ab10378c72000221ef563ac9b7cdd81f3ae /libs/hwui/Properties.h | |
parent | 219d9ba4fae554974fc0d2370f8b4556878307a3 (diff) |
Implement runtime switch to select default renderer mode
Add a system property debug.hwui.default_renderer, which allows
to set rendering mode to OpenGL (default), Skia OpenGL or Vulkan.
Change-Id: I8bca5bacc5108f77437e340ac61f2d8db8cc4c39
Diffstat (limited to 'libs/hwui/Properties.h')
-rw-r--r-- | libs/hwui/Properties.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/hwui/Properties.h b/libs/hwui/Properties.h index cdfc081dd2ff..880a90e4421f 100644 --- a/libs/hwui/Properties.h +++ b/libs/hwui/Properties.h @@ -153,6 +153,12 @@ enum DebugLevel { #define PROPERTY_FILTER_TEST_OVERHEAD "debug.hwui.filter_test_overhead" +/** + * Allows to set rendering pipeline mode to OpenGL (default), Skia OpenGL + * or Vulkan. + */ +#define PROPERTY_DEFAULT_RENDERER "debug.hwui.default_renderer" + /////////////////////////////////////////////////////////////////////////////// // Runtime configuration properties /////////////////////////////////////////////////////////////////////////////// @@ -245,6 +251,13 @@ enum class StencilClipDebug { ShowRegion }; +enum class RenderPipelineType { + OpenGL = 0, + SkiaGL, + Vulkan, + NotInitialized = 128 +}; + /** * Renderthread-only singleton which manages several static rendering properties. Most of these * are driven by system properties which are queried once at initialization, and again if init() @@ -292,6 +305,7 @@ public: static int overrideSpotShadowStrength; static ProfileType getProfileType(); + static RenderPipelineType getRenderPipelineType(); // Should be used only by test apps static bool waitForGpuCompletion; @@ -304,6 +318,7 @@ public: private: static ProfileType sProfileType; static bool sDisableProfileBars; + static RenderPipelineType sRenderPipelineType; }; // class Caches |