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

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

Add CPU_WRITE_RARELY flag am: 802c53da am: cefade7f

parents bd532381 cefade7f
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;