Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[core] Add Renderer::clearData() instead of keepRenderData map options - #16323

Merged
pozdnyakov merged 4 commits into
masterfrom
mikhail_renderer_clear_data
Mar 20, 2020
Merged

pozdnyakov merged 4 commits into
masterfrom
mikhail_renderer_clear_data

Conversation

@pozdnyakov

@pozdnyakov pozdnyakov commented Mar 19, 2020 •

Copy link
Copy Markdown
Contributor

Renderer::clearData() is a better API than the removed MapOptions::keepRenderData():

  • gives more flexibility to the client
  • similar to the existing Renderer::reduceMemoryUse()
  • the MapOptions::keepRenderData() API implementation could not handle the race condition, which
    happened if the new still image request had come before all tiles from the previous requests were loaded.

Co-authored-by: Dane Springmeyer [email protected]

Fixes https://github.com/mapbox/mapbox-gl-native-team/issues/215

…options

`Renderer::clearData()` is a better API than the removed `MapOptions::keepRenderData()`:
- gives more flexibility to the client
- similar to the existing `Renderer::reduceMemoryUse()`
- the `MapOptions::keepRenderData()` API implementation could not handle the raise condition, which
happened if the new still image request had come before all tiles from the previous requests were loaded.

Co-authored-by: Dane Springmeyer <[email protected]>
@pozdnyakov pozdnyakov self-assigned this Mar 19, 2020
@pozdnyakov
pozdnyakov requested review from alexshalamov, springmeyer and tmpsantos and removed request for alexshalamov March 19, 2020 15:41
Comment thread CHANGELOG.md Resolved
"probeNetwork - default - end",
12,
340753
8,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious: why did these change with this PR? I would have though that this PR would not change any results and it would only fix a rare race (that I presume was not previously impacting the baselines).

Comment thread test/map/map.test.cpp Resolved
@springmeyer

Copy link
Copy Markdown
Contributor

Tested this fully downstream and everything is working well 👍

@pozdnyakov
pozdnyakov force-pushed the mikhail_renderer_clear_data branch from af8d4a1 to c08fcde Compare March 19, 2020 21:13
@pozdnyakov
pozdnyakov merged commit 8bf841a into master Mar 20, 2020
@pozdnyakov
pozdnyakov deleted the mikhail_renderer_clear_data branch March 20, 2020 09:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants