blast: BufferStateLayer
Adds the initial foundation for supporting buffers on
transactions as well as the other metadata that had been passed
over BufferQueue.
Bug: 80477568
Test: Transaction_test.cpp
Change-Id: I61e44462c66c1a912adbabf62015e66bde44c216
diff --git a/services/surfaceflinger/BufferLayer.h b/services/surfaceflinger/BufferLayer.h
index 6ffcff4..13f4e83 100644
--- a/services/surfaceflinger/BufferLayer.h
+++ b/services/surfaceflinger/BufferLayer.h
@@ -78,8 +78,8 @@
// onDraw - draws the surface.
void onDraw(const RenderArea& renderArea, const Region& clip,
- bool useIdentityTransform) const override;
- void drawNow(const RenderArea& renderArea, bool useIdentityTransform) const;
+ bool useIdentityTransform) override;
+ void drawNow(const RenderArea& renderArea, bool useIdentityTransform);
bool isHdrY410() const override;
@@ -102,7 +102,6 @@
bool hasReadyFrame() const override;
-private:
// Returns the current scaling mode, unless mOverrideScalingMode
// is set, in which case, it returns mOverrideScalingMode
uint32_t getEffectiveScalingMode() const override;
@@ -117,7 +116,7 @@
virtual nsecs_t getDesiredPresentTime() = 0;
virtual std::shared_ptr<FenceTime> getCurrentFenceTime() const = 0;
- virtual void getDrawingTransformMatrix(float matrix[16]) const = 0;
+ virtual void getDrawingTransformMatrix(float *matrix) = 0;
virtual uint32_t getDrawingTransform() const = 0;
virtual ui::Dataspace getDrawingDataSpace() const = 0;
virtual Rect getDrawingCrop() const = 0;
@@ -136,7 +135,7 @@
virtual bool hasDrawingBuffer() const = 0;
- virtual void setFilteringEnabled(bool enabled) const = 0;
+ virtual void setFilteringEnabled(bool enabled) = 0;
virtual status_t bindTextureImage() const = 0;
virtual status_t updateTexImage(bool& recomputeVisibleRegions, nsecs_t latchTime) = 0;