X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-scene-holder-impl.h;h=0cfdcc09a0501e5db38ac1e500b00485f2f40743;hp=a937262f5005cb038bd74e77bc504630a340578f;hb=32d9c82fd183da60e3c54584d888388e73b92d34;hpb=3d289bfc3a7a600011f0ba00b7fa8241854a74ca diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-scene-holder-impl.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-scene-holder-impl.h index a937262..0cfdcc0 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-scene-holder-impl.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-scene-holder-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_SCENE_HOLDER_IMPL_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -18,7 +18,7 @@ * */ -#include +#include #include #include @@ -27,6 +27,57 @@ namespace Dali { +class TestRenderSurface : public Dali::RenderSurfaceInterface +{ +public: + + TestRenderSurface( PositionSize positionSize ) {}; + + PositionSize GetPositionSize() const override { PositionSize size; return size; }; + + virtual void GetDpi( unsigned int& dpiHorizontal, unsigned int& dpiVertical ) { dpiHorizontal = dpiVertical = 96; } + + void InitializeGraphics() override {}; + + void CreateSurface() override {}; + + void DestroySurface() override {}; + + bool ReplaceGraphicsSurface() override { return false; }; + + void MoveResize( Dali::PositionSize positionSize ) override {}; + + void StartRender() override {}; + + bool PreRender( bool resizingSurface, const std::vector>& damagedRects, Rect& clippingRect ) override { return false; }; + + void PostRender() + { + } + + //void PostRender( bool renderToFbo, bool replacingSurface, bool resizingSurface, const std::vector>& damagedRects ) override {}; + + void StopRender() override {}; + + void ReleaseLock() override {}; + + void SetThreadSynchronization( ThreadSynchronizationInterface& threadSynchronization ) override {}; + + RenderSurfaceInterface::Type GetSurfaceType() override { return RenderSurfaceInterface::WINDOW_RENDER_SURFACE; }; + + void MakeContextCurrent() override {}; + + Integration::DepthBufferAvailable GetDepthBufferRequired() override { return Integration::DepthBufferAvailable::FALSE; }; + + Integration::StencilBufferAvailable GetStencilBufferRequired() override { return Integration::StencilBufferAvailable::FALSE; }; + + int GetOrientation() const override {return 0;}; + + void SetBackgroundColor( Vector4 color ) {}; + + Vector4 GetBackgroundColor() { return Color::WHITE; }; +}; + namespace Internal { @@ -61,13 +112,13 @@ public: Dali::Integration::SceneHolder::KeyEventGeneratedSignalType& KeyEventGeneratedSignal(); - Dali::Integration::SceneHolder::TouchSignalType& TouchSignal(); + Dali::Integration::SceneHolder::TouchEventSignalType& TouchedSignal(); Dali::Integration::SceneHolder::WheelEventSignalType& WheelEventSignal(); Integration::Scene GetScene(); - Integration::RenderSurface& GetRenderSurface(); + Dali::RenderSurfaceInterface& GetRenderSurface(); private: