1 #ifndef DALI_NATIVE_RENDER_SURFACE_H
2 #define DALI_NATIVE_RENDER_SURFACE_H
5 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/integration-api/adaptor-framework/render-surface-interface.h>
23 #include <dali/public-api/dali-adaptor-common.h>
27 class TriggerEventInterface;
30 * Native interface of render surface.
32 class DALI_ADAPTOR_API NativeRenderSurface : public Dali::RenderSurfaceInterface
36 * @brief Default constructor
38 NativeRenderSurface() = default;
43 virtual ~NativeRenderSurface() = default;
47 * @brief Sets the render notification trigger to call when render thread is completed a frame
48 * @param renderNotification to use
50 virtual void SetRenderNotification(TriggerEventInterface* renderNotification) = 0;
53 * @brief Get the native renderable handle
54 * @return The native renderable handle
56 virtual Any GetNativeRenderable() = 0;
58 private: // from NativeRenderSurface
60 * @brief Create a renderable
62 virtual void CreateNativeRenderable() = 0;
66 NativeRenderSurface(const NativeRenderSurface&) = delete;
69 NativeRenderSurface& operator=(const NativeRenderSurface& rhs) = delete;
74 #endif // DALI_NATIVE_RENDER_SURFACE_H