projects
/
platform
/
core
/
uifw
/
dali-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Trace Functionality using Performance Server.
[platform/core/uifw/dali-core.git]
/
automated-tests
/
src
/
dali
/
dali-test-suite-utils
/
test-application.cpp
diff --git
a/automated-tests/src/dali/dali-test-suite-utils/test-application.cpp
b/automated-tests/src/dali/dali-test-suite-utils/test-application.cpp
index
54a69bb
..
8bb7176
100644
(file)
--- a/
automated-tests/src/dali/dali-test-suite-utils/test-application.cpp
+++ b/
automated-tests/src/dali/dali-test-suite-utils/test-application.cpp
@@
-68,7
+68,9
@@
void TestApplication::Initialize()
mGlSyncAbstraction,
mGestureManager,
mDataRetentionPolicy,
mGlSyncAbstraction,
mGestureManager,
mDataRetentionPolicy,
- false );
+ Integration::RenderToFrameBuffer::FALSE,
+ Integration::DepthBufferAvailable::TRUE,
+ Integration::StencilBufferAvailable::TRUE );
mCore->ContextCreated();
mCore->SurfaceResized( mSurfaceWidth, mSurfaceHeight );
mCore->ContextCreated();
mCore->SurfaceResized( mSurfaceWidth, mSurfaceHeight );
@@
-77,6
+79,11
@@
void TestApplication::Initialize()
Dali::Integration::Log::LogFunction logFunction(&TestApplication::LogMessage);
Dali::Integration::Log::InstallLogFunction(logFunction);
Dali::Integration::Log::LogFunction logFunction(&TestApplication::LogMessage);
Dali::Integration::Log::InstallLogFunction(logFunction);
+ Dali::Integration::Trace::LogContextFunction logContextFunction(&TestApplication::LogContext);
+ Dali::Integration::Trace::InstallLogContextFunction( logContextFunction );
+
+ Dali::Integration::Trace::LogContext( true, "Test" );
+
mCore->SceneCreated();
}
mCore->SceneCreated();
}
@@
-86,6
+93,18
@@
TestApplication::~TestApplication()
delete mCore;
}
delete mCore;
}
+void TestApplication::LogContext( bool start, const char* tag )
+{
+ if( start )
+ {
+ fprintf(stderr, "INFO: Trace Start: %s", tag);
+ }
+ else
+ {
+ fprintf(stderr, "INFO: Trace End: %s", tag);
+ }
+}
+
void TestApplication::LogMessage(Dali::Integration::Log::DebugPriority level, std::string& message)
{
switch(level)
void TestApplication::LogMessage(Dali::Integration::Log::DebugPriority level, std::string& message)
{
switch(level)
@@
-181,7
+200,7
@@
void TestApplication::DoUpdate( unsigned int intervalMilliseconds, const char* l
bool TestApplication::Render( unsigned int intervalMilliseconds, const char* location )
{
DoUpdate( intervalMilliseconds, location );
bool TestApplication::Render( unsigned int intervalMilliseconds, const char* location )
{
DoUpdate( intervalMilliseconds, location );
- mCore->Render( mRenderStatus );
+ mCore->Render( mRenderStatus
, false
);
mFrame++;
mFrame++;
@@
-207,7
+226,7
@@
bool TestApplication::GetRenderNeedsUpdate()
bool TestApplication::RenderOnly( )
{
// Update Time values
bool TestApplication::RenderOnly( )
{
// Update Time values
- mCore->Render( mRenderStatus );
+ mCore->Render( mRenderStatus
, false
);
mFrame++;
mFrame++;