Added UIThreadLoader to GLIB framework
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / macos / native-image-source-factory-mac.h
1 #pragma once
2
3 /*
4  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
5  *
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
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
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.
17  *
18  */
19
20 // INTERNAL INCLUDES
21 #include <dali/internal/imaging/common/native-image-source-factory.h>
22
23 namespace Dali::Internal::Adaptor
24 {
25 class NativeImageSourceFactoryCocoa : public NativeImageSourceFactory
26 {
27 public:
28   std::unique_ptr<NativeImageSource> CreateNativeImageSource(
29     unsigned int                        width,
30     unsigned int                        height,
31     Dali::NativeImageSource::ColorDepth depth,
32     Any                                 nativeImageSource) override;
33
34   std::unique_ptr<NativeImageSourceQueue> CreateNativeImageSourceQueue(
35     unsigned int                              width,
36     unsigned int                              height,
37     Dali::NativeImageSourceQueue::ColorFormat colorFormat,
38     Any                                       nativeImageSourceQueue) override;
39 };
40
41 } // namespace Dali::Internal::Adaptor