Commit graph

1696 commits

Author SHA1 Message Date
Alexander Borsuk
56a1fc3534 Removed watermark
Signed-off-by: Alexander Borsuk <me@alex.bio>
2021-04-22 08:11:07 +03:00
Alexander Borsuk
2fcd601b88 [core][ios] Cleaned up Booking, guides, ugc, taxi
Signed-off-by: Alexander Borsuk <me@alex.bio>
2021-04-22 08:11:07 +03:00
8d3e65ed4f std::vector -> std::array for constant
`std::vector` is not very well suited for static, constant arrays.
Since creating it from a list requires memory allocation,
modern C++ compilers miss out on many optimizations.
In particular, compilers are forced to insert a call to a global
atomic variable and a bunch of code for initialization at the place of
its use. Plus access to heap memory cause cache misses
For example for this function:
bool f(const int *arr, int x)
{
    static std::vector<Foo> const values = {A, B, C};

    for (auto v : values) {
        if (arr[static_cast<size_t>(v)] == x)
            return true;
    }
    return false;
}

compiler generates ~60 instructions (gcc 10.2 -O3 -march=native),
if replace `std::vector` with `std::array` the result code contains only 9 instructions.

Signed-off-by: Evgeniy A. Dushistov <dushistov@mail.ru>
2021-04-15 05:50:48 +02:00
Alexander Borsuk
5400ec553a Removed local ads
Signed-off-by: Alexander Borsuk <me@alex.bio>
2021-03-27 12:18:17 +01:00
Alexander Borsuk
aeb261db66 [drape] Clazy fixes
Signed-off-by: Alexander Borsuk <me@alex.bio>
2021-03-19 10:10:50 +03:00
Alexander Borsuk
2edb5d9d24 [3party][glm] Reverted glm submodule to the last working commit
Also removed unnecessary config and disabled overkill swizzling.

Signed-off-by: Alexander Borsuk <me@alex.bio>
2021-03-19 10:10:50 +03:00
Alexander Borsuk
1a0e062cf2 [core][ios] Removed statistics and Alohalytics submodule
Signed-off-by: Alexander Borsuk <me@alex.bio>
2021-03-14 10:49:56 +03:00
Alexander Borsuk
91ac667662 C++ warning fixes 2021-03-13 09:49:40 +03:00
vng
bcb9d030be [drape] Removed watermark.
Signed-off-by: vng <viktor.govako@gmail.com>
2021-02-06 21:42:46 +03:00
Olga Khlopkova
1ac8d3d8f1 [drape_frontend] Handle corner case in new subway map rendering. 2020-12-22 16:14:20 +05:00
Anatoliy Tomilov
3685ce8617 [drape] [tracks] Allow to render tracks for 20 zoomLevel MAPSME-12900 2020-10-21 17:29:58 +03:00
Anatoliy Tomilov
afc2916da1 [drape] Fix infinite zoom in MAPSME-14796
git diff eb7c804883 eb7c804883~ | git apply
2020-10-21 17:29:58 +03:00
Olga Khlopkova
a47c82a04b [drape_frontend] Fix rendering of 'cross-mwm' stops and transfers. 2020-10-16 20:14:51 +05:00
tatiana-yan
552eaee077 [indexer] Lazy metadata read. 2020-10-06 10:05:31 +03:00
Arsentiy Milchakov
aff1bfc9ec [drape][android] linking fix 2020-09-25 18:15:21 +05:00
Olga Khlopkova
4537400eca [transit] Changed eps val for transfers. 2020-09-24 14:41:54 +05:00
Olga Khlopkova
81328f611b refactoring of UpdateShapeInfos 2020-09-24 14:41:54 +05:00
Olga Khlopkova
058f1b476d [drape_frontend] New transit version in transit scheme renderer. 2020-09-24 14:41:54 +05:00
Anatoliy Tomilov
817ff40566 [drape] [Booking] Fixes to meet the review comments MAPSME-14544 2020-09-16 16:08:14 +03:00
Anatoliy Tomilov
4819f39d70 [fdrape] [Booking] Make Symbol, ColoredSymbol, PoiSymbol, Text of UserPointMark sensitive to tap MAPSME-14544 2020-09-16 16:08:14 +03:00
Anatoliy Tomilov
58f7713a5b [drape] [iOS] Changes to catch a source of crash at dp::CPUBuffer::UploadData MAPSME-12898 2020-09-14 13:36:46 +03:00
Anatoliy Tomilov
a8d79afbe0 [drape] [Booking] Correct calculations of text metrics for badge width adjustment MAPSME-14628 2020-09-14 13:36:46 +03:00
Anatoliy Tomilov
0e70e20547 [guides on map] Do not filter POI when guides layer is enabled
Partial rollback of pr #13159 MAPSME-13676.

git diff 4845556cedf9bb5f73e921a9f351eb795ec4c079..2db195f663aacb83e7f10018d885dfb5c4d542f0~ -- {drape_frontend/rule_drawer,indexer/ftypes_matcher}.{c,h}pp | git apply
2020-09-02 14:51:31 +03:00
Olga Khlopkova
85881616aa [drape_frontend] Remove unused header in transit scheme rendered. 2020-08-25 12:44:59 +05:00
Anatoliy Tomilov
ae69fde178 [drape] [Booking] Introduce special visual representation for unavailable Booking hotels MAPSME-14325
- Add selection option to Booking search marks
 - Add forceNoWrap option to StraitTextLayout
 - Track "unavailable" status for search marks
 - Make special handling for selection of Booking search marks via
   special badges having strokes
 - Track "selected" status for search marks
 - Handle "preparing" status for Booking search marks
 - Remove extra colors from Booking search marks color scheme
 - Refactor SearchMarkPoint
2020-08-14 10:57:03 +03:00
Olga Khlopkova
e30bd6837a [iOS] Temporary stub for compiling convertType(TransitType type) with new version of transit. 2020-08-10 14:35:50 +03:00
Olga Khlopkova
5cb9335efe [transit] Transit display info with versions. 2020-08-10 14:35:50 +03:00
Anatoliy Tomilov
b6cf7ee414 [drape] [Booking] Make visited Booking searchmarks ethereal MAPSME-14324 2020-08-05 12:32:22 +03:00
Anatoliy Tomilov
adf253e2a4 [drape] crash fix MAPSME-14487 2020-08-03 19:08:51 +03:00
Anatoliy Tomilov
e7aa4e0c0b [drape] [booking] Add special badge (so called "chip") expanding for price text near the hotel's rating symbol MAPSME-14322 2020-07-31 11:26:23 +03:00
Anatoliy Tomilov
eb7c804883 [drape] Set upper limit for current zoom level calculated for requested tiles 2020-07-30 12:31:30 +03:00
Daria Volvenkova
d69dda0f55 [guides on map] Fixed showing a bookmark category after downloading via guides gallery. 2020-07-02 17:53:53 +03:00
Daria Volvenkova
187309e135 [guides on map] Review fixes. 2020-07-02 17:53:53 +03:00
Daria Volvenkova
9d7ebe6f67 [guides on map][drape] Increase touch area for guides marks. 2020-07-02 17:53:53 +03:00
Daria Volvenkova
44c6371783 [guides on map][drape] Move guides cluster to the viewport center in parallel with zooming in. 2020-07-02 17:53:53 +03:00
Daria Volvenkova
8b0dd7d48c [guides on map][drape] Guides marks without shadows. 2020-07-02 17:53:53 +03:00
Arsentiy Milchakov
221f7e98b0 [drape] don't drag a user to his current position after acquiring coordinates (cold and hot start) within 8 hours after a user puts the app to background 2020-07-02 17:53:53 +03:00
Arsentiy Milchakov
b6bc56dbd9 [drape] don't drag a user to his current position after acquiring coordinates (cold and hot start) within 8 hours after a user puts the app to background 2020-07-02 17:53:53 +03:00
Daria Volvenkova
9b8991dd10 [guides on map] Review fix. 2020-07-02 17:53:53 +03:00
Daria Volvenkova
edf780daa7 [guides on map] Disabled icons displacement. 2020-07-02 17:53:53 +03:00
Anatoliy Tomilov
9f2c80111c [drape] Improve conditions to mark RenderGroups as CanBeDeleted MAPSME-13276 2020-06-22 16:31:57 +03:00
Anatoliy Tomilov
d3f1f4ab14 [drape] [android] [vulkan] fix ABA-problem-like bug MAPSME-13706 2020-06-05 14:16:12 +03:00
Daria Volvenkova
701a91ed42 [guides on map] Review fixes. 2020-05-29 16:52:25 +05:00
Daria Volvenkova
2db195f663 [guides on map] Filter POI when guides layer is enabled 2020-05-29 16:52:25 +05:00
Olga Khlopkova
3bda74035e [transit] GTFS producer with unit tests. 2020-05-25 20:58:18 +03:00
Olga Khlopkova
7ffaa83356 [drape_frontend] Get-method for clear color constants. 2020-05-25 20:58:18 +03:00
Anatoliy Tomilov
da7a39e0b8 [vulkan] rearrange locations of attributes for outlined gui text MAPSME-13322 2020-05-14 19:39:17 +03:00
Olga Khlopkova
5a6e6cc241 renamed timer 2020-05-08 18:39:26 +03:00
Olga Khlopkova
6ff1389127 clang-format 2020-05-08 18:39:26 +03:00
Olga Khlopkova
db13487c8f [drape_frontend] Switch between GPS and compass bearing. 2020-05-08 18:39:26 +03:00