Merge "Unparents internalRoot actor when gaussian-blur-view is deactived." into devel...
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / test-render-surface.cpp
1 /*
2  * Copyright (c) 2019 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
23 TestRenderSurface::TestRenderSurface( Dali::PositionSize positionSize )
24 : mPositionSize( positionSize ),
25   mBackgroundColor()
26 {
27 }
28
29 TestRenderSurface::~TestRenderSurface()
30 {
31 }
32
33 Dali::PositionSize TestRenderSurface::GetPositionSize() const
34 {
35   return mPositionSize;
36 };
37
38 void TestRenderSurface::GetDpi( unsigned int& dpiHorizontal, unsigned int& dpiVertical )
39 {
40   dpiHorizontal = dpiVertical = 96;
41 };
42
43 void TestRenderSurface::InitializeGraphics()
44 {
45 }
46
47 void TestRenderSurface::CreateSurface()
48 {
49 }
50
51 void TestRenderSurface::DestroySurface()
52 {
53 }
54
55 bool TestRenderSurface::ReplaceGraphicsSurface()
56 {
57   return false;
58 }
59
60 void TestRenderSurface::MoveResize( Dali::PositionSize positionSize )
61 {
62   mPositionSize = positionSize;
63 }
64
65 void TestRenderSurface::StartRender()
66 {
67 }
68
69 bool TestRenderSurface::PreRender( bool resizingSurface )
70 {
71   return true;
72 }
73
74 void TestRenderSurface::PostRender( bool renderToFbo, bool replacingSurface, bool resizingSurface )
75 {
76 }
77
78 void TestRenderSurface::StopRender()
79 {
80 }
81
82 void TestRenderSurface::ReleaseLock()
83 {
84 }
85
86 Dali::Integration::RenderSurface::Type TestRenderSurface::GetSurfaceType()
87 {
88   return WINDOW_RENDER_SURFACE;
89 }
90
91 void TestRenderSurface::MakeContextCurrent()
92 {
93 }
94
95 Integration::DepthBufferAvailable TestRenderSurface::GetDepthBufferRequired()
96 {
97   return Integration::DepthBufferAvailable::TRUE;
98 }
99
100 Integration::StencilBufferAvailable TestRenderSurface::GetStencilBufferRequired()
101 {
102   return Integration::StencilBufferAvailable::TRUE;
103 }
104
105 void TestRenderSurface::SetBackgroundColor( Vector4 color )
106 {
107   mBackgroundColor = color;
108 }
109
110 Vector4 TestRenderSurface::GetBackgroundColor()
111 {
112   return mBackgroundColor;
113 }
114
115 } // Namespace dali