Revert "[Tizen] Add codes for Dali Windows Backend"
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / common / native-image-source-impl.cpp
1 /*
2  * Copyright (c) 2017 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 // INTERNAL INCLUDES
19 #include <dali/internal/imaging/common/native-image-source-impl.h>
20 #include <dali/internal/imaging/common/native-image-source-factory.h>
21
22 namespace Dali
23 {
24
25 namespace Internal
26 {
27
28 namespace Adaptor
29 {
30
31 NativeImageSource::~NativeImageSource() = default;
32
33 NativeImageSource* NativeImageSource::New(unsigned int width,
34                               unsigned int height,
35                               Dali::NativeImageSource::ColorDepth depth,
36                               Any nativeImageSource)
37 {
38   return Internal::Adaptor::NativeImageSourceFactory::New( width, height, depth, nativeImageSource ).release();
39 }
40
41
42 Any NativeImageSource::GetNativeImageSource() const
43 {
44   return nullptr;
45 }
46
47
48 bool NativeImageSource::GetPixels(std::vector<unsigned char> &pixbuf, unsigned int &width, unsigned int &height, Pixel::Format& pixelFormat ) const
49 {
50   return false;
51 }
52
53 bool NativeImageSource::EncodeToFile(const std::string& filename) const
54 {
55   return false;
56 }
57
58 void NativeImageSource::SetSource( Any source )
59 {
60
61 }
62
63 bool NativeImageSource::IsColorDepthSupported( Dali::NativeImageSource::ColorDepth colorDepth )
64 {
65   return false;
66 }
67
68 bool NativeImageSource::GlExtensionCreate()
69 {
70   return false;
71 }
72
73 void NativeImageSource::GlExtensionDestroy()
74 {
75
76 }
77
78 unsigned int NativeImageSource::TargetTexture()
79 {
80   return 0u;
81 }
82
83 void NativeImageSource::PrepareTexture()
84 {
85
86 }
87
88 unsigned int NativeImageSource::GetWidth() const
89 {
90   return 0u;
91 }
92
93 unsigned int NativeImageSource::GetHeight() const
94 {
95   return 0u;
96 }
97
98 bool NativeImageSource::RequiresBlending() const
99 {
100   return false;
101 }
102
103
104 NativeImageInterface::Extension* NativeImageSource::GetNativeImageInterfaceExtension()
105 {
106   return nullptr;
107 }
108
109 } // namespace Adaptor
110
111 } // namespace Internal
112
113 } // namespace Dali
114