From aa3e498bbc9825b8c07a2094dc83e15b6bb47ffc Mon Sep 17 00:00:00 2001 From: Alec Mouri Date: Mon, 14 Dec 2020 14:47:57 -0800 Subject: Turn on vk unit tests * Degrade error when changing the rendering backend from Properties to no longer be fatal. * Support using a single graphics queue for the Vulkan backend. Cloud devices only support a single queue and some Vulkan implementations such as Swiftshader expose only one queue for simplying their implementation, so we'll need to support one. Bug: 175618060 Bug: 162628999 Test: hwui_unit_tests Test: experiment on Pixel 4 enforcing a single queue (settings app, maps, sysui) Change-Id: I495fcabc3c89bd62bbb833998eab4944c6660f6f --- libs/hwui/Properties.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/hwui/Properties.h') diff --git a/libs/hwui/Properties.h b/libs/hwui/Properties.h index 85a0f4aa7809..1639143ef87c 100644 --- a/libs/hwui/Properties.h +++ b/libs/hwui/Properties.h @@ -238,7 +238,7 @@ public: static bool enableRTAnimations; // Used for testing only to change the render pipeline. - static void overrideRenderPipelineType(RenderPipelineType); + static void overrideRenderPipelineType(RenderPipelineType, bool inUnitTest = false); static bool runningInEmulator; -- cgit v1.2.3-59-g8ed1b