uncommented VideoTimer methods.

This commit is contained in:
rachytski 2011-11-25 20:29:29 +04:00 committed by Alex Zolotarev
parent 3d5308a130
commit d07a128bec
3 changed files with 17 additions and 9 deletions

View file

@ -288,4 +288,9 @@ namespace android
{
m_work.SaveState();
}
void Framework::Invalidate()
{
m_work.Invalidate();
}
}

View file

@ -47,6 +47,8 @@ namespace android
storage::Storage & Storage();
void Invalidate();
void InitRenderPolicy();
void DeleteRenderPolicy();

View file

@ -8,6 +8,7 @@
#include "../core/jni_helper.hpp"
#include "VideoTimer.hpp"
#include "../../../../../base/assert.hpp"
#include "../../../../../base/logging.hpp"
android::VideoTimer * g_timer = 0;
@ -33,39 +34,39 @@ namespace android
void VideoTimer::start()
{
/* JNIEnv * env;
JNIEnv * env;
m_javaVM->AttachCurrentThread(&env, NULL);
env->CallVoidMethod(m_videoTimer, jni::GetJavaMethodID(env, m_videoTimer, "start", "()V"));
m_state = ERunning;*/
m_state = ERunning;
}
void VideoTimer::resume()
{
/* JNIEnv * env;
JNIEnv * env;
m_javaVM->AttachCurrentThread(&env, NULL);
env->CallVoidMethod(m_videoTimer, jni::GetJavaMethodID(env, m_videoTimer, "resume", "()V"));
m_state = ERunning;*/
m_state = ERunning;
}
void VideoTimer::pause()
{
/* JNIEnv * env;
JNIEnv * env;
m_javaVM->AttachCurrentThread(&env, NULL);
env->CallVoidMethod(m_videoTimer, jni::GetJavaMethodID(env, m_videoTimer, "pause", "()V"));
m_state = EPaused;*/
m_state = EPaused;
}
void VideoTimer::stop()
{
/* JNIEnv * env;
JNIEnv * env;
m_javaVM->AttachCurrentThread(&env, NULL);
env->CallVoidMethod(m_videoTimer, jni::GetJavaMethodID(env, m_videoTimer, "stop", "()V"));
m_state = EStopped;*/
m_state = EStopped;
}
void VideoTimer::perform()
{
//m_frameFn();
m_frameFn();
}
}