2 * Copyright (c) 2021 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.
19 #include <dali/integration-api/adaptor-framework/native-image-surface.h>
22 #include <dali/internal/window-system/common/native-image-surface-factory.h>
23 #include <dali/internal/window-system/common/native-image-surface-impl.h>
27 NativeImageSurfacePtr NativeImageSurface::New(Dali::NativeImageSourceQueuePtr queue)
29 NativeImageSurfacePtr surface = new NativeImageSurface(queue);
37 Any NativeImageSurface::GetNativeRenderable()
39 return mImpl->GetNativeRenderable();
42 void NativeImageSurface::InitializeGraphics()
44 mImpl->InitializeGraphics();
47 void NativeImageSurface::TerminateGraphics()
49 mImpl->TerminateGraphics();
52 void NativeImageSurface::PreRender()
57 void NativeImageSurface::PostRender()
62 bool NativeImageSurface::CanRender()
64 return mImpl->CanRender();
67 bool NativeImageSurface::SetGraphicsConfig(bool depth, bool stencil, int msaa, int version)
69 return mImpl->SetGraphicsConfig(depth, stencil, msaa, version);
72 NativeImageSurface::NativeImageSurface(Dali::NativeImageSourceQueuePtr queue)
74 mImpl = Dali::Internal::Adaptor::NativeImageSurfaceFactory::CreateNativeImageSurface(queue);
77 NativeImageSurface::~NativeImageSurface()