Mercurial > MadButterfly
comparison src/redraw_man.c @ 512:d186d1e24458 Android_Skia
Change prototype of mbe_copy_source().
- To make mbe_copy_source more portable, user of mbe_copy_source()
should specify source and destinate canvas for copying.
- Export a new function for Skia graphic engine, for Android JNI.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 01 Dec 2009 22:55:27 +0800 |
parents | 4291f16f3a09 |
children | 7a1b17ebb3b4 |
comparison
equal
deleted
inserted
replaced
511:caa087976b17 | 512:d186d1e24458 |
---|---|
1915 static void copy_cr_2_backend(redraw_man_t *rdman, int n_dirty_areas, | 1915 static void copy_cr_2_backend(redraw_man_t *rdman, int n_dirty_areas, |
1916 area_t **dirty_areas) { | 1916 area_t **dirty_areas) { |
1917 if(n_dirty_areas) | 1917 if(n_dirty_areas) |
1918 make_clip(rdman->backend, n_dirty_areas, dirty_areas); | 1918 make_clip(rdman->backend, n_dirty_areas, dirty_areas); |
1919 | 1919 |
1920 mbe_copy_source(rdman->backend); | 1920 mbe_copy_source(rdman->cr, rdman->backend); |
1921 } | 1921 } |
1922 #else /* UNITTEST */ | 1922 #else /* UNITTEST */ |
1923 static void make_clip(mbe_t *cr, int n_dirty_areas, | 1923 static void make_clip(mbe_t *cr, int n_dirty_areas, |
1924 area_t **dirty_areas) { | 1924 area_t **dirty_areas) { |
1925 } | 1925 } |