4 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 #include <dali/public-api/object/any.h>
24 #include <dali/devel-api/adaptor-framework/native-image-source-queue.h>
25 #include <dali/internal/window-system/common/native-image-surface-impl.h>
33 class NativeImageSurfaceCocoa : public Dali::Internal::Adaptor::NativeImageSurface
37 * @param [in] queue the NativeImageSourceQueue pointer
39 NativeImageSurfaceCocoa(Dali::NativeImageSourceQueuePtr queue);
44 ~NativeImageSurfaceCocoa();
48 * @copydoc Dali::NativeImageSurface::GetNativeRenderable()
50 Any GetNativeRenderable() override;
53 * @copydoc Dali::NativeImageSurface::InitializeGraphics()
55 void InitializeGraphics() override;
58 * @copydoc Dali::NativeImageSurface::TerminateGraphics()
60 void TerminateGraphics() override;
63 * @copydoc Dali::NativeImageSurface::PreRender()
65 void PreRender() override;
68 * @copydoc Dali::NativeImageSurface::PostRender()
70 void PostRender() override;
73 * @copydoc Dali::NativeImageSurface::CanRender()
75 bool CanRender() override;
78 * @copydoc Dali::NativeImageSurface::SetGraphicsConfig()
80 bool SetGraphicsConfig(bool depth, bool stencil, int msaa, int version) override;
83 } // namespace Adaptor
84 } // namespace Internal