summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-12-08 15:11:57 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-01-05 15:43:43 +0900
commit85f23d96e7072f09ab73ab698047c3c172974b5e (patch)
tree4ac7daa0b0c983a0a092059d87f873eac447b3bf
parent952f27507d6c2a968dfdb67c259ba95a1bdc8a0c (diff)
ector: add typedef Ector_Buffer
-rw-r--r--src/lib/ector/ector_buffer.h8
-rw-r--r--src/lib/ector/ector_private.h2
-rw-r--r--src/lib/ector/software/ector_renderer_software_buffer.c2
3 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/ector/ector_buffer.h b/src/lib/ector/ector_buffer.h
index 3c409906c5..1047482679 100644
--- a/src/lib/ector/ector_buffer.h
+++ b/src/lib/ector/ector_buffer.h
@@ -6,9 +6,15 @@
6#include "ector_generic_buffer.eo.h" 6#include "ector_generic_buffer.eo.h"
7#include "software/ector_software_buffer_base.eo.h" 7#include "software/ector_software_buffer_base.eo.h"
8 8
9/**
10 * @typedef Ector_Buffer
11 * A generic pixel buffer type (2D). May be readable or writeable or both.
12 */
13typedef Ector_Generic_Buffer Ector_Buffer;
14
9typedef struct _Ector_Generic_Buffer_Data 15typedef struct _Ector_Generic_Buffer_Data
10{ 16{
11 Eo *eo; 17 Ector_Buffer *eo;
12 unsigned int w, h; 18 unsigned int w, h;
13 unsigned char l, r, t, b; 19 unsigned char l, r, t, b;
14 Efl_Gfx_Colorspace cspace; 20 Efl_Gfx_Colorspace cspace;
diff --git a/src/lib/ector/ector_private.h b/src/lib/ector/ector_private.h
index d426f3f099..7278566427 100644
--- a/src/lib/ector/ector_private.h
+++ b/src/lib/ector/ector_private.h
@@ -122,7 +122,7 @@ struct _Ector_Renderer_Generic_Shape_Data
122 122
123struct _Ector_Renderer_Generic_Buffer_Data 123struct _Ector_Renderer_Generic_Buffer_Data
124{ 124{
125 Ector_Generic_Buffer *eo_buffer; 125 Ector_Buffer *eo_buffer;
126 struct { 126 struct {
127 Efl_Gfx_Fill_Spread spread; 127 Efl_Gfx_Fill_Spread spread;
128 int x, y, w, h; 128 int x, y, w, h;
diff --git a/src/lib/ector/software/ector_renderer_software_buffer.c b/src/lib/ector/software/ector_renderer_software_buffer.c
index 0eb6fa90aa..cfd13c0aa0 100644
--- a/src/lib/ector/software/ector_renderer_software_buffer.c
+++ b/src/lib/ector/software/ector_renderer_software_buffer.c
@@ -15,7 +15,7 @@ typedef struct
15{ 15{
16 Ector_Renderer_Generic_Base_Data *base; 16 Ector_Renderer_Generic_Base_Data *base;
17 Software_Rasterizer *surface; 17 Software_Rasterizer *surface;
18 Ector_Generic_Buffer *eo_buffer; 18 Ector_Buffer *eo_buffer;
19} Ector_Renderer_Software_Buffer_Data; 19} Ector_Renderer_Software_Buffer_Data;
20 20
21 21