Add NativeImageSurface
[platform/core/uifw/dali-adaptor.git] / dali / internal / window-system / windows / native-image-surface-impl-win.h
1 #ifndef DALI_INTERNAL_WINDOWSYSTEM_WIN_NATIVE_IMAGE_SURFACE_IMPL_WIN_H
2 #define DALI_INTERNAL_WINDOWSYSTEM_WIN_NATIVE_IMAGE_SURFACE_IMPL_WIN_H
3
4 /*
5  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <dali/public-api/object/any.h>
23
24 // INTERNAL INCLUDES
25 #include <dali/devel-api/adaptor-framework/native-image-source-queue.h>
26 #include <dali/internal/window-system/common/native-image-surface-impl.h>
27
28 namespace Dali
29 {
30 namespace Internal
31 {
32 namespace Adaptor
33 {
34 class NativeImageSurfaceWin : public Dali::Internal::Adaptor::NativeImageSurface
35 {
36 public:
37   /**
38     * @param [in] queue the NativeImageSourceQueue pointer
39     */
40   NativeImageSurfaceWin(Dali::NativeImageSourceQueuePtr queue);
41
42   /**
43    * @brief Destructor
44    */
45   ~NativeImageSurfaceWin();
46
47 public:
48   /**
49    * @copydoc Dali::NativeImageSurface::GetNativeRenderable()
50    */
51   Any GetNativeRenderable() override;
52
53   /**
54    * @copydoc Dali::NativeImageSurface::InitializeGraphics()
55    */
56   void InitializeGraphics() override;
57
58   /**
59    * @copydoc Dali::NativeImageSurface::TerminateGraphics()
60    */
61   void TerminateGraphics() override;
62
63   /**
64    * @copydoc Dali::NativeImageSurface::PreRender()
65    */
66   void PreRender() override;
67
68   /**
69    * @copydoc Dali::NativeImageSurface::PostRender()
70    */
71   void PostRender() override;
72
73   /**
74    * @copydoc Dali::NativeImageSurface::CanRender()
75    */
76   bool CanRender() override;
77
78   /**
79    * @copydoc Dali::NativeImageSurface::SetGraphicsConfig()
80    */
81   bool SetGraphicsConfig(bool depth, bool stencil, int msaa, int version) override;
82 };
83
84 } // namespace Adaptor
85 } // namespace Internal
86 } // namespace Dali
87
88 #endif // DALI_INTERNAL_WINDOWSYSTEM_WIN_NATIVE_IMAGE_SURFACE_IMPL_WIN_H