* [core] Bump gl-js version * [core] Implement image expression * [core] Use new image expression * [core] Coerce image expression to / from string * [core] Serialize evaluated image * [core] Pass available images to layout * [core] Pass images to evaluation context * [core] Set available flag value based on image availability * [core] Allow image coercion to boolean to indicate image availability * [core] Coalesce image expression * [core] Add image expression to next build system * [core] Align serialization format and evaluated type with gl-js * [core] Add images to expression evaluation method * [core] Add support for Image expression to expression test runner * [core] Unskip image expression tests * [core] Update unit tests * [core] Use image expression in annotation manager * [core] Add string to ImageExpression conversion * [core] Add image expression to expression dsl * [core] Convert tokens for implicitly created Image literal * [core] Fix clang format * [core] Split generated style code lines that are over 120 characters * [core] Add unit test for image expression equality * [core] Add image property expression evaluation unit test * [core] Unskip image expression render test * [core] Skip 'in' expression tests * [core] Ignore fill-pattern/update-feature-state render test * [core] Rename Image::serialize to Image::toValue
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <mbgl/renderer/image_atlas.hpp>
|
|
#include <mbgl/text/glyph_atlas.hpp>
|
|
#include <mbgl/tile/geometry_tile_data.hpp>
|
|
#include <memory>
|
|
|
|
namespace mbgl {
|
|
|
|
class Bucket;
|
|
class BucketParameters;
|
|
class RenderLayer;
|
|
class FeatureIndex;
|
|
class LayerRenderData;
|
|
|
|
class Layout {
|
|
public:
|
|
virtual ~Layout() = default;
|
|
|
|
virtual void createBucket(const ImagePositions&,
|
|
std::unique_ptr<FeatureIndex>&,
|
|
std::unordered_map<std::string, LayerRenderData>&,
|
|
const bool,
|
|
const bool) = 0;
|
|
|
|
virtual void prepareSymbols(const GlyphMap&, const GlyphPositions&,
|
|
const ImageMap&, const ImagePositions&) {};
|
|
|
|
virtual bool hasSymbolInstances() const {
|
|
return true;
|
|
};
|
|
|
|
virtual bool hasDependencies() const = 0;
|
|
};
|
|
|
|
class LayoutParameters {
|
|
public:
|
|
const BucketParameters& bucketParameters;
|
|
GlyphDependencies& glyphDependencies;
|
|
ImageDependencies& imageDependencies;
|
|
std::set<std::string>& availableImages;
|
|
};
|
|
|
|
} // namespace mbgl
|