diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-05-13 17:13:31 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-05-15 10:55:58 -0700 |
commit | 867555b1c9ef51fec23ce77c682cf7d5b5a23c5e (patch) | |
tree | de380cbb7f5553282b081dce9202cbe9e502ebe5 /src/mbgl/tile/geometry_tile.cpp | |
parent | 1a9e93e8d5fc6fd027160b3126eab03d0809ca69 (diff) | |
download | qtlocation-mapboxgl-upstream/gfx-refactor-7.tar.gz |
[core] add gfx::UploadPass, split startRender into prepare and uploadupstream/gfx-refactor-7
Diffstat (limited to 'src/mbgl/tile/geometry_tile.cpp')
-rw-r--r-- | src/mbgl/tile/geometry_tile.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mbgl/tile/geometry_tile.cpp b/src/mbgl/tile/geometry_tile.cpp index 5469fa0e6f..46ab9e713b 100644 --- a/src/mbgl/tile/geometry_tile.cpp +++ b/src/mbgl/tile/geometry_tile.cpp @@ -176,10 +176,10 @@ const optional<ImagePosition> GeometryTile::getPattern(const std::string& patter return {}; } -void GeometryTile::upload(gfx::Context& context) { +void GeometryTile::upload(gfx::UploadPass& uploadPass) { auto uploadFn = [&] (Bucket& bucket) { if (bucket.needsUpload()) { - bucket.upload(context); + bucket.upload(uploadPass); } }; @@ -188,17 +188,17 @@ void GeometryTile::upload(gfx::Context& context) { } if (glyphAtlasImage) { - glyphAtlasTexture = context.createTexture(*glyphAtlasImage); + glyphAtlasTexture = uploadPass.createTexture(*glyphAtlasImage); glyphAtlasImage = {}; } if (iconAtlas.image.valid()) { - iconAtlasTexture = context.createTexture(iconAtlas.image); + iconAtlasTexture = uploadPass.createTexture(iconAtlas.image); iconAtlas.image = {}; } if (iconAtlasTexture) { - iconAtlas.patchUpdatedImages(context, *iconAtlasTexture, imageManager); + iconAtlas.patchUpdatedImages(uploadPass, *iconAtlasTexture, imageManager); } } |