2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #include "test-render-surface.h"
23 TestRenderSurface::TestRenderSurface( Dali::PositionSize positionSize )
24 : mPositionSize( positionSize ),
29 TestRenderSurface::~TestRenderSurface()
33 Dali::PositionSize TestRenderSurface::GetPositionSize() const
38 void TestRenderSurface::GetDpi( unsigned int& dpiHorizontal, unsigned int& dpiVertical )
40 dpiHorizontal = dpiVertical = 96;
43 int TestRenderSurface::GetOrientation() const
48 void TestRenderSurface::InitializeGraphics()
52 void TestRenderSurface::CreateSurface()
56 void TestRenderSurface::DestroySurface()
60 bool TestRenderSurface::ReplaceGraphicsSurface()
65 void TestRenderSurface::MoveResize( Dali::PositionSize positionSize )
67 mPositionSize = positionSize;
70 void TestRenderSurface::StartRender()
74 bool TestRenderSurface::PreRender( bool resizingSurface )
79 void TestRenderSurface::PostRender( bool renderToFbo, bool replacingSurface, bool resizingSurface )
83 void TestRenderSurface::StopRender()
87 void TestRenderSurface::ReleaseLock()
91 Dali::Integration::RenderSurface::Type TestRenderSurface::GetSurfaceType()
93 return WINDOW_RENDER_SURFACE;
96 void TestRenderSurface::MakeContextCurrent()
100 Integration::DepthBufferAvailable TestRenderSurface::GetDepthBufferRequired()
102 return Integration::DepthBufferAvailable::TRUE;
105 Integration::StencilBufferAvailable TestRenderSurface::GetStencilBufferRequired()
107 return Integration::StencilBufferAvailable::TRUE;
110 void TestRenderSurface::SetBackgroundColor( Vector4 color )
112 mBackgroundColor = color;
115 Vector4 TestRenderSurface::GetBackgroundColor()
117 return mBackgroundColor;