{
bool TestGraphicsApplication::mLoggingEnabled = true;
-
TestGraphicsApplication::TestGraphicsApplication(uint32_t surfaceWidth,
uint32_t surfaceHeight,
uint32_t horizontalDpi,
{
mScene = Dali::Integration::Scene::New(Size(static_cast<float>(mSurfaceWidth), static_cast<float>(mSurfaceHeight)));
mScene.SetDpi(Vector2(static_cast<float>(mDpi.x), static_cast<float>(mDpi.y)));
+
+ Graphics::RenderTargetCreateInfo createInfo{};
+ createInfo.SetSurface({nullptr})
+ .SetExtent({mSurfaceWidth, mSurfaceHeight})
+ .SetPreTransform(0 | Graphics::RenderTargetTransformFlagBits::TRANSFORM_IDENTITY_BIT);
+ mRenderTarget = mGraphicsController.CreateRenderTarget(createInfo, nullptr);
+ mScene.SetSurfaceRenderTarget(mRenderTarget.get());
}
void TestGraphicsApplication::InitializeCore()
#include <test-platform-abstraction.h>
#include <test-render-controller.h>
-
namespace Dali
{
-
-
namespace Internal::Adaptor
{
class ConfigurationManager;
TraceCallStack mCallstack{true, "GraphicsImpl"};
};
-
-
-
class DALI_CORE_API TestGraphicsApplication : public ConnectionTracker
{
public:
void DoUpdate(uint32_t intervalMilliseconds, const char* location = NULL);
protected:
- TestPlatformAbstraction mPlatformAbstraction;
- TestRenderController mRenderController;
- Graphics::EglGraphicsController mGraphicsController; // Use real controller in Adaptor
- TestGlAbstraction mGlAbstraction;
- TestGlSyncAbstraction mGlSyncAbstraction;
- TestGlContextHelperAbstraction mGlContextHelperAbstraction;
- TestGraphicsImpl mGraphics;
+ TestPlatformAbstraction mPlatformAbstraction;
+ TestRenderController mRenderController;
+ Graphics::EglGraphicsController mGraphicsController; // Use real controller in Adaptor
+ TestGlAbstraction mGlAbstraction;
+ TestGlSyncAbstraction mGlSyncAbstraction;
+ TestGlContextHelperAbstraction mGlContextHelperAbstraction;
+ TestGraphicsImpl mGraphics;
+ Graphics::UniquePtr<Graphics::RenderTarget> mRenderTarget{nullptr};
Integration::UpdateStatus mStatus;
Integration::RenderStatus mRenderStatus;