[dali_2.3.34] Merge branch 'devel/master'
[platform/core/uifw/dali-core.git] / automated-tests / src / dali / dali-test-suite-utils / test-render-surface.cpp
1 /*
2  * Copyright (c) 2024 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #include "test-render-surface.h"
19
20 namespace Dali
21 {
22 TestRenderSurface::TestRenderSurface(Dali::PositionSize positionSize)
23 : mPositionSize(positionSize),
24   mBackgroundColor()
25 {
26 }
27
28 TestRenderSurface::~TestRenderSurface()
29 {
30 }
31
32 Dali::PositionSize TestRenderSurface::GetPositionSize() const
33 {
34   return mPositionSize;
35 };
36
37 void TestRenderSurface::GetDpi(unsigned int& dpiHorizontal, unsigned int& dpiVertical)
38 {
39   dpiHorizontal = dpiVertical = 96;
40 };
41
42 int TestRenderSurface::GetSurfaceOrientation() const
43 {
44   return 0;
45 }
46
47 int TestRenderSurface::GetScreenOrientation() const
48 {
49   return 0;
50 }
51
52 void TestRenderSurface::InitializeGraphics()
53 {
54 }
55
56 void TestRenderSurface::CreateSurface()
57 {
58 }
59
60 void TestRenderSurface::DestroySurface()
61 {
62 }
63
64 bool TestRenderSurface::ReplaceGraphicsSurface()
65 {
66   return false;
67 }
68
69 void TestRenderSurface::MoveResize(Dali::PositionSize positionSize)
70 {
71   mPositionSize = positionSize;
72 }
73
74 void TestRenderSurface::StartRender()
75 {
76 }
77
78 bool TestRenderSurface::PreRender(bool resizingSurface, const std::vector<Rect<int>>& damageRects, Rect<int>& clippingRect)
79 {
80   return true;
81 }
82
83 void TestRenderSurface::PostRender()
84 {
85 }
86
87 void TestRenderSurface::StopRender()
88 {
89 }
90
91 void TestRenderSurface::ReleaseLock()
92 {
93 }
94
95 void TestRenderSurface::SetThreadSynchronization(ThreadSynchronizationInterface& threadSynchronization)
96 {
97 }
98
99 Dali::Integration::RenderSurfaceInterface::Type TestRenderSurface::GetSurfaceType()
100 {
101   return WINDOW_RENDER_SURFACE;
102 }
103
104 void TestRenderSurface::MakeContextCurrent()
105 {
106 }
107
108 Integration::DepthBufferAvailable TestRenderSurface::GetDepthBufferRequired()
109 {
110   return Integration::DepthBufferAvailable::TRUE;
111 }
112
113 Integration::StencilBufferAvailable TestRenderSurface::GetStencilBufferRequired()
114 {
115   return Integration::StencilBufferAvailable::TRUE;
116 }
117
118 } // namespace Dali