Drawable CI Fixes (#1319)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
mwilsnd
2023-07-11 09:29:40 -05:00
committed by Bart Louwers
parent 3f42e59ad5
commit a288b1ffad
5 changed files with 12 additions and 12 deletions

View File

@@ -11,8 +11,8 @@ option(MLN_WITH_OPENGL "Build with OpenGL renderer" ON)
option(MLN_WITH_EGL "Build with EGL renderer" OFF)
option(MLN_WITH_OSMESA "Build with OSMesa (Software) renderer" OFF)
option(MLN_WITH_WERROR "Make all compilation warnings errors" ON)
option(MLN_LEGACY_RENDERER "Include the legacy rendering pathway" OFF)
option(MLN_DRAWABLE_RENDERER "Include the drawable rendering pathway" ON)
option(MLN_LEGACY_RENDERER "Include the legacy rendering pathway" ON)
option(MLN_DRAWABLE_RENDERER "Include the drawable rendering pathway" OFF)
option(MLN_RENDERER_SPLIT_VIEW "Enable a split view if both renderers are enabled" ON)
option(MLN_RENDERER_QUAD_SPLIT_VIEW "When using split view, split opaque and translucent passes as well" OFF)
@@ -26,7 +26,7 @@ if (MLN_WITH_CLANG_TIDY)
# TODO: there are options which are only available on GCC(e.g. -Werror=maybe-uninitialized),
# that's why we need to disable this `unknown-warning-option` here.
# We could check if current compiler supports particular flag before enabling it.
set(CLANG_TIDY_COMMAND "${CLANG_TIDY_COMMAND};--extra-arg=-Wno-error=unknown-warning-option;--extra-arg=-Wno-error=pragmas")
set(CLANG_TIDY_COMMAND "${CLANG_TIDY_COMMAND};--extra-arg=-Wno-unknown-warning-option;--extra-arg=-Wno-pragmas")
endif()
if (MLN_WITH_QT AND NOT CMAKE_OSX_DEPLOYMENT_TARGET)
@@ -88,6 +88,8 @@ target_compile_options(
$<$<CXX_COMPILER_ID:GNU>:-Wno-error=maybe-uninitialized>
$<$<CXX_COMPILER_ID:GNU>:-Wno-error=return-type>
$<$<CXX_COMPILER_ID:GNU>:-Wno-error=unknown-pragmas>
$<$<CXX_COMPILER_ID:GNU>:-Wno-error=pragmas>
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-unknown-warning-option>
$<$<AND:$<CXX_COMPILER_ID:AppleClang>,$<NOT:$<BOOL:${MLN_WITH_QT}>>>:-Wno-error=deprecated-declarations>
$<$<AND:$<CXX_COMPILER_ID:AppleClang>,$<NOT:$<BOOL:${MLN_WITH_QT}>>>:-Wno-error=unused-parameter>
$<$<AND:$<CXX_COMPILER_ID:AppleClang>,$<NOT:$<BOOL:${MLN_WITH_QT}>>>:-Wno-error=unused-property-ivar>

View File

@@ -12,8 +12,6 @@ protected:
explicit RenderableResource() = default;
public:
virtual void bind() = 0;
virtual void swap() {
// Renderable resources that require a swap function to be called
// explicitly can override this method.

View File

@@ -10,7 +10,7 @@
#include <mbgl/actor/scheduler.hpp>
#include <mbgl/annotation/annotation.hpp>
#include <mbgl/gl/custom_layer.hpp>
#include <mbgl/style/layers/custom_layer.hpp>
#include <mbgl/map/camera.hpp>
#include <mbgl/map/map.hpp>
#include <mbgl/map/map_options.hpp>

View File

@@ -408,7 +408,7 @@ void RenderSymbolLayer::render(PaintParameters& parameters) {
const auto draw = [&parameters, this](auto& programInstance,
const auto& uniformValues,
const auto& buffers,
auto& segments,
const auto& segments,
const auto& symbolSizeBinder,
const auto& binders,
const auto& paintProperties,
@@ -493,7 +493,7 @@ void RenderSymbolLayer::render(PaintParameters& parameters) {
draw,
tile,
*renderData,
std::ref(bucket.icon.segments),
std::cref(bucket.icon.segments),
bucketPaintProperties,
parameters,
false /*sdfIcon*/
@@ -509,7 +509,7 @@ void RenderSymbolLayer::render(PaintParameters& parameters) {
draw,
tile,
*renderData,
std::ref(bucket.sdfIcon.segments),
std::cref(bucket.sdfIcon.segments),
bucketPaintProperties,
parameters,
true /*sdfIcon*/
@@ -525,7 +525,7 @@ void RenderSymbolLayer::render(PaintParameters& parameters) {
draw,
tile,
*renderData,
std::ref(bucket.text.segments),
std::cref(bucket.text.segments),
bucketPaintProperties,
parameters);
}

View File

@@ -62,9 +62,9 @@ void Renderer::Impl::setObserver(RendererObserver* observer_) {
observer = observer_ ? observer_ : &nullObserver();
}
void Renderer::Impl::preRender(const RenderTree& renderTree,
void Renderer::Impl::preRender([[maybe_unused]] const RenderTree& renderTree,
[[maybe_unused]] const std::shared_ptr<UpdateParameters>& updateParameters) {
auto& context = backend.getContext();
[[maybe_unused]] auto& context = backend.getContext();
// Blocks execution until the renderable is available.
backend.getDefaultRenderable().wait();