Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion renderer/include/rive/renderer/render_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ class RenderContext : public RiveRenderFactory
uint32_t m_currentContourID;

// Atlas for offscreen feathering.
std::unique_ptr<skgpu::RectanizerSkyline> m_atlasRectanizer;
std::unique_ptr<rive::RectanizerSkyline> m_atlasRectanizer;
uint32_t m_atlasMaxX = 0;
uint32_t m_atlasMaxY = 0;
std::vector<PathDraw*> m_pendingAtlasDraws;
Expand Down
4 changes: 2 additions & 2 deletions renderer/include/rive/renderer/sk_rectanizer_skyline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <cstdint>
#include <vector>

namespace skgpu
namespace rive
{
// Pack rectangles and track the current silhouette
// Based, in part, on Jukka Jylanki's work at http://clb.demon.fi
Expand Down Expand Up @@ -82,4 +82,4 @@ class RectanizerSkyline
// at x,y.
void addSkylineLevel(int skylineIndex, int x, int y, int width, int height);
};
} // End of namespace skgpu
} // End of namespace rive
2 changes: 1 addition & 1 deletion renderer/src/render_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ bool RenderContext::LogicalFlush::allocateAtlasDraw(
uint16_t atlasMaxSize = m_ctx->atlasMaxSize();
// Use an atlas larger than atlasMaxSize if it's too small for the
// request (meaning the render target is larger than atlasMaxSize).
m_atlasRectanizer = std::make_unique<skgpu::RectanizerSkyline>(
m_atlasRectanizer = std::make_unique<rive::RectanizerSkyline>(
std::max(atlasMaxSize, drawWidth),
std::max(atlasMaxSize, drawHeight));
}
Expand Down
4 changes: 2 additions & 2 deletions renderer/src/sk_rectanizer_skyline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <algorithm>
#include <cassert>

namespace skgpu
namespace rive
{

bool RectanizerSkyline::addRect(int width, int height, int16_t* x, int16_t* y)
Expand Down Expand Up @@ -152,4 +152,4 @@ void RectanizerSkyline::addSkylineLevel(int skylineIndex,
}
}

} // End of namespace skgpu
} // End of namespace rive