mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
wg_engine: --redundant code
This commit is contained in:
parent
cb47dc0d28
commit
846ae09151
2 changed files with 0 additions and 13 deletions
|
@ -293,18 +293,6 @@ bool WgRenderer::sync()
|
|||
}
|
||||
|
||||
|
||||
bool WgRenderer::target(uint32_t* buffer, uint32_t stride, uint32_t w, uint32_t h)
|
||||
{
|
||||
// store target surface properties
|
||||
mTargetSurface.stride = stride;
|
||||
mTargetSurface.w = w;
|
||||
mTargetSurface.h = h;
|
||||
|
||||
mRenderTarget.initialize(mContext, w, h, WG_SSAA_SAMPLES);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// target for native window handle
|
||||
bool WgRenderer::target(WGPUInstance instance, WGPUSurface surface, uint32_t w, uint32_t h)
|
||||
{
|
||||
|
|
|
@ -51,7 +51,6 @@ public:
|
|||
bool clear() override;
|
||||
bool sync() override;
|
||||
|
||||
bool target(uint32_t* buffer, uint32_t stride, uint32_t w, uint32_t h);
|
||||
bool target(WGPUInstance instance, WGPUSurface surface, uint32_t w, uint32_t h);
|
||||
|
||||
Compositor* target(const RenderRegion& region, ColorSpace cs) override;
|
||||
|
|
Loading…
Add table
Reference in a new issue