Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregation Module: CPU Aggregation consolidation and integration with AttributeManager #3912

Closed
wants to merge 7 commits into from

Conversation

1chandu
Copy link
Contributor

@1chandu 1chandu commented Nov 21, 2019

For #3583

Background

  • Integrate CPUAggregation modules to consume position data from AttributeManager.
  • Add new CompositeLayer, AggregationLayer
  • Sets up and maintains all the aggregation state
  • Calls either CPU or GPU aggregation methods.
  • Consolidate all CPU Aggregation methods, we now use same set of utility methods for all CPU aggregations.
  • Removed all CPU Aggregation code from GPUGridAggregator
  • GPUGridLayer no longer supports CPU Aggregation, one should use CPUGridLayer.

Change List

  • CPUAggregation (Grid and Hexagon): use attributes for position
  • CPUAggregation consolidation.

@1chandu 1chandu marked this pull request as ready for review November 26, 2019 01:23
@coveralls
Copy link

coveralls commented Nov 26, 2019

Coverage Status

Coverage increased (+1.8%) to 83.535% when pulling 1434e14 on CPUAggregationRefactor into b73b81a on master.

@1chandu 1chandu changed the title [Draft] Aggregation Module: CPU Aggregation consolidation and integration with AttributeManager Aggregation Module: CPU Aggregation consolidation and integration with AttributeManager Nov 26, 2019
@@ -218,6 +189,21 @@ export default class ContourLayer extends GridAggregationLayer {
return strokeWidth;
}

_updateSubLayerTriggers(oldProps, props) {
if (oldProps && oldProps.contours && props && props.contours) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perf: first check if they are the same object

modules/aggregation-layers/src/utils/bin-sorter.js Outdated Show resolved Hide resolved
modules/aggregation-layers/src/grid-aggregation-layer.js Outdated Show resolved Hide resolved
modules/aggregation-layers/src/grid-aggregation-layer.js Outdated Show resolved Hide resolved

_updateAggregationFlags(opts) {
// Sublayers should implement this method.
log.assert(false)();
Copy link
Collaborator

Choose a reason for hiding this comment

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

assert doesn't return a function.

@1chandu
Copy link
Contributor Author

1chandu commented Dec 6, 2019

Resolved all comments in #3954, closing.

@1chandu 1chandu closed this Dec 6, 2019
@1chandu 1chandu deleted the CPUAggregationRefactor branch December 10, 2019 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants