Pepper_47_C_interfaces
ppb_compositor_layer_samsung.h
Go to the documentation of this file.
1 /* Copyright (c) 2015 Samsung Electronics. All rights reserved.
2  */
3 
4 /* From samsung/ppb_compositor_layer_samsung.idl,
5  * modified Tue Oct 25 13:20:14 2016.
6  */
7 
8 #ifndef PPAPI_C_SAMSUNG_PPB_COMPOSITOR_LAYER_SAMSUNG_H_
9 #define PPAPI_C_SAMSUNG_PPB_COMPOSITOR_LAYER_SAMSUNG_H_
10 
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_macros.h"
13 #include "ppapi/c/pp_resource.h"
14 #include "ppapi/c/pp_size.h"
15 #include "ppapi/c/pp_stdint.h"
16 
17 #define PPB_COMPOSITORLAYER_SAMSUNG_INTERFACE_0_1 \
18  "PPB_CompositorLayer_Samsung;0.1"
19 #define PPB_COMPOSITORLAYER_SAMSUNG_INTERFACE \
20  PPB_COMPOSITORLAYER_SAMSUNG_INTERFACE_0_1
21 
22 /**
23  * @file
24  * This file defines interface <code>PPB_CompositorLayer_Samsung</code>
25  * that extends <code>PPB_CompositorLayer</code> interface with possibility
26  * to create Samsung specific layers.
27  */
28 
29 
30 /**
31  * @addtogroup Interfaces
32  * @{
33  */
34 /**
35  * It is extension for <code>PPB_CompositorLayer</code> interface,
36  * which allows creating Samsung specific layers.
37  * To create <code>PPB_CompositorLayer_Samsung</code> resource please use
38  * <code>AddLayer</code> method from <code>PPB_Compositor</code> interface.
39  */
41  /**
42  * Determines if a resource is a compositor layer samsung resource.
43  *
44  * @param[in] resource The <code>PP_Resource</code> to test.
45  *
46  * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given
47  * resource is a compositor layer resource or <code>PP_FALSE</code>
48  * otherwise.
49  */
51  /**
52  * Sets the background plane layer,
53  * which allows to present background plane content.
54  * If the layer is uninitialized, it will initialize the layer first,
55  * and then set the background plane.
56  * If the layer has been initialized to another kind of layer, the layer will
57  * not be changed, and <code>PP_ERROR_BADARGUMENT</code> will be returned.
58  * Position of layer can be controlled using
59  * <code>SetClipRect</code> method from <code>PPB_CompositorLayer</code>.
60  *
61  * param[in] layer A <code>PP_Resource</code> corresponding to a compositor
62  * layer resource.
63  * param[in] size A <code>PP_Size</code> for the size of the layer before
64  * transform.
65  *
66  * @return An int32_t containing a result code from <code>pp_errors.h</code>.
67  */
68  int32_t (*SetBackgroundPlane)(PP_Resource layer, const struct PP_Size* size);
69 };
70 
72 /**
73  * @}
74  */
75 
76 #endif /* PPAPI_C_SAMSUNG_PPB_COMPOSITOR_LAYER_SAMSUNG_H_ */
77 
int32_t PP_Resource
Definition: pp_resource.h:40
PP_Bool(* IsCompositorLayerSamsung)(PP_Resource resource)
PP_Bool
Definition: pp_bool.h:30
int32_t(* SetBackgroundPlane)(PP_Resource layer, const struct PP_Size *size)