X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-scene-holder-impl.h;h=8075dbee7b7ea52f1a1e764a21ee647851c12dfb;hb=6a219d0bbcfd016e24b5466d5fb1a666c92feae5;hp=203ac7370fa53168c7a5516df87d4505011527b7;hpb=eccbcc0637034cc96bc6d392b297a9d99e86c442;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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 203ac73..8075dbe 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) 2020 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. @@ -31,9 +31,9 @@ class TestRenderSurface : public Dali::RenderSurfaceInterface { public: - TestRenderSurface( PositionSize positionSize ) {}; + TestRenderSurface( PositionSize positionSize ) : mPositionSize(positionSize) {}; - PositionSize GetPositionSize() const override { PositionSize size; return size; }; + PositionSize GetPositionSize() const override { return mPositionSize; }; virtual void GetDpi( unsigned int& dpiHorizontal, unsigned int& dpiVertical ) { dpiHorizontal = dpiVertical = 96; } @@ -45,13 +45,17 @@ public: bool ReplaceGraphicsSurface() override { return false; }; - void MoveResize( Dali::PositionSize positionSize ) override {}; + void MoveResize( Dali::PositionSize positionSize ) override { mPositionSize = positionSize; }; void StartRender() override {}; bool PreRender( bool resizingSurface, const std::vector>& damagedRects, Rect& clippingRect ) override { return false; }; - void PostRender( bool renderToFbo, bool replacingSurface, bool resizingSurface, const std::vector>& damagedRects ) override {}; + void PostRender() + { + } + + //void PostRender( bool renderToFbo, bool replacingSurface, bool resizingSurface, const std::vector>& damagedRects ) override {}; void StopRender() override {}; @@ -67,9 +71,14 @@ public: Integration::StencilBufferAvailable GetStencilBufferRequired() override { return Integration::StencilBufferAvailable::FALSE; }; + int GetOrientation() const override {return 0;}; + void SetBackgroundColor( Vector4 color ) {}; Vector4 GetBackgroundColor() { return Color::WHITE; }; + +private: + PositionSize mPositionSize; }; namespace Internal @@ -110,11 +119,13 @@ public: Dali::Integration::SceneHolder::WheelEventSignalType& WheelEventSignal(); + Dali::Integration::SceneHolder::WheelEventGeneratedSignalType& WheelEventGeneratedSignal(); + Integration::Scene GetScene(); Dali::RenderSurfaceInterface& GetRenderSurface(); -private: +protected: TestRenderSurface mRenderSurface; Integration::Scene mScene;