summaryrefslogtreecommitdiff
path: root/src/lib/efl
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 19:59:11 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-19 10:51:48 +0900
commit2df8ad36b4b0068ae5ae3f547d2ece4d3c741a76 (patch)
treee8821395cdc6cca75f968d2e7e7decab42f5a94c /src/lib/efl
parent1f242afdefd27cc11eb71bc598f4e7903ceb5ea9 (diff)
evas: Use Eina.Slice on the stack (gfx.buffer)
Diffstat (limited to 'src/lib/efl')
-rw-r--r--src/lib/efl/interfaces/efl_gfx_buffer.eo16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_buffer.eo b/src/lib/efl/interfaces/efl_gfx_buffer.eo
index f355a79e6b..a4967fc39e 100644
--- a/src/lib/efl/interfaces/efl_gfx_buffer.eo
+++ b/src/lib/efl/interfaces/efl_gfx_buffer.eo
@@ -129,7 +129,6 @@ interface Efl.Gfx.Buffer ()
129 be negative. 129 be negative.
130 ]] 130 ]]
131 params { 131 params {
132 @out slice: Eina.Rw_Slice; [[Pointer to the top-left pixel data.]]
133 @in mode: Efl.Gfx.Buffer.Access_Mode; [[Specifies whether to map for read-only, 132 @in mode: Efl.Gfx.Buffer.Access_Mode; [[Specifies whether to map for read-only,
134 write-only or read-write access (OR combination of flags).]] 133 write-only or read-write access (OR combination of flags).]]
135 @in region: const(ptr(Eina.Rect)) @optional; [[The region to map.]] 134 @in region: const(ptr(Eina.Rect)) @optional; [[The region to map.]]
@@ -139,7 +138,8 @@ interface Efl.Gfx.Buffer ()
139 @in plane: int @optional; [[Plane ID. 0 by default. Useful for planar formats only.]] 138 @in plane: int @optional; [[Plane ID. 0 by default. Useful for planar formats only.]]
140 @out stride: int @optional; [[Returns the length in bytes of a mapped line]] 139 @out stride: int @optional; [[Returns the length in bytes of a mapped line]]
141 } 140 }
142 return: bool; [[$true on success, $false otherwise]] 141 return: Eina.Rw_Slice; [[The data slice. In case of failure, the
142 memory pointer will be $null.]]
143 } 143 }
144 buffer_unmap { 144 buffer_unmap {
145 [[Unmap a region of this buffer, and update the internal data if needed. 145 [[Unmap a region of this buffer, and update the internal data if needed.
@@ -152,7 +152,7 @@ interface Efl.Gfx.Buffer ()
152 valid anymore. 152 valid anymore.
153 ]] 153 ]]
154 params { 154 params {
155 @in slice: ptr(const(Eina.Rw_Slice)); [[Data slice returned by a previous call to map.]] 155 @in slice: Eina.Rw_Slice; [[Data slice returned by a previous call to map.]]
156 } 156 }
157 return: bool; [[$true on success, $false otherwise]] 157 return: bool; [[$true on success, $false otherwise]]
158 } 158 }
@@ -211,14 +211,14 @@ interface Efl.Gfx.Buffer ()
211 [[Get a direct pointer to the internal pixel data, if available. 211 [[Get a direct pointer to the internal pixel data, if available.
212 212
213 This will return $null unless @.buffer_managed_set was used to pass 213 This will return $null unless @.buffer_managed_set was used to pass
214 in an external data pointer. The returned @Eina.Slice struct must be 214 in an external data pointer.
215 freed by the caller.
216 ]] 215 ]]
217 params { 216 params {
218 @out slice: Eina.Slice; [[Data slice]] 217 @in plane: int @optional; [[Plane ID. 0 by default. Useful for
219 @in plane: int @optional; [[Plane ID. 0 by default. Useful for planar formats only.]] 218 planar formats only.]]
220 } 219 }
221 return: bool; [[$true on success, $false otherwise]] 220 return: Eina.Slice; [[The data slice. The memory pointer will be $null
221 in case of failure.]]
222 } 222 }
223 /* Note: border, span and buffer flags not imported from ector buffer */ 223 /* Note: border, span and buffer flags not imported from ector buffer */
224 } 224 }