a52cf6524e2ec3178a325635ba5885d5ed46a496
[platform/core/uifw/dali-adaptor.git] / dali / internal / window-system / common / native-image-surface-impl.h
1 #ifndef DALI_INTERNAL_WINDOWSYSTEM_COMMON_NATIVE_IMAGE_SURFACE_IMPL_H
2 #define DALI_INTERNAL_WINDOWSYSTEM_COMMON_NATIVE_IMAGE_SURFACE_IMPL_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
23 #include <dali/public-api/object/any.h>
24 #include <dali/public-api/object/base-object.h>
25
26 // INTERNAL INCLUDES
27 #include <dali/devel-api/adaptor-framework/native-image-source-queue.h>
28
29 namespace Dali
30 {
31 class NativeImageSurface;
32
33 namespace Internal
34 {
35 namespace Adaptor
36 {
37 class NativeImageSurface
38 {
39 public:
40   /**
41    * @brief Destructor
42    */
43   virtual ~NativeImageSurface() = default;
44
45   /**
46    * @copydoc Dali::NativeImageSurface::GetNativeRenderable()
47    */
48   virtual Any GetNativeRenderable() = 0;
49
50   /**
51    * @copydoc Dali::NativeImageSurface::InitializeGraphics()
52    */
53   virtual void InitializeGraphics() = 0;
54
55   /**
56    * @copydoc Dali::NativeImageSurface::TerminateGraphics()
57    */
58   virtual void TerminateGraphics() = 0;
59
60   /**
61    * @copydoc Dali::NativeImageSurface::PreRender()
62    */
63   virtual void PreRender() = 0;
64
65   /**
66    * @copydoc Dali::NativeImageSurface::PostRender()
67    */
68   virtual void PostRender() = 0;
69
70   /**
71    * @copydoc Dali::NativeImageSurface::CanRender()
72    */
73   virtual bool CanRender() = 0;
74
75   /**
76    * @copydoc Dali::NativeImageSurface::SetGraphicsConfig()
77    */
78   virtual bool SetGraphicsConfig(bool depth, bool stencil, int msaa, int version) = 0;
79 };
80
81 } // namespace Adaptor
82 } // namespace Internal
83 } // namespace Dali
84
85 #endif // DALI_INTERNAL_WINDOWSYSTEM_COMMON_NATIVE_IMAGE_SURFACE_IMPL_H