diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2013-02-12 16:14:24 -0500 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2013-02-14 17:19:52 -0500 |
commit | d5edf9c072cdcab3a3cbee2cdb36b122dd953f0c (patch) | |
tree | 64d7bb5129a1049fc269a099a9b59211597a87ad /gdk/gdkframeclockidle.c | |
parent | 515e5f74aadcef7d1d55f593fa16d9e3c1f3fb4b (diff) | |
download | gtk+-d5edf9c072cdcab3a3cbee2cdb36b122dd953f0c.tar.gz |
GdkFrameTimings: strip down to a minimal public API
Since we're not exporting the ability to create your own frame
clock for now, remove the setters for GdkFrameTimings fields.
Also remove all setters and getters for fields that are more
about implementation than about quantities that are meaningful
to the applcation and just access the fields directly within
GDK.
Diffstat (limited to 'gdk/gdkframeclockidle.c')
-rw-r--r-- | gdk/gdkframeclockidle.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gdk/gdkframeclockidle.c b/gdk/gdkframeclockidle.c index da05a9698a..afb9430945 100644 --- a/gdk/gdkframeclockidle.c +++ b/gdk/gdkframeclockidle.c @@ -304,10 +304,8 @@ gdk_frame_clock_paint_idle (void *data) _gdk_frame_clock_begin_frame (clock); timings = gdk_frame_clock_get_current_frame_timings (clock); - gdk_frame_timings_set_frame_time (timings, priv->frame_time); - - gdk_frame_timings_set_slept_before (timings, - priv->sleep_serial != get_sleep_serial ()); + timings->frame_time = priv->frame_time; + timings->slept_before = priv->sleep_serial != get_sleep_serial (); priv->phase = GDK_FRAME_CLOCK_PHASE_BEFORE_PAINT; @@ -336,7 +334,7 @@ gdk_frame_clock_paint_idle (void *data) { if (priv->phase != GDK_FRAME_CLOCK_PHASE_LAYOUT && (priv->requested & GDK_FRAME_CLOCK_PHASE_LAYOUT)) - _gdk_frame_timings_set_layout_start_time (timings, g_get_monotonic_time ()); + timings->layout_start_time = g_get_monotonic_time (); } #endif /* G_ENABLE_DEBUG */ @@ -355,7 +353,7 @@ gdk_frame_clock_paint_idle (void *data) { if (priv->phase != GDK_FRAME_CLOCK_PHASE_PAINT && (priv->requested & GDK_FRAME_CLOCK_PHASE_PAINT)) - _gdk_frame_timings_set_paint_start_time (timings, g_get_monotonic_time ()); + timings->paint_start_time = g_get_monotonic_time (); } #endif /* G_ENABLE_DEBUG */ @@ -377,7 +375,7 @@ gdk_frame_clock_paint_idle (void *data) #ifdef G_ENABLE_DEBUG if ((_gdk_debug_flags & GDK_DEBUG_FRAMES) != 0) - _gdk_frame_timings_set_frame_end_time (timings, g_get_monotonic_time ()); + timings->frame_end_time = g_get_monotonic_time (); #endif /* G_ENABLE_DEBUG */ } case GDK_FRAME_CLOCK_PHASE_RESUME_EVENTS: @@ -388,7 +386,7 @@ gdk_frame_clock_paint_idle (void *data) #ifdef G_ENABLE_DEBUG if ((_gdk_debug_flags & GDK_DEBUG_FRAMES) != 0) { - if (gdk_frame_timings_get_complete (timings)) + if (timings->complete) _gdk_frame_clock_debug_print_timings (clock, timings); } #endif /* G_ENABLE_DEBUG */ |