[core] include what you use
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
namespace mbgl {
|
||||
namespace gl {
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <mbgl/gl/extension.hpp>
|
||||
#include <mbgl/gl/defines.hpp>
|
||||
#include <mbgl/platform/gl_functions.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace gl {
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
for (const auto& layer : layers) {
|
||||
const typename B::PossiblyEvaluatedPaintProperties evaluatedProps = static_cast<const PatternLayer*>(layer)->evaluated;
|
||||
const auto patternProperty = evaluatedProps.template get<typename PatternLayer::PatternProperty>();
|
||||
const auto constantPattern = patternProperty.constantOr(Faded<std::basic_string<char> >{ "", ""});
|
||||
const auto constantPattern = patternProperty.constantOr({ "", "" });
|
||||
// determine if layer group has any layers that use *-pattern property and add
|
||||
// constant pattern dependencies.
|
||||
if (!patternProperty.isConstant()) {
|
||||
|
||||
@@ -25,7 +25,7 @@ class UnwrappedTileID;
|
||||
|
||||
namespace gl {
|
||||
class Context;
|
||||
}
|
||||
} // namespace gl
|
||||
|
||||
class PaintParameters {
|
||||
public:
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
#include <mbgl/util/optional.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
template <class T>
|
||||
|
||||
@@ -10,9 +10,6 @@
|
||||
#include <mbgl/style/layer_impl.hpp>
|
||||
#include <mbgl/geometry/feature_index.hpp>
|
||||
#include <mbgl/renderer/bucket.hpp>
|
||||
#include <mbgl/renderer/buckets/fill_bucket.hpp>
|
||||
#include <mbgl/renderer/buckets/fill_extrusion_bucket.hpp>
|
||||
#include <mbgl/renderer/buckets/line_bucket.hpp>
|
||||
|
||||
#include <atomic>
|
||||
#include <memory>
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#include <mbgl/tile/tile_cache.hpp>
|
||||
#include <mbgl/tile/tile.hpp>
|
||||
|
||||
#include <cassert>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/tile/tile_id.hpp>
|
||||
#include <mbgl/tile/tile.hpp>
|
||||
|
||||
|
||||
#include <list>
|
||||
#include <memory>
|
||||
@@ -8,8 +10,6 @@
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
class Tile;
|
||||
|
||||
class TileCache {
|
||||
public:
|
||||
TileCache(size_t size_ = 0) : size(size_) {}
|
||||
|
||||
Reference in New Issue
Block a user