summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/fill_bucket.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-03-02 11:57:37 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-03-15 11:43:42 -0700
commitaf3898d980d43663d15884fa85d8fbb6339bfbdc (patch)
tree86a58575a5fc9b5d30e58bb504260f7f0f4f9667 /src/mbgl/renderer/fill_bucket.cpp
parentcee26ee3c82e39f7ad69612c046ecc0a85660ed0 (diff)
downloadqtlocation-mapboxgl-af3898d980d43663d15884fa85d8fbb6339bfbdc.tar.gz
[core] Avoid copy construction of PaintPropertyBinders
Diffstat (limited to 'src/mbgl/renderer/fill_bucket.cpp')
-rw-r--r--src/mbgl/renderer/fill_bucket.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mbgl/renderer/fill_bucket.cpp b/src/mbgl/renderer/fill_bucket.cpp
index 64efafb108..d566461673 100644
--- a/src/mbgl/renderer/fill_bucket.cpp
+++ b/src/mbgl/renderer/fill_bucket.cpp
@@ -29,8 +29,10 @@ struct GeometryTooLongException : std::exception {};
FillBucket::FillBucket(const BucketParameters& parameters, const std::vector<const Layer*>& layers) {
for (const auto& layer : layers) {
- paintPropertyBinders.emplace(layer->getID(),
- FillProgram::PaintPropertyBinders(
+ paintPropertyBinders.emplace(
+ std::piecewise_construct,
+ std::forward_as_tuple(layer->getID()),
+ std::forward_as_tuple(
layer->as<FillLayer>()->impl->paint.evaluated,
parameters.tileID.overscaledZ));
}