[gimp] app: record GimpDrawTool's last draw time *after* it has drawn its stuff
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: record GimpDrawTool's last draw time *after* it has drawn its stuff
- Date: Mon, 2 Jun 2014 18:48:35 +0000 (UTC)
commit 1781b79a16a71e119462de980e65b710a3475f91
Author: Michael Natterer <mitch gimp org>
Date: Mon Jun 2 20:45:31 2014 +0200
app: record GimpDrawTool's last draw time *after* it has drawn its stuff
not before. Doesn't seem to change things but it's more correct.
app/tools/gimpdrawtool.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c
index c2edec1..3d94495 100644
--- a/app/tools/gimpdrawtool.c
+++ b/app/tools/gimpdrawtool.c
@@ -236,7 +236,16 @@ gimp_draw_tool_draw (GimpDrawTool *draw_tool)
if (draw_tool->item)
gimp_display_shell_add_tool_item (shell, draw_tool->item);
- draw_tool->last_draw_time = now;
+#if 0
+ gimp_display_shell_flush (shell, TRUE);
+#endif
+
+ draw_tool->last_draw_time = g_get_monotonic_time ();
+
+#if 0
+ g_printerr ("drawing tool stuff took %f seconds\n",
+ (draw_tool->last_draw_time - now) / 1000000.0);
+#endif
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]