summaryrefslogtreecommitdiff
path: root/libs/hwui/Properties.h
diff options
context:
space:
mode:
author Jerome Gaillard <jgaillard@google.com> 2024-03-28 14:21:16 +0000
committer Jerome Gaillard <jgaillard@google.com> 2024-04-03 14:18:46 +0100
commitbea67ce5014bf5554d0fbbdbf9f4e96e4803a435 (patch)
tree81e3bfcb24d6d4fab6fb4805597b2964b501b68e /libs/hwui/Properties.h
parent3a79b1d7aa3a3816b23b2067f434f428b685cf2b (diff)
Create a new RenderPipeline for CPU only rendering
This takes out of SkiaPipeline what relies on GPU, and puts it into SkiaGpuPipeline, making SkiaOpenGLPipeline and SkiaVulkanPipeline inherit from SkiaGpuPipeline. From the new restricted SkiaPipeline, this creates SkiaCpuPipeline that only relies on CPU for rendering. In addition, this moves references to the GrContext out of IRenderPipeline and into SkGpuPipeline as the only usage is in classes inheriting from SkGpuPipeline. Bug: 322360037 Test: build libhwui on host Change-Id: Ifadacfc593ff54377d6a8a65b0505e294c8d1b29
Diffstat (limited to 'libs/hwui/Properties.h')
-rw-r--r--libs/hwui/Properties.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/Properties.h b/libs/hwui/Properties.h
index ec53070f6cb8..c1510d96461f 100644
--- a/libs/hwui/Properties.h
+++ b/libs/hwui/Properties.h
@@ -242,7 +242,7 @@ enum class ProfileType { None, Console, Bars };
enum class OverdrawColorSet { Default = 0, Deuteranomaly };
-enum class RenderPipelineType { SkiaGL, SkiaVulkan, NotInitialized = 128 };
+enum class RenderPipelineType { SkiaGL, SkiaVulkan, SkiaCpu, NotInitialized = 128 };
enum class StretchEffectBehavior {
ShaderHWUI, // Stretch shader in HWUI only, matrix scale in SF