From ed589833925f811c347f858c707825dfb62e2497 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Fri, 4 Feb 2022 23:33:41 +0100 Subject: [PATCH] Removed unused ad textures Signed-off-by: Alexander Borsuk --- data/resources-6plus_clear/symbols-ad.png | Bin 93 -> 0 bytes data/resources-6plus_clear/symbols-ad.sdf | 6 ------ data/resources-6plus_dark/symbols-ad.png | Bin 93 -> 0 bytes data/resources-6plus_dark/symbols-ad.sdf | 6 ------ data/resources-hdpi_clear/symbols-ad.png | Bin 93 -> 0 bytes data/resources-hdpi_clear/symbols-ad.sdf | 7 ------- data/resources-hdpi_dark/symbols-ad.png | Bin 93 -> 0 bytes data/resources-hdpi_dark/symbols-ad.sdf | 7 ------- data/resources-mdpi_clear/symbols-ad.png | Bin 93 -> 0 bytes data/resources-mdpi_clear/symbols-ad.sdf | 7 ------- data/resources-mdpi_dark/symbols-ad.png | Bin 93 -> 0 bytes data/resources-mdpi_dark/symbols-ad.sdf | 7 ------- data/resources-xhdpi_clear/symbols-ad.png | Bin 93 -> 0 bytes data/resources-xhdpi_clear/symbols-ad.sdf | 7 ------- data/resources-xhdpi_dark/symbols-ad.png | Bin 93 -> 0 bytes data/resources-xhdpi_dark/symbols-ad.sdf | 7 ------- data/resources-xxhdpi_clear/symbols-ad.png | Bin 93 -> 0 bytes data/resources-xxhdpi_clear/symbols-ad.sdf | 7 ------- data/resources-xxhdpi_dark/symbols-ad.png | Bin 93 -> 0 bytes data/resources-xxhdpi_dark/symbols-ad.sdf | 7 ------- data/resources-xxxhdpi_clear/symbols-ad.png | Bin 93 -> 0 bytes data/resources-xxxhdpi_clear/symbols-ad.sdf | 7 ------- data/resources-xxxhdpi_dark/symbols-ad.png | Bin 93 -> 0 bytes data/resources-xxxhdpi_dark/symbols-ad.sdf | 7 ------- drape/texture_manager.cpp | 11 +++++------ tools/unix/generate_symbols.sh | 16 +--------------- 26 files changed, 6 insertions(+), 103 deletions(-) delete mode 100644 data/resources-6plus_clear/symbols-ad.png delete mode 100644 data/resources-6plus_clear/symbols-ad.sdf delete mode 100644 data/resources-6plus_dark/symbols-ad.png delete mode 100644 data/resources-6plus_dark/symbols-ad.sdf delete mode 100644 data/resources-hdpi_clear/symbols-ad.png delete mode 100644 data/resources-hdpi_clear/symbols-ad.sdf delete mode 100644 data/resources-hdpi_dark/symbols-ad.png delete mode 100644 data/resources-hdpi_dark/symbols-ad.sdf delete mode 100644 data/resources-mdpi_clear/symbols-ad.png delete mode 100644 data/resources-mdpi_clear/symbols-ad.sdf delete mode 100644 data/resources-mdpi_dark/symbols-ad.png delete mode 100644 data/resources-mdpi_dark/symbols-ad.sdf delete mode 100644 data/resources-xhdpi_clear/symbols-ad.png delete mode 100644 data/resources-xhdpi_clear/symbols-ad.sdf delete mode 100644 data/resources-xhdpi_dark/symbols-ad.png delete mode 100644 data/resources-xhdpi_dark/symbols-ad.sdf delete mode 100644 data/resources-xxhdpi_clear/symbols-ad.png delete mode 100644 data/resources-xxhdpi_clear/symbols-ad.sdf delete mode 100644 data/resources-xxhdpi_dark/symbols-ad.png delete mode 100644 data/resources-xxhdpi_dark/symbols-ad.sdf delete mode 100644 data/resources-xxxhdpi_clear/symbols-ad.png delete mode 100644 data/resources-xxxhdpi_clear/symbols-ad.sdf delete mode 100644 data/resources-xxxhdpi_dark/symbols-ad.png delete mode 100644 data/resources-xxxhdpi_dark/symbols-ad.sdf diff --git a/data/resources-6plus_clear/symbols-ad.png b/data/resources-6plus_clear/symbols-ad.png deleted file mode 100644 index 44e59ecf0454a7aebca9379890eb920736fc598d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqoCO|{#S9GG!XV7ZFl&wkP>|o# k#W6%;YI1@ED-RGbFmf<3);cad2b5y)boFyt=akR{0G{j+O8@`> diff --git a/data/resources-6plus_clear/symbols-ad.sdf b/data/resources-6plus_clear/symbols-ad.sdf deleted file mode 100644 index 7be7f97c06..0000000000 --- a/data/resources-6plus_clear/symbols-ad.sdf +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/data/resources-6plus_dark/symbols-ad.png b/data/resources-6plus_dark/symbols-ad.png deleted file mode 100644 index 44e59ecf0454a7aebca9379890eb920736fc598d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqoCO|{#S9GG!XV7ZFl&wkP>|o# k#W6%;YI1@ED-RGbFmf<3);cad2b5y)boFyt=akR{0G{j+O8@`> diff --git a/data/resources-6plus_dark/symbols-ad.sdf b/data/resources-6plus_dark/symbols-ad.sdf deleted file mode 100644 index 7be7f97c06..0000000000 --- a/data/resources-6plus_dark/symbols-ad.sdf +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/data/resources-hdpi_clear/symbols-ad.png b/data/resources-hdpi_clear/symbols-ad.png deleted file mode 100644 index 83d08c30c2501965c584c6197e109d28c4972a41..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQk(@Ik;M!Q+`=Ht$S`Y;1W=IQ m)5S4FV`6fG1nc64Mn(oE4hF^xnu+UxQVgE1elF{r5}E+qTM`Ta diff --git a/data/resources-hdpi_clear/symbols-ad.sdf b/data/resources-hdpi_clear/symbols-ad.sdf deleted file mode 100644 index c9cc7b2209..0000000000 --- a/data/resources-hdpi_clear/symbols-ad.sdf +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/data/resources-hdpi_dark/symbols-ad.png b/data/resources-hdpi_dark/symbols-ad.png deleted file mode 100644 index 83d08c30c2501965c584c6197e109d28c4972a41..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQk(@Ik;M!Q+`=Ht$S`Y;1W=IQ m)5S4FV`6fG1nc64Mn(oE4hF^xnu+UxQVgE1elF{r5}E+qTM`Ta diff --git a/data/resources-hdpi_dark/symbols-ad.sdf b/data/resources-hdpi_dark/symbols-ad.sdf deleted file mode 100644 index c9cc7b2209..0000000000 --- a/data/resources-hdpi_dark/symbols-ad.sdf +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/data/resources-mdpi_clear/symbols-ad.png b/data/resources-mdpi_clear/symbols-ad.png deleted file mode 100644 index 83d08c30c2501965c584c6197e109d28c4972a41..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQk(@Ik;M!Q+`=Ht$S`Y;1W=IQ m)5S4FV`6fG1nc64Mn(oE4hF^xnu+UxQVgE1elF{r5}E+qTM`Ta diff --git a/data/resources-mdpi_clear/symbols-ad.sdf b/data/resources-mdpi_clear/symbols-ad.sdf deleted file mode 100644 index c9cc7b2209..0000000000 --- a/data/resources-mdpi_clear/symbols-ad.sdf +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/data/resources-mdpi_dark/symbols-ad.png b/data/resources-mdpi_dark/symbols-ad.png deleted file mode 100644 index 83d08c30c2501965c584c6197e109d28c4972a41..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQk(@Ik;M!Q+`=Ht$S`Y;1W=IQ m)5S4FV`6fG1nc64Mn(oE4hF^xnu+UxQVgE1elF{r5}E+qTM`Ta diff --git a/data/resources-mdpi_dark/symbols-ad.sdf b/data/resources-mdpi_dark/symbols-ad.sdf deleted file mode 100644 index c9cc7b2209..0000000000 --- a/data/resources-mdpi_dark/symbols-ad.sdf +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/data/resources-xhdpi_clear/symbols-ad.png b/data/resources-xhdpi_clear/symbols-ad.png deleted file mode 100644 index 83d08c30c2501965c584c6197e109d28c4972a41..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQk(@Ik;M!Q+`=Ht$S`Y;1W=IQ m)5S4FV`6fG1nc64Mn(oE4hF^xnu+UxQVgE1elF{r5}E+qTM`Ta diff --git a/data/resources-xhdpi_clear/symbols-ad.sdf b/data/resources-xhdpi_clear/symbols-ad.sdf deleted file mode 100644 index 1d241c9a1a..0000000000 --- a/data/resources-xhdpi_clear/symbols-ad.sdf +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/data/resources-xhdpi_dark/symbols-ad.png b/data/resources-xhdpi_dark/symbols-ad.png deleted file mode 100644 index 83d08c30c2501965c584c6197e109d28c4972a41..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQk(@Ik;M!Q+`=Ht$S`Y;1W=IQ m)5S4FV`6fG1nc64Mn(oE4hF^xnu+UxQVgE1elF{r5}E+qTM`Ta diff --git a/data/resources-xhdpi_dark/symbols-ad.sdf b/data/resources-xhdpi_dark/symbols-ad.sdf deleted file mode 100644 index 1d241c9a1a..0000000000 --- a/data/resources-xhdpi_dark/symbols-ad.sdf +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/data/resources-xxhdpi_clear/symbols-ad.png b/data/resources-xxhdpi_clear/symbols-ad.png deleted file mode 100644 index 83d08c30c2501965c584c6197e109d28c4972a41..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQk(@Ik;M!Q+`=Ht$S`Y;1W=IQ m)5S4FV`6fG1nc64Mn(oE4hF^xnu+UxQVgE1elF{r5}E+qTM`Ta diff --git a/data/resources-xxhdpi_clear/symbols-ad.sdf b/data/resources-xxhdpi_clear/symbols-ad.sdf deleted file mode 100644 index 8b85321d1c..0000000000 --- a/data/resources-xxhdpi_clear/symbols-ad.sdf +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/data/resources-xxhdpi_dark/symbols-ad.png b/data/resources-xxhdpi_dark/symbols-ad.png deleted file mode 100644 index 83d08c30c2501965c584c6197e109d28c4972a41..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQk(@Ik;M!Q+`=Ht$S`Y;1W=IQ m)5S4FV`6fG1nc64Mn(oE4hF^xnu+UxQVgE1elF{r5}E+qTM`Ta diff --git a/data/resources-xxhdpi_dark/symbols-ad.sdf b/data/resources-xxhdpi_dark/symbols-ad.sdf deleted file mode 100644 index 8b85321d1c..0000000000 --- a/data/resources-xxhdpi_dark/symbols-ad.sdf +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/data/resources-xxxhdpi_clear/symbols-ad.png b/data/resources-xxxhdpi_clear/symbols-ad.png deleted file mode 100644 index 83d08c30c2501965c584c6197e109d28c4972a41..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQk(@Ik;M!Q+`=Ht$S`Y;1W=IQ m)5S4FV`6fG1nc64Mn(oE4hF^xnu+UxQVgE1elF{r5}E+qTM`Ta diff --git a/data/resources-xxxhdpi_clear/symbols-ad.sdf b/data/resources-xxxhdpi_clear/symbols-ad.sdf deleted file mode 100644 index 8b85321d1c..0000000000 --- a/data/resources-xxxhdpi_clear/symbols-ad.sdf +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/data/resources-xxxhdpi_dark/symbols-ad.png b/data/resources-xxxhdpi_dark/symbols-ad.png deleted file mode 100644 index 83d08c30c2501965c584c6197e109d28c4972a41..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 93 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~c!3HEhl+{lMQk(@Ik;M!Q+`=Ht$S`Y;1W=IQ m)5S4FV`6fG1nc64Mn(oE4hF^xnu+UxQVgE1elF{r5}E+qTM`Ta diff --git a/data/resources-xxxhdpi_dark/symbols-ad.sdf b/data/resources-xxxhdpi_dark/symbols-ad.sdf deleted file mode 100644 index 8b85321d1c..0000000000 --- a/data/resources-xxxhdpi_dark/symbols-ad.sdf +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/drape/texture_manager.cpp b/drape/texture_manager.cpp index 1ff9b8efca..a59efd7354 100644 --- a/drape/texture_manager.cpp +++ b/drape/texture_manager.cpp @@ -41,8 +41,7 @@ size_t const kReservedColors = 20; float const kGlyphAreaMultiplier = 1.2f; float const kGlyphAreaCoverage = 0.9f; -std::string const kDefaultSymbolsTexture = "symbols"; -std::string const kSymbolTextures[] = { kDefaultSymbolsTexture, "symbols-ad" }; +std::string const kSymbolTextures[] = { "symbols" }; uint32_t const kDefaultSymbolsIndex = 0; namespace @@ -253,7 +252,7 @@ void TextureManager::Release() m_glyphManager.reset(); m_glyphGenerator->FinishGeneration(); - + m_isInitialized = false; m_nothingToUpload.test_and_set(); } @@ -276,7 +275,7 @@ bool TextureManager::UpdateDynamicTextures(ref_ptr context) CHECK(false, ("Unsupported API version.")); } - + CHECK(m_isInitialized, ()); m_uploadTimer.Reset(); @@ -427,7 +426,7 @@ size_t TextureManager::FindHybridGlyphsGroup(TMultilineText const & text, int fi void TextureManager::Init(ref_ptr context, Params const & params) { CHECK(!m_isInitialized, ()); - + m_resPostfix = params.m_resPostfix; m_textureAllocator = CreateAllocator(context); @@ -505,7 +504,7 @@ void TextureManager::Init(ref_ptr context, Params const & p void TextureManager::OnSwitchMapStyle(ref_ptr context) { CHECK(m_isInitialized, ()); - + // Here we need invalidate only textures which can be changed in map style switch. // Now we update only symbol textures, if we need update other textures they must be added here. // For Vulkan we use m_texturesToCleanup to defer textures destroying. diff --git a/tools/unix/generate_symbols.sh b/tools/unix/generate_symbols.sh index d5af57f2dc..aca799e944 100755 --- a/tools/unix/generate_symbols.sh +++ b/tools/unix/generate_symbols.sh @@ -45,7 +45,7 @@ fi # Parameter $3 - resource name (mdpi, hdpi, ...) # Parameter $4 - symbol size # Parameter $5 - style suffix (none, _dark, _clear) -# Parameter $6 - symbols folder (symbols, symbols-ad) +# Parameter $6 - symbols folder (symbols) # Parameter $7 - symbols suffix (none, -ad) function BuildSkin() { styleType=$1 @@ -93,20 +93,6 @@ BuildSkin clear clear xxhdpi 54 _clear symbols BuildSkin clear clear 6plus 54 _clear symbols BuildSkin clear clear xxxhdpi 64 _clear symbols -BuildSkin clear night mdpi 22 _dark symbols-ad -ad -BuildSkin clear night hdpi 34 _dark symbols-ad -ad -BuildSkin clear night xhdpi 44 _dark symbols-ad -ad -BuildSkin clear night xxhdpi 68 _dark symbols-ad -ad -BuildSkin clear night 6plus 68 _dark symbols-ad -ad -BuildSkin clear night xxxhdpi 78 _dark symbols-ad -ad - -BuildSkin clear clear mdpi 22 _clear symbols-ad -ad -BuildSkin clear clear hdpi 34 _clear symbols-ad -ad -BuildSkin clear clear xhdpi 44 _clear symbols-ad -ad -BuildSkin clear clear xxhdpi 68 _clear symbols-ad -ad -BuildSkin clear clear 6plus 68 _clear symbols-ad -ad -BuildSkin clear clear xxxhdpi 78 _clear symbols-ad -ad - rm -rf "$OMIM_PATH"/data/resources-{*} rm -rf "$OMIM_PATH"/data/resources-*_design