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

Commit c8889e31 authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by Android (Google) Code Review
Browse files

Merge "Use -Werror in frameworks/native/libs/vr/libbufferhubqueue"

parents 069ac6a5 30a2d053
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -68,6 +68,8 @@ cc_benchmark {
        "-DLOG_TAG=\"buffer_transport_benchmark\"",
        "-DTRACE=0",
        "-O2",
        "-Wall",
        "-Werror",
    ],
    name: "buffer_transport_benchmark",
    tags: ["optional"],
+2 −5
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ using ::benchmark::State;
static const String16 kBinderService = String16("bufferTransport");
static const uint32_t kBufferWidth = 100;
static const uint32_t kBufferHeight = 1;
static const uint32_t kBufferLayerCount = 1;
static const uint32_t kBufferFormat = HAL_PIXEL_FORMAT_BLOB;
static const uint64_t kBufferUsage =
    GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_SW_WRITE_OFTEN;
@@ -75,10 +74,9 @@ class BufferTransportService : public BBinder {
 private:
  struct FrameListener : public ConsumerBase::FrameAvailableListener {
   public:
    FrameListener(BufferTransportService* service,
    FrameListener(BufferTransportService* /*service*/,
                  sp<BufferItemConsumer> buffer_item_consumer)
        : service_(service),
          buffer_item_consumer_(buffer_item_consumer) {}
        : buffer_item_consumer_(buffer_item_consumer) {}

    void onFrameAvailable(const BufferItem& /*item*/) override {
      BufferItem buffer;
@@ -106,7 +104,6 @@ class BufferTransportService : public BBinder {
    }

   private:
    BufferTransportService* service_ = nullptr;
    sp<BufferItemConsumer> buffer_item_consumer_;
  };