summaryrefslogtreecommitdiffstats
path: root/media/1.0
diff options
context:
space:
mode:
authorPawin Vongmasa2016-12-07 06:49:22 -0600
committerPawin Vongmasa2016-12-19 00:04:44 -0600
commitcba23c66310331d9cae00ed4726642c73410a6fa (patch)
tree55c6b0eca29255363c53212d5554f9c746cac3ee /media/1.0
parentd13c84bce78c362e78db90bad457ae5cf50d269e (diff)
downloadplatform-hardware-interfaces-cba23c66310331d9cae00ed4726642c73410a6fa.tar.gz
platform-hardware-interfaces-cba23c66310331d9cae00ed4726642c73410a6fa.tar.xz
platform-hardware-interfaces-cba23c66310331d9cae00ed4726642c73410a6fa.zip
Change GraphicBuffer to AnwBuffer and update its fields.
The server side only needs information of type ANativeWindowBuffer, not GraphicBuffer. Test: Compiles Bug: 31399200 Change-Id: Ic967c58d8c922e0c422e5b63fa5ce2188da89010
Diffstat (limited to 'media/1.0')
-rw-r--r--media/1.0/types.hal12
1 files changed, 6 insertions, 6 deletions
diff --git a/media/1.0/types.hal b/media/1.0/types.hal
index 98dfe147..89b7fa21 100644
--- a/media/1.0/types.hal
+++ b/media/1.0/types.hal
@@ -27,28 +27,28 @@ typedef vec<uint8_t> Bytes;
27 27
28/** 28/**
29 * Ref: frameworks/native/include/ui/GraphicBuffer.h 29 * Ref: frameworks/native/include/ui/GraphicBuffer.h
30 * Ref: system/core/include/system/window.h 30 * Ref: system/core/include/system/window.h: ANativeWindowBuffer
31 */ 31 */
32 32
33/** 33/**
34 * This struct contains attributes for a gralloc buffer that can be put into a 34 * This struct contains attributes for a gralloc buffer that can be put into a
35 * union. 35 * union.
36 */ 36 */
37struct GraphicBufferAttributes { 37struct AnwBufferAttributes {
38 uint32_t width; 38 uint32_t width;
39 uint32_t height; 39 uint32_t height;
40 uint32_t stride; 40 uint32_t stride;
41 PixelFormat format; 41 PixelFormat format;
42 uint32_t usage; // TODO: convert to an enum 42 uint32_t usage; // TODO: convert to an enum
43 uint32_t generationNumber; 43 uint64_t layerCount;
44}; 44};
45 45
46/** 46/**
47 * A GraphicBuffer is simply GraphicBufferAttributes plus a native handle. 47 * An AnwBuffer is simply AnwBufferAttributes plus a native handle.
48 */ 48 */
49struct GraphicBuffer { 49struct AnwBuffer {
50 handle nativeHandle; 50 handle nativeHandle;
51 GraphicBufferAttributes attr; 51 AnwBufferAttributes attr;
52}; 52};
53 53
54/** 54/**