diff options
author | 2021-03-29 18:51:29 -0700 | |
---|---|---|
committer | 2021-04-06 22:03:00 -0700 | |
commit | 2dc632aee35ff3ae39c23baea8d080583b5bfe1e (patch) | |
tree | 2f6d91f0603f1186ab879e07752ff1acda03a796 /libs/hwui/RenderNode.h | |
parent | 4563f9dfb59c74315fce5862850f971924b03ab0 (diff) |
Holepunch layers for SurfaceView
Update RenderNodeDrawable to hole punch areas into
layers created for SurfaceView
Bug: 184297961
Test: Added CTS test to SurfaceViewTests
Change-Id: I1f03a4fe34c5a8b7411ebe728ea3d4195fcd1fac
Diffstat (limited to 'libs/hwui/RenderNode.h')
-rw-r--r-- | libs/hwui/RenderNode.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/RenderNode.h b/libs/hwui/RenderNode.h index 39ea53b6e3b3..988141fe191d 100644 --- a/libs/hwui/RenderNode.h +++ b/libs/hwui/RenderNode.h @@ -35,6 +35,7 @@ #include "DisplayList.h" #include "Matrix.h" #include "RenderProperties.h" +#include "pipeline/skia/HolePunch.h" #include "pipeline/skia/SkiaDisplayList.h" #include "pipeline/skia/SkiaLayer.h" @@ -284,6 +285,8 @@ private: UsageHint mUsageHint = UsageHint::Unknown; + bool mHasHolePunches; + // METHODS & FIELDS ONLY USED BY THE SKIA RENDERER public: /** @@ -294,6 +297,8 @@ public: return std::move(mAvailableDisplayList); } + bool hasHolePunches() { return mHasHolePunches; } + /** * Attach unused displayList to this node for potential future reuse. */ |