X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Fubuntu-x11%2Fnative-image-source-impl-x.h;h=c9059124ab1f9bc207336b9a6259721f93f2e8e7;hb=1d0d7873858fd2010b71e5db8f03654fb307370f;hp=fb8ae29ab0b98357efb9227036043d15847a7a65;hpb=975b4ed1924f500b0064dd4c05cabb94af5bad08;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/imaging/ubuntu-x11/native-image-source-impl-x.h b/dali/internal/imaging/ubuntu-x11/native-image-source-impl-x.h index fb8ae29..c905912 100755 --- a/dali/internal/imaging/ubuntu-x11/native-image-source-impl-x.h +++ b/dali/internal/imaging/ubuntu-x11/native-image-source-impl-x.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_NATIVE_IMAGE_SOURCE_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -69,11 +69,6 @@ public: bool GetPixels(std::vector &pixbuf, uint32_t &width, uint32_t &height, Pixel::Format& pixelFormat ) const override; /** - * @copydoc Dali::NativeImageSource::EncodeToFile(const std::string& ) - */ - bool EncodeToFile(const std::string& filename) const override; - - /** * @copydoc Dali::NativeImageSource::SetSource( Any source ) */ void SetSource( Any source ) override; @@ -89,14 +84,14 @@ public: ~NativeImageSourceX() override; /** - * @copydoc Dali::NativeImageSource::GlExtensionCreate() + * @copydoc Dali::NativeImageSource::CreateResource() */ - bool GlExtensionCreate() override; + bool CreateResource() override; /** - * @copydoc Dali::NativeImageSource::GlExtensionDestroy() + * @copydoc Dali::NativeImageSource::DestroyResource() */ - void GlExtensionDestroy() override; + void DestroyResource() override; /** * @copydoc Dali::NativeImageSource::TargetTexture() @@ -133,6 +128,32 @@ public: } /** + * @copydoc Dali::NativeImageSource::GetTextureTarget() + */ + int GetTextureTarget() const override; + + /** + * @copydoc Dali::NativeImageSource::GetCustomFragmentPrefix() + */ + const char* GetCustomFragmentPrefix() const override; + + /** + * @copydoc Dali::NativeImageSource::GetCustomSamplerTypename() + */ + const char* GetCustomSamplerTypename() const override; + + /** + * @copydoc Dali::NativeImageSource::GetNativeImageHandle() + */ + Any GetNativeImageHandle() const override; + + /** + * @copydoc Dali::NativeImageSource::SourceChanged() + */ + bool SourceChanged() const override; + + + /** * @copydoc Dali::NativeImageInterface::GetExtension() */ NativeImageInterface::Extension* GetNativeImageInterfaceExtension() override @@ -140,6 +161,16 @@ public: return nullptr; } + /** + * @copydoc Dali::Internal::Adaptor::NativeImageSource::AcquireBuffer() + */ + uint8_t* AcquireBuffer( uint16_t& width, uint16_t& height, uint16_t& stride ) override; + + /** + * @copydoc Dali::Internal::Adaptor::NativeImageSource::ReleaseBuffer() + */ + bool ReleaseBuffer() override; + private: /**