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 void TestRenderSurface::InitializeGraphics()
47 void TestRenderSurface::CreateSurface()
51 void TestRenderSurface::DestroySurface()
55 bool TestRenderSurface::ReplaceGraphicsSurface()
60 void TestRenderSurface::MoveResize( Dali::PositionSize positionSize )
62 mPositionSize = positionSize;
65 void TestRenderSurface::StartRender()
69 bool TestRenderSurface::PreRender( bool resizingSurface )
74 void TestRenderSurface::PostRender( bool renderToFbo, bool replacingSurface, bool resizingSurface )
78 void TestRenderSurface::StopRender()
82 void TestRenderSurface::ReleaseLock()
86 Dali::Integration::RenderSurface::Type TestRenderSurface::GetSurfaceType()
88 return WINDOW_RENDER_SURFACE;
91 void TestRenderSurface::MakeContextCurrent()
95 Integration::DepthBufferAvailable TestRenderSurface::GetDepthBufferRequired()
97 return Integration::DepthBufferAvailable::TRUE;
100 Integration::StencilBufferAvailable TestRenderSurface::GetStencilBufferRequired()
102 return Integration::StencilBufferAvailable::TRUE;
105 void TestRenderSurface::SetBackgroundColor( Vector4 color )
107 mBackgroundColor = color;
110 Vector4 TestRenderSurface::GetBackgroundColor()
112 return mBackgroundColor;