#define DALI_TOOLKIT_SCENE_HOLDER_IMPL_H
/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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.
*
*/
-#include <test-render-surface.h>
+#include <dali/integration-api/adaptor-framework/render-surface-interface.h>
#include <dali/integration-api/scene.h>
#include <dali/public-api/actors/layer.h>
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<Rect<int>>& damagedRects, Rect<int>& clippingRect ) override { return false; };
+
+ void PostRender( bool renderToFbo, bool replacingSurface, bool resizingSurface, const std::vector<Rect<int>>& 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
{
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: