Initialize Tizen 2.3
[adaptation/xorg/driver/xserver-xorg-module-xdbg.git] / lib / xdbg_log_plist.h
1 /**************************************************************************
2
3 xdbg
4
5 Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
6
7 Contact: SooChan Lim <sc1.lim@samsung.com>
8          Sangjin LEE <lsj119@samsung.com>
9
10 Permission is hereby granted, free of charge, to any person obtaining a
11 copy of this software and associated documentation files (the
12 "Software"), to deal in the Software without restriction, including
13 without limitation the rights to use, copy, modify, merge, publish,
14 distribute, sub license, and/or sell copies of the Software, and to
15 permit persons to whom the Software is furnished to do so, subject to
16 the following conditions:
17
18 The above copyright notice and this permission notice (including the
19 next paragraph) shall be included in all copies or substantial portions
20 of the Software.
21
22 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
25 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
26 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30 **************************************************************************/
31
32 #if defined(XDBG_CLIENT)
33 #error "This header is not for client."
34 #endif
35
36 #ifndef __XDBG_LOG_PLIST_H__
37 #define __XDBG_LOG_PLIST_H__
38
39 #include <pixmap.h>
40
41 /* pixmap usage_hint stands for back-flipbuffer pixmap */
42 #ifndef CREATE_PIXMAP_USAGE_DRI2_FLIP_BACK
43 #define CREATE_PIXMAP_USAGE_DRI2_FLIP_BACK  0x100
44 #endif
45
46 /* pixmap usage_hint stands for framebuffer pixmap */
47 #ifndef CREATE_PIXMAP_USAGE_FB
48 #define CREATE_PIXMAP_USAGE_FB              0x101
49 #endif
50
51 /* pixmap usage_hint stands for sub-framebuffer pixmap */
52 #ifndef CREATE_PIXMAP_USAGE_SUB_FB
53 #define CREATE_PIXMAP_USAGE_SUB_FB          0x202
54 #endif
55
56 /* pixmap usage_hint stands for backbuffer pixmap */
57 #ifndef CREATE_PIXMAP_USAGE_DRI2_BACK
58 #define CREATE_PIXMAP_USAGE_DRI2_BACK       0x404
59 #endif
60
61 void xDbgLogPListInit              (ScreenPtr pScreen);
62 void xDbgLogPListDeInit            (ScreenPtr pScreen);
63
64 void xDbgLogPListDrawAddRefPixmap    (DrawablePtr pDraw, PixmapPtr pRefPixmap);
65 void xDbgLogPListDrawRemoveRefPixmap (DrawablePtr pDraw, PixmapPtr pRefPixmap);
66
67 #endif  /* __XDBG_LOG_PLIST_H__ */