2 * Copyright (c) 2024 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"
22 TestRenderSurface::TestRenderSurface(Dali::PositionSize positionSize)
23 : mPositionSize(positionSize),
28 TestRenderSurface::~TestRenderSurface()
32 Dali::PositionSize TestRenderSurface::GetPositionSize() const
37 void TestRenderSurface::GetDpi(unsigned int& dpiHorizontal, unsigned int& dpiVertical)
39 dpiHorizontal = dpiVertical = 96;
42 int TestRenderSurface::GetSurfaceOrientation() const
47 int TestRenderSurface::GetScreenOrientation() const
52 void TestRenderSurface::InitializeGraphics()
56 void TestRenderSurface::CreateSurface()
60 void TestRenderSurface::DestroySurface()
64 bool TestRenderSurface::ReplaceGraphicsSurface()
69 void TestRenderSurface::MoveResize(Dali::PositionSize positionSize)
71 mPositionSize = positionSize;
74 void TestRenderSurface::StartRender()
78 bool TestRenderSurface::PreRender(bool resizingSurface, const std::vector<Rect<int>>& damageRects, Rect<int>& clippingRect)
83 void TestRenderSurface::PostRender()
87 void TestRenderSurface::StopRender()
91 void TestRenderSurface::ReleaseLock()
95 void TestRenderSurface::SetThreadSynchronization(ThreadSynchronizationInterface& threadSynchronization)
99 Dali::Integration::RenderSurfaceInterface::Type TestRenderSurface::GetSurfaceType()
101 return WINDOW_RENDER_SURFACE;
104 void TestRenderSurface::MakeContextCurrent()
108 Integration::DepthBufferAvailable TestRenderSurface::GetDepthBufferRequired()
110 return Integration::DepthBufferAvailable::TRUE;
113 Integration::StencilBufferAvailable TestRenderSurface::GetStencilBufferRequired()
115 return Integration::StencilBufferAvailable::TRUE;