summaryrefslogtreecommitdiff
path: root/src/mbgl/map/raster_tile_data.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-04-22 13:47:51 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-05-04 17:33:04 +0200
commit5f496d8f0c235f99f795074d74381cdde264b570 (patch)
treebf13c5f6948615f215158f152183c7569a746efb /src/mbgl/map/raster_tile_data.cpp
parentc6be7086235cac73d745058b114941edf74f5d5c (diff)
downloadqtlocation-mapboxgl-5f496d8f0c235f99f795074d74381cdde264b570.tar.gz
build render order array once instead of recursing through lots of different objects
Diffstat (limited to 'src/mbgl/map/raster_tile_data.cpp')
-rw-r--r--src/mbgl/map/raster_tile_data.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mbgl/map/raster_tile_data.cpp b/src/mbgl/map/raster_tile_data.cpp
index 77ea8db89e..6ab480401a 100644
--- a/src/mbgl/map/raster_tile_data.cpp
+++ b/src/mbgl/map/raster_tile_data.cpp
@@ -23,10 +23,10 @@ void RasterTileData::parse() {
}
}
-void RasterTileData::render(Painter &painter, const StyleLayer &layer_desc, const mat4 &matrix) {
- bucket.render(painter, layer_desc, id, matrix);
-}
-
-bool RasterTileData::hasData(StyleLayer const& /*layer_desc*/) const {
- return bucket.hasData();
+Bucket* RasterTileData::getBucket(StyleLayer const&) {
+ if (bucket.hasData()) {
+ return &bucket;
+ } else {
+ return nullptr;
+ }
}