SF: Use CompositionInfo to program HWComposer
Bug: 112259502
Test: cts -m CtsViewTestCases
SurfaceFlinger_test
vrflinger_test
Change-Id: Ib0fea4e325473e552efbf4d974661d795d302244
diff --git a/services/surfaceflinger/LayerBE.h b/services/surfaceflinger/LayerBE.h
index 21e7b5c..531cdcd 100644
--- a/services/surfaceflinger/LayerBE.h
+++ b/services/surfaceflinger/LayerBE.h
@@ -34,13 +34,14 @@
struct CompositionInfo {
std::string layerName;
- HWC2::Composition compositionType;
+ HWC2::Composition compositionType = HWC2::Composition::Invalid;
bool firstClear = false;
sp<GraphicBuffer> mBuffer = nullptr;
int mBufferSlot = BufferQueue::INVALID_BUFFER_SLOT;
std::shared_ptr<LayerBE> layer;
struct {
std::shared_ptr<HWC2::Layer> hwcLayer;
+ bool skipGeometry = true;
int32_t displayId = -1;
sp<Fence> fence;
HWC2::BlendMode blendMode = HWC2::BlendMode::Invalid;
@@ -93,8 +94,8 @@
void clear(RE::RenderEngine& renderEngine);
Mesh& getMesh() { return mMesh; }
- Layer*const mLayer;
private:
+ Layer*const mLayer;
// The mesh used to draw the layer in GLES composition mode
Mesh mMesh;