Merge pull request #3945 from ogniK5377/nvflinger-pixformat
nv_flinger: Use enum for pixel format instead of u32
This commit is contained in:
commit
3c378a31b5
|
@ -138,9 +138,7 @@ u32 BufferQueue::Query(QueryType type) {
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case QueryType::NativeWindowFormat:
|
case QueryType::NativeWindowFormat:
|
||||||
// TODO(Subv): Use an enum for this
|
return static_cast<u32>(PixelFormat::RGBA8888);
|
||||||
static constexpr u32 FormatABGR8 = 1;
|
|
||||||
return FormatABGR8;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
|
|
|
@ -66,6 +66,16 @@ public:
|
||||||
Rotate270 = 0x07,
|
Rotate270 = 0x07,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum class PixelFormat : u32 {
|
||||||
|
RGBA8888 = 1,
|
||||||
|
RGBX8888 = 2,
|
||||||
|
RGB888 = 3,
|
||||||
|
RGB565 = 4,
|
||||||
|
BGRA8888 = 5,
|
||||||
|
RGBA5551 = 6,
|
||||||
|
RRGBA4444 = 7,
|
||||||
|
};
|
||||||
|
|
||||||
struct Buffer {
|
struct Buffer {
|
||||||
enum class Status { Free = 0, Queued = 1, Dequeued = 2, Acquired = 3 };
|
enum class Status { Free = 0, Queued = 1, Dequeued = 2, Acquired = 3 };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue