Add ApplyCustomFragmentPrefix
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / android / native-image-source-queue-impl-android.cpp
1 /*
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/internal/imaging/android/native-image-source-queue-impl-android.h>
20
21 // EXTERNAL INCLUDES
22 #include <dali/integration-api/debug.h>
23 #include <dali/integration-api/gl-defines.h>
24
25 // INTERNAL INCLUDES
26 #include <dali/internal/adaptor/common/adaptor-impl.h>
27 #include <dali/internal/graphics/common/egl-image-extensions.h>
28 #include <dali/internal/graphics/gles/egl-graphics.h>
29
30 namespace Dali
31 {
32 namespace Internal
33 {
34 namespace Adaptor
35 {
36
37 NativeImageSourceQueueAndroid* NativeImageSourceQueueAndroid::New(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorDepth depth, Any nativeImageSourceQueue)
38 {
39   NativeImageSourceQueueAndroid* image = new NativeImageSourceQueueAndroid(width, height, depth, nativeImageSourceQueue);
40   return image;
41 }
42
43 NativeImageSourceQueueAndroid::NativeImageSourceQueueAndroid(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorDepth depth, Any nativeImageSourceQueue)
44 : mWidth(width),
45   mHeight(height)
46 {
47   DALI_LOG_ERROR("NativeImageSourceQueueAndroid::NativeImageSourceQueueAndroid: Not supported\n");
48 }
49
50 NativeImageSourceQueueAndroid::~NativeImageSourceQueueAndroid()
51 {
52 }
53
54 Any NativeImageSourceQueueAndroid::GetNativeImageSourceQueue() const
55 {
56   return Any();
57 }
58
59 void NativeImageSourceQueueAndroid::SetSize(uint32_t width, uint32_t height)
60 {
61   mWidth  = width;
62   mHeight = height;
63 }
64
65 void NativeImageSourceQueueAndroid::IgnoreSourceImage()
66 {
67 }
68
69 bool NativeImageSourceQueueAndroid::CreateResource()
70 {
71   return true;
72 }
73
74 void NativeImageSourceQueueAndroid::DestroyResource()
75 {
76 }
77
78 uint32_t NativeImageSourceQueueAndroid::TargetTexture()
79 {
80   return 0;
81 }
82
83 void NativeImageSourceQueueAndroid::PrepareTexture()
84 {
85 }
86
87 const char* NativeImageSourceQueueAndroid::GetCustomFragmentPrefix() const
88 {
89   return nullptr;
90 }
91
92 bool NativeImageSourceQueueAndroid::ApplyNativeFragmentShader(std::string& shader)
93 {
94   return false;
95 }
96
97 const char* NativeImageSourceQueueAndroid::GetCustomSamplerTypename() const
98 {
99   return nullptr;
100 }
101
102 int NativeImageSourceQueueAndroid::GetTextureTarget() const
103 {
104   return GL_TEXTURE_2D;
105 }
106
107 Any NativeImageSourceQueueAndroid::GetNativeImageHandle() const
108 {
109   return nullptr;
110 }
111
112 bool NativeImageSourceQueueAndroid::SourceChanged() const
113 {
114   return false;
115 }
116
117 } // namespace Adaptor
118
119 } // namespace Internal
120
121 } // namespace Dali