Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59fa78f3 authored by Songyue Han's avatar Songyue Han
Browse files

Update pixel format metric.

Add initialization for mPixelFormat.

This update comes from: https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/av/+/24458406/comment/a395d2e6_b63acf08/

This fix has already been included in the qpr change. This change is to
sync main with qpr branch.

Bug: 270518245
Test: manual
Change-Id: I15115363e69d30378fb6723ba1207fea7a87660c
parent 2fd507db
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1079,7 +1079,8 @@ class FlexOutputBuffers : public OutputBuffers {
public:
    FlexOutputBuffers(const char *componentName, const char *name = "Output[]")
        : OutputBuffers(componentName, name),
          mImpl(mName) { }
          mImpl(mName),
          mPixelFormat(0) { }

    status_t registerBuffer(
            const std::shared_ptr<C2Buffer> &buffer,
+2 −1
Original line number Diff line number Diff line
@@ -28,7 +28,8 @@ namespace android {
class InputSurfaceWrapper {
public:
    InputSurfaceWrapper()
        : mDataSpace(HAL_DATASPACE_UNKNOWN) {
        : mDataSpace(HAL_DATASPACE_UNKNOWN),
          mPixelFormat(PIXEL_FORMAT_UNKNOWN) {
    }

    virtual ~InputSurfaceWrapper() = default;