From 4062833c49c044e38a26360c89c2a93defde5d75 Mon Sep 17 00:00:00 2001 From: Adeel Kazmi Date: Tue, 16 Jun 2020 15:29:22 +0100 Subject: [PATCH] Remove NativeImage Usage Change-Id: I6aaba9d2d3654063d0a0fd57400c08dbf610d242 --- .../src/dali-toolkit/dali-toolkit-test-utils/toolkit-web-engine.cpp | 3 +-- dali-toolkit/internal/controls/video-view/video-view-impl.h | 3 +-- dali-toolkit/internal/controls/web-view/web-view-impl.cpp | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-web-engine.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-web-engine.cpp index 5316331..5840711 100755 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-web-engine.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-web-engine.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 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. @@ -21,7 +21,6 @@ #include #include #include -#include #include namespace Dali diff --git a/dali-toolkit/internal/controls/video-view/video-view-impl.h b/dali-toolkit/internal/controls/video-view/video-view-impl.h index 3d345a3..200ab10 100755 --- a/dali-toolkit/internal/controls/video-view/video-view-impl.h +++ b/dali-toolkit/internal/controls/video-view/video-view-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_VIDEO_VIEW_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. @@ -20,7 +20,6 @@ // EXTERNAL INCLUDES #include -#include #include #include #include diff --git a/dali-toolkit/internal/controls/web-view/web-view-impl.cpp b/dali-toolkit/internal/controls/web-view/web-view-impl.cpp index 42139f8..90f5659 100644 --- a/dali-toolkit/internal/controls/web-view/web-view-impl.cpp +++ b/dali-toolkit/internal/controls/web-view/web-view-impl.cpp @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -154,7 +153,7 @@ void WebView::LoadUrl( const std::string& url ) if( mWebEngine ) { Texture texture = Dali::Texture::New( *mWebEngine.GetNativeImageSource() ); - const std::string nativeImageUrl = Dali::Toolkit::TextureManager::AddTexture( texture ); + const std::string nativeImageUrl = Dali::Toolkit::TextureManager::AddTexture( texture ); mVisual = Toolkit::VisualFactory::Get().CreateVisual( { { Toolkit::Visual::Property::TYPE, Toolkit::Visual::IMAGE } , { Toolkit::ImageVisual::Property::URL, nativeImageUrl } } ); @@ -174,7 +173,6 @@ void WebView::LoadHTMLString( const std::string& htmlString ) { Texture texture = Dali::Texture::New( *mWebEngine.GetNativeImageSource() ); const std::string nativeImageUrl = Dali::Toolkit::TextureManager::AddTexture( texture ); - mVisual = Toolkit::VisualFactory::Get().CreateVisual( { { Toolkit::Visual::Property::TYPE, Toolkit::Visual::IMAGE } , { Toolkit::ImageVisual::Property::URL, nativeImageUrl } } ); -- 2.7.4