Mercurial > MadButterfly
annotate include/mb_graph_engine.h @ 511:caa087976b17 Android_Skia
Fix the issue of segmentation fault when the pattern of a mbe is not setted.
For Skia graphic engine, a mbe does not always have a pattern. For
example, a color paint does not set a pattern on a mbe for a shape.
So, we check if pattern is setted before accessing it.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 01 Dec 2009 22:55:27 +0800 |
parents | 4254eaa699d0 |
children | e2c9117b1e12 586e50f82c1f |
rev | line source |
---|---|
448
16116d84bc5e
Replace Cairo with a abstract layer mb_graph_engine.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
1 #ifndef __MBE_H_ |
16116d84bc5e
Replace Cairo with a abstract layer mb_graph_engine.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
2 #define __MBE_H_ |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
3 #include <mb_config.h> |
450
a417fd980228
Replace cairo_format_t with mb_img_fmt_t.
Thinker K.F. Li <thinker@branda.to>
parents:
449
diff
changeset
|
4 |
466
cd6f57b9b104
Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents:
465
diff
changeset
|
5 #ifdef CAIRO_GRAPH_ENGINE |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
6 #include <mb_graph_engine_cairo.h> |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
7 #endif |
450
a417fd980228
Replace cairo_format_t with mb_img_fmt_t.
Thinker K.F. Li <thinker@branda.to>
parents:
449
diff
changeset
|
8 |
472
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
466
diff
changeset
|
9 #ifdef SKIA_GRAPH_ENGINE |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
10 #include <mb_graph_engine_skia.h> |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
463
diff
changeset
|
11 #endif |
448
16116d84bc5e
Replace Cairo with a abstract layer mb_graph_engine.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
12 |
16116d84bc5e
Replace Cairo with a abstract layer mb_graph_engine.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
13 #endif /* __MBE_H_ */ |