sync with tizen_2.2
[sdk/emulator/qemu.git] / tizen / src / maru_shm.c
1 /*
2  * Shared memory
3  *
4  * Copyright (C) 2011 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:
7  * GiWoong Kim <giwoong.kim@samsung.com>
8  * SeokYeon Hwang <syeon.hwang@samsung.com>
9  * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
24  *
25  * Contributors:
26  * - S-Core Co., Ltd
27  *
28  */
29
30
31 #include "maru_shm.h"
32 #include "emul_state.h"
33 #include "debug_ch.h"
34
35 MULTI_DEBUG_CHANNEL(tizen, maru_shm);
36
37
38 void qemu_ds_shm_update(DisplayState *ds, int x, int y, int w, int h)
39 {
40     //TODO:
41 }
42
43 void qemu_ds_shm_resize(DisplayState *ds)
44 {
45     //TODO:
46 }
47
48 void qemu_ds_shm_refresh(DisplayState *ds)
49 {
50     vga_hw_update();
51 }
52
53 void maruskin_shm_init(uint64 swt_handle, int lcd_size_width, int lcd_size_height, bool is_resize)
54 {
55     INFO("maru shm initialization = %d\n", is_resize);
56
57     if (is_resize == FALSE) { //once
58         set_emul_lcd_size(lcd_size_width, lcd_size_height);
59         set_emul_sdl_bpp(32);
60     }
61 }
62