Loading libs/hwui/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -208,6 +208,7 @@ cc_defaults { "FrameInfoVisualizer.cpp", "GpuMemoryTracker.cpp", "HardwareBitmapUploader.cpp", "HWUIProperties.sysprop", "Interpolator.cpp", "JankTracker.cpp", "Layer.cpp", Loading libs/hwui/HWUIProperties.sysprop 0 → 100644 +9 −0 Original line number Diff line number Diff line owner: Platform module: "android.uirenderer" prop { api_name: "use_vulkan" type: Boolean prop_name: "ro.hwui.use_vulkan" scope: Public access: Readonly } libs/hwui/Properties.cpp +7 −1 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include "Debug.h" #include "DeviceInfo.h" #include "SkTraceEventCommon.h" #include "HWUIProperties.sysprop.h" #include <algorithm> #include <cstdlib> Loading Loading @@ -174,8 +175,13 @@ RenderPipelineType Properties::getRenderPipelineType() { if (sRenderPipelineType != RenderPipelineType::NotInitialized) { return sRenderPipelineType; } bool useVulkan = use_vulkan().value_or(false); char prop[PROPERTY_VALUE_MAX]; if (useVulkan) { property_get(PROPERTY_RENDERER, prop, "skiavk"); } else { property_get(PROPERTY_RENDERER, prop, "skiagl"); } if (!strcmp(prop, "skiavk")) { ALOGD("Skia Vulkan Pipeline"); sRenderPipelineType = RenderPipelineType::SkiaVulkan; Loading Loading
libs/hwui/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -208,6 +208,7 @@ cc_defaults { "FrameInfoVisualizer.cpp", "GpuMemoryTracker.cpp", "HardwareBitmapUploader.cpp", "HWUIProperties.sysprop", "Interpolator.cpp", "JankTracker.cpp", "Layer.cpp", Loading
libs/hwui/HWUIProperties.sysprop 0 → 100644 +9 −0 Original line number Diff line number Diff line owner: Platform module: "android.uirenderer" prop { api_name: "use_vulkan" type: Boolean prop_name: "ro.hwui.use_vulkan" scope: Public access: Readonly }
libs/hwui/Properties.cpp +7 −1 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include "Debug.h" #include "DeviceInfo.h" #include "SkTraceEventCommon.h" #include "HWUIProperties.sysprop.h" #include <algorithm> #include <cstdlib> Loading Loading @@ -174,8 +175,13 @@ RenderPipelineType Properties::getRenderPipelineType() { if (sRenderPipelineType != RenderPipelineType::NotInitialized) { return sRenderPipelineType; } bool useVulkan = use_vulkan().value_or(false); char prop[PROPERTY_VALUE_MAX]; if (useVulkan) { property_get(PROPERTY_RENDERER, prop, "skiavk"); } else { property_get(PROPERTY_RENDERER, prop, "skiagl"); } if (!strcmp(prop, "skiavk")) { ALOGD("Skia Vulkan Pipeline"); sRenderPipelineType = RenderPipelineType::SkiaVulkan; Loading