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

Commit e698af5a authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add CPU_WRITE_RARELY flag" into main

parents 813bd30e 8c5976f0
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;