Revert "License conversion from Flora to Apache 2.0"
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / test-native-image.h
1 #ifndef __TEST_NATIVE_IMAGE_H__
2 #define __TEST_NATIVE_IMAGE_H__
3
4 //
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
6 //
7 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 // INTERNAL INCLUDES
21 #include <dali/public-api/images/native-image.h>
22
23 namespace Dali
24 {
25 class TestNativeImage;
26 typedef IntrusivePtr<TestNativeImage> TestNativeImagePointer;
27
28 class DALI_IMPORT_API TestNativeImage : public Dali::NativeImage
29 {
30 public:
31   static TestNativeImagePointer New(int width, int height);
32
33   inline virtual bool GlExtensionCreate() {return true;};
34   inline virtual void GlExtensionDestroy() {};
35   inline virtual GLenum TargetTexture() {return 1;};
36   inline virtual void PrepareTexture() {};
37   inline virtual unsigned int GetWidth() const {return mWidth;};
38   inline virtual unsigned int GetHeight() const {return mHeight;};
39   inline virtual Pixel::Format GetPixelFormat() const {return Pixel::RGBA8888;};
40
41 private:
42   TestNativeImage(int width, int height);
43   virtual ~TestNativeImage();
44
45   int mWidth;
46   int mHeight;
47 };
48
49 } // Dali
50
51 #endif