projects
/
platform
/
core
/
appfw
/
widget-viewer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee81231
)
Try to sync buffer when client tries to get FB
author
Sung-jae Park
<nicesj.park@samsung.com>
Wed, 24 Oct 2012 06:00:07 +0000
(15:00 +0900)
committer
Sung-jae Park
<nicesj.park@samsung.com>
Wed, 24 Oct 2012 06:13:35 +0000
(15:13 +0900)
Change-Id: Ibd6615f032ce7c835accbbd21019e69ef1f67ce7
src/fb.c
patch
|
blob
|
history
diff --git
a/src/fb.c
b/src/fb.c
index
bc6d439
..
f715d0c
100644
(file)
--- a/
src/fb.c
+++ b/
src/fb.c
@@
-422,6
+422,20
@@
void *fb_acquire_buffer(struct fb_info *info)
break;
}
+ {
+ FILE *fp;
+ static int idx = 0;
+ char filename[256];
+
+ DbgPrint("Flush %s\n", info->id);
+ snprintf(filename, sizeof(filename), "/opt/%d.raw", idx++);
+ fp = fopen(filename, "w+");
+ if (fp) {
+ fwrite(buffer->data, 1, info->bufsz, fp);
+ fclose(fp);
+ }
+ }
+
return buffer->data;
}