diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2010-12-20 08:28:58 -0800 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-12-20 08:28:58 -0800 |
commit | a5cc141b87ce54029fd55213b42a5cd25bf0a274 (patch) | |
tree | 480b3feaa14f6d392ceed62dba9cd0334dcba48d /android/framebuffer-common.h | |
parent | aec5741a217d98db6007219c4e28dc24d3ecdb03 (diff) | |
parent | e95660aadc669784406d5f5a867988b8ecc2ed0d (diff) | |
download | external_qemu-a5cc141b87ce54029fd55213b42a5cd25bf0a274.zip external_qemu-a5cc141b87ce54029fd55213b42a5cd25bf0a274.tar.gz external_qemu-a5cc141b87ce54029fd55213b42a5cd25bf0a274.tar.bz2 |
Merge "Resubmit framebuffer service implementation"
Diffstat (limited to 'android/framebuffer-common.h')
-rw-r--r-- | android/framebuffer-common.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/android/framebuffer-common.h b/android/framebuffer-common.h new file mode 100644 index 0000000..7ca654c --- /dev/null +++ b/android/framebuffer-common.h @@ -0,0 +1,37 @@ +/* Copyright (C) 2010 The Android Open Source Project +** +** This software is licensed under the terms of the GNU General Public +** License version 2, as published by the Free Software Foundation, and +** may be copied, distributed, and modified under those terms. +** +** This program is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +** GNU General Public License for more details. +*/ + +/* + * Contains framebuffer declarations that are shared by the core and the UI. + */ + +#ifndef _ANDROID_FRAMEBUFFER_COMMON_H +#define _ANDROID_FRAMEBUFFER_COMMON_H + +#include "sysemu.h" + +/* Header of framebuffer update message sent from the core to the UI. */ +typedef struct FBUpdateMessage { + /* x, y, w, and h identify the rectangle that is being updated. */ + uint16_t x; + uint16_t y; + uint16_t w; + uint16_t h; + + /* Number of bits used to encode a single pixel. */ + uint8_t bits_per_pixel; + + /* Contains updating rectangle copied over from the framebuffer's pixels. */ + uint8_t rect[0]; +} FBUpdateMessage; + +#endif /* _ANDROID_FRAMEBUFFER_UI_H */ |