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

Commit ef332800 authored by Arthur Ishiguro's avatar Arthur Ishiguro Committed by Automerger Merge Worker
Browse files

Add CPU_WRITE_RARELY flag am: 802c53da am: cefade7f am: 6311a3ce am: 273b7758

parents a7d36479 273b7758
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -124,7 +124,8 @@ class GrallocHalWrapper : public IGrallocHalWrapper {

  private:
    static constexpr uint64_t kBufferUsage =
            static_cast<uint64_t>(BufferUsage::SENSOR_DIRECT_DATA | BufferUsage::CPU_READ_OFTEN);
            static_cast<uint64_t>(BufferUsage::SENSOR_DIRECT_DATA | BufferUsage::CPU_READ_OFTEN |
                                  BufferUsage::CPU_WRITE_RARELY);
    AllocatorWrapperT<AllocatorT> mAllocator;
    sp<MapperT> mMapper;