[cogl/wip/frame-synchronization: 219/223] Remove cogl_frame_info_get_frame_time()
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/frame-synchronization: 219/223] Remove cogl_frame_info_get_frame_time()
- Date: Fri, 25 Jan 2013 05:57:29 +0000 (UTC)
commit 38ac56be4a0af4048091cfa3f7fd206a0d4db424
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Jan 24 22:12:47 2013 -0500
Remove cogl_frame_info_get_frame_time()
The frame_time isn't closely associated with an onscreen - an update
could involve multiple stages (in a stage-per-output scenario, perhaps.)
If an application or toolkit needs to know the frame time for a FrameInfo
it will have to do that association itself.
cogl/cogl-frame-info-private.h | 1 -
cogl/cogl-frame-info.c | 6 ------
cogl/cogl-frame-info.h | 16 ----------------
cogl/cogl-onscreen.c | 3 +--
cogl/cogl-onscreen.h | 5 +----
5 files changed, 2 insertions(+), 29 deletions(-)
---
diff --git a/cogl/cogl-frame-info-private.h b/cogl/cogl-frame-info-private.h
index ef24d54..dfce6d0 100644
--- a/cogl/cogl-frame-info-private.h
+++ b/cogl/cogl-frame-info-private.h
@@ -32,7 +32,6 @@ struct _CoglFrameInfo
CoglObject _parent;
int64_t frame_counter;
- int64_t frame_time;
int64_t presentation_time;
float refresh_rate;
diff --git a/cogl/cogl-frame-info.c b/cogl/cogl-frame-info.c
index bb4059f..c592170 100644
--- a/cogl/cogl-frame-info.c
+++ b/cogl/cogl-frame-info.c
@@ -60,12 +60,6 @@ cogl_frame_info_get_frame_counter (CoglFrameInfo *info)
}
int64_t
-cogl_frame_info_get_frame_time (CoglFrameInfo *info)
-{
- return info->frame_time;
-}
-
-int64_t
cogl_frame_info_get_presentation_time (CoglFrameInfo *info)
{
return info->presentation_time;
diff --git a/cogl/cogl-frame-info.h b/cogl/cogl-frame-info.h
index 64dabc5..242e608 100644
--- a/cogl/cogl-frame-info.h
+++ b/cogl/cogl-frame-info.h
@@ -82,22 +82,6 @@ CoglBool cogl_frame_info_get_complete (CoglFrameInfo *info);
int64_t cogl_frame_info_get_frame_counter (CoglFrameInfo *info);
/**
- * cogl_frame_info_get_frame_time:
- * @info: a #CoglFrameInfo object
- *
- * Gets the time used for creating content for the frame. This
- * is determined by the time passed to cogl_onscreen_begin_frame(),
- * and will typically be the current time when rendering started
- * for the frame.
- *
- * Return value: the time used for coreating content for the frame,
- * in the timescale of g_get_monotonic_time().
- * Since: 2.0
- * Stability: unstable
- */
-int64_t cogl_frame_info_get_frame_time (CoglFrameInfo *info);
-
-/**
* cogl_frame_info_get_presentation_time:
* @info: a #CoglFrameInfo object
*
diff --git a/cogl/cogl-onscreen.c b/cogl/cogl-onscreen.c
index a1481da..19ddce0 100644
--- a/cogl/cogl-onscreen.c
+++ b/cogl/cogl-onscreen.c
@@ -567,8 +567,7 @@ cogl_onscreen_get_frame_counter (CoglOnscreen *onscreen)
}
void
-cogl_onscreen_begin_frame (CoglOnscreen *onscreen,
- int64_t frame_time)
+cogl_onscreen_begin_frame (CoglOnscreen *onscreen)
{
onscreen->frame_counter++;
onscreen->current_frame_info = (onscreen->current_frame_info + 1) % COGL_ONSCREEN_MAX_FRAME_INFOS;
diff --git a/cogl/cogl-onscreen.h b/cogl/cogl-onscreen.h
index 7954eb4..050e191 100644
--- a/cogl/cogl-onscreen.h
+++ b/cogl/cogl-onscreen.h
@@ -696,8 +696,6 @@ cogl_onscreen_get_frame_counter (CoglOnscreen *onscreen);
/**
* cogl_onscreen_begin_frame:
* @onscreen: a #CoglOnscreen framebuffer
- * @frame_time: the time that should be used for creating
- * content for this frame.
*
* Marks the beginning of a frame. This increases the frame
* counter value and creates a new #CoglFrameInfo objeect.
@@ -705,8 +703,7 @@ cogl_onscreen_get_frame_counter (CoglOnscreen *onscreen);
* Since: 2.0
*/
void
-cogl_onscreen_begin_frame (CoglOnscreen *onscreen,
- int64_t frame_time);
+cogl_onscreen_begin_frame (CoglOnscreen *onscreen);
/**
* cogl_onscreen_get_frame_history_start:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]