X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-adaptor%2Fdali-test-suite-utils%2Ftest-graphics-application.cpp;h=eeacebe87e3a37ebe1b222eba2b5d00560beb69f;hb=738af85a1b87813312227305117798edf85af875;hp=0ad4763fe5e3ee69a865271681ae72cba2c0df44;hpb=6f3d4964f2c41be7eab87a58260051212ec9e992;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-graphics-application.cpp b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-graphics-application.cpp index 0ad4763..eeacebe 100644 --- a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-graphics-application.cpp +++ b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-graphics-application.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2024 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -63,6 +63,7 @@ void TestGraphicsApplication::CreateCore() mGraphics.Initialize(); mGraphicsController.InitializeGLES(mGlAbstraction); mGraphicsController.Initialize(mGraphicsSyncImplementation, mGlContextHelperAbstraction, mGraphics); + mGraphicsController.ActivateResourceContext(); mCore = Dali::Integration::Core::New(mRenderController, mPlatformAbstraction, @@ -98,19 +99,20 @@ void TestGraphicsApplication::InitializeCore() TestGraphicsApplication::~TestGraphicsApplication() { + mGraphicsController.Shutdown(); Dali::Integration::Log::UninstallLogFunction(); delete mCore; } -void TestGraphicsApplication::LogContext(bool start, const char* tag) +void TestGraphicsApplication::LogContext(bool start, const char* tag, const char* message) { if(start) { - fprintf(stderr, "INFO: Trace Start: %s\n", tag); + fprintf(stderr, "INFO: Trace Start: %s %s\n", tag, message ? message : ""); } else { - fprintf(stderr, "INFO: Trace End: %s\n", tag); + fprintf(stderr, "INFO: Trace End: %s %s\n", tag, message ? message : ""); } }