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

Renderer{Front,Back}end simplification #9612

Merged
merged 4 commits into from
Jul 26, 2017
Merged

Renderer{Front,Back}end simplification #9612

merged 4 commits into from
Jul 26, 2017

Conversation

jfirebaugh
Copy link
Contributor

@jfirebaugh jfirebaugh commented Jul 25, 2017

Another follow up on #9327 and #9541, this time focusing on RendererFrontend and RendererBackend:

  • Introduce HeadlessFrontend and make it the main coordinator for headless rendering. It replaces NodeRendererFrontend, AsyncRendererFrontend, and StubRendererFrontend. It contains a HeadlessBackend and Renderer, and OffscreenView is merged into HeadlessBackend. As a result, headless rendering clients only need to manage a single frontend object, instead of coordinating a frontend, a backend, a backend scope, a renderer, and a view.
  • Merge View into RendererBackend. This is a natural followup, since as a result of the previous change, all RendererBackend implementations also implemented View, and the one other implementation of View did not actually need to do so (OffscreenTexture, which doesn't need to be used polymorphically).

Copy link
Contributor

@ivovandongen ivovandongen left a comment

Choose a reason for hiding this comment

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

Very nice. Will make separating the backend from the native views also more easy where needed.

class Map;
class HeadlessFrontend;
} // namespace mbgl

namespace node_mbgl {

class NodeRendererFrontend;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could be removed too?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants