2017-01-10 12:17:30 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "WebRenderAPI.h"
|
2017-01-17 03:21:52 +03:00
|
|
|
#include "mozilla/webrender/RendererOGL.h"
|
2017-01-10 12:17:30 +03:00
|
|
|
#include "mozilla/layers/CompositorThread.h"
|
|
|
|
#include "mozilla/widget/CompositorWidget.h"
|
2017-01-11 15:51:27 +03:00
|
|
|
#include "mozilla/widget/CompositorWidget.h"
|
|
|
|
#include "mozilla/layers/SynchronousTask.h"
|
2017-01-10 12:17:30 +03:00
|
|
|
|
|
|
|
namespace mozilla {
|
2017-01-17 03:22:09 +03:00
|
|
|
namespace wr {
|
2017-01-10 12:17:30 +03:00
|
|
|
|
2017-01-16 17:22:47 +03:00
|
|
|
inline Maybe<WRImageFormat>
|
|
|
|
SurfaceFormatToWRImageFormat(gfx::SurfaceFormat aFormat) {
|
|
|
|
// TODO: fix the formats (RGB/BGR permutations, etc.)
|
|
|
|
switch (aFormat) {
|
|
|
|
case gfx::SurfaceFormat::R8G8B8A8:
|
|
|
|
case gfx::SurfaceFormat::B8G8R8A8:
|
|
|
|
case gfx::SurfaceFormat::A8R8G8B8:
|
|
|
|
return Some(WRImageFormat::RGBA8);
|
|
|
|
case gfx::SurfaceFormat::B8G8R8X8:
|
|
|
|
case gfx::SurfaceFormat::R8G8B8X8:
|
|
|
|
case gfx::SurfaceFormat::X8R8G8B8:
|
|
|
|
case gfx::SurfaceFormat::R8G8B8:
|
|
|
|
case gfx::SurfaceFormat::B8G8R8:
|
|
|
|
return Some(WRImageFormat::RGB8);
|
|
|
|
case gfx::SurfaceFormat::A8:
|
|
|
|
return Some(WRImageFormat::A8);
|
|
|
|
case gfx::SurfaceFormat::UNKNOWN:
|
|
|
|
return Some(WRImageFormat::Invalid);
|
|
|
|
default:
|
|
|
|
return Nothing();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-10 12:17:30 +03:00
|
|
|
class NewRenderer : public RendererEvent
|
|
|
|
{
|
|
|
|
public:
|
2017-01-17 03:22:09 +03:00
|
|
|
NewRenderer(WrAPI** aApi, layers::CompositorBridgeParentBase* aBridge,
|
2017-01-11 15:51:27 +03:00
|
|
|
RefPtr<widget::CompositorWidget>&& aWidget,
|
2017-01-17 03:22:09 +03:00
|
|
|
layers::SynchronousTask* aTask,
|
2017-01-11 15:51:27 +03:00
|
|
|
bool aEnableProfiler)
|
2017-01-16 17:22:47 +03:00
|
|
|
: mWRApi(aApi)
|
2017-01-10 12:17:30 +03:00
|
|
|
, mBridge(aBridge)
|
|
|
|
, mCompositorWidget(Move(aWidget))
|
2017-01-11 15:51:27 +03:00
|
|
|
, mTask(aTask)
|
|
|
|
, mEnableProfiler(aEnableProfiler)
|
2017-01-10 12:17:30 +03:00
|
|
|
{
|
|
|
|
MOZ_COUNT_CTOR(NewRenderer);
|
|
|
|
}
|
|
|
|
|
|
|
|
~NewRenderer()
|
|
|
|
{
|
|
|
|
MOZ_COUNT_DTOR(NewRenderer);
|
|
|
|
}
|
|
|
|
|
2017-01-17 03:22:09 +03:00
|
|
|
virtual void Run(RenderThread& aRenderThread, WindowId aWindowId) override
|
2017-01-10 12:17:30 +03:00
|
|
|
{
|
2017-01-17 03:22:09 +03:00
|
|
|
layers::AutoCompleteTask complete(mTask);
|
2017-01-11 15:51:27 +03:00
|
|
|
|
|
|
|
RefPtr<gl::GLContext> gl = gl::GLContextProvider::CreateForCompositorWidget(mCompositorWidget, true);
|
|
|
|
if (!gl || !gl->MakeCurrent()) {
|
|
|
|
return;
|
2017-01-10 12:17:30 +03:00
|
|
|
}
|
2017-01-11 15:51:27 +03:00
|
|
|
|
|
|
|
wr_gl_init(&*gl);
|
|
|
|
|
|
|
|
WrRenderer* wrRenderer = nullptr;
|
2017-01-16 17:22:47 +03:00
|
|
|
wr_window_new(aWindowId.mHandle, this->mEnableProfiler, mWRApi, &wrRenderer);
|
2017-01-11 15:51:27 +03:00
|
|
|
MOZ_ASSERT(wrRenderer);
|
|
|
|
|
|
|
|
RefPtr<RenderThread> thread = &aRenderThread;
|
|
|
|
auto renderer = MakeUnique<RendererOGL>(Move(thread),
|
|
|
|
Move(gl),
|
|
|
|
Move(mCompositorWidget),
|
|
|
|
aWindowId,
|
|
|
|
wrRenderer,
|
|
|
|
mBridge);
|
|
|
|
|
|
|
|
aRenderThread.AddRenderer(aWindowId, Move(renderer));
|
2017-01-10 12:17:30 +03:00
|
|
|
}
|
|
|
|
|
2017-01-16 17:22:47 +03:00
|
|
|
WrAPI** mWRApi;
|
2017-01-17 03:22:09 +03:00
|
|
|
layers::CompositorBridgeParentBase* mBridge;
|
2017-01-10 12:17:30 +03:00
|
|
|
RefPtr<widget::CompositorWidget> mCompositorWidget;
|
2017-01-17 03:22:09 +03:00
|
|
|
layers::SynchronousTask* mTask;
|
2017-01-11 15:51:27 +03:00
|
|
|
bool mEnableProfiler;
|
2017-01-10 12:17:30 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
class RemoveRenderer : public RendererEvent
|
|
|
|
{
|
|
|
|
public:
|
2017-01-17 03:22:09 +03:00
|
|
|
explicit RemoveRenderer(layers::SynchronousTask* aTask)
|
2017-01-11 15:51:27 +03:00
|
|
|
: mTask(aTask)
|
|
|
|
{
|
|
|
|
MOZ_COUNT_CTOR(RemoveRenderer);
|
|
|
|
}
|
2017-01-10 12:17:30 +03:00
|
|
|
|
2017-01-11 15:51:27 +03:00
|
|
|
~RemoveRenderer()
|
|
|
|
{
|
|
|
|
MOZ_COUNT_DTOR(RemoveRenderer);
|
|
|
|
}
|
2017-01-10 12:17:30 +03:00
|
|
|
|
2017-01-17 03:22:09 +03:00
|
|
|
virtual void Run(RenderThread& aRenderThread, WindowId aWindowId) override
|
2017-01-10 12:17:30 +03:00
|
|
|
{
|
|
|
|
aRenderThread.RemoveRenderer(aWindowId);
|
2017-01-17 03:22:09 +03:00
|
|
|
layers::AutoCompleteTask complete(mTask);
|
2017-01-10 12:17:30 +03:00
|
|
|
}
|
2017-01-11 15:51:27 +03:00
|
|
|
|
2017-01-17 03:22:09 +03:00
|
|
|
layers::SynchronousTask* mTask;
|
2017-01-10 12:17:30 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
//static
|
|
|
|
already_AddRefed<WebRenderAPI>
|
|
|
|
WebRenderAPI::Create(bool aEnableProfiler,
|
2017-01-17 03:22:09 +03:00
|
|
|
layers::CompositorBridgeParentBase* aBridge,
|
2017-01-10 12:17:30 +03:00
|
|
|
RefPtr<widget::CompositorWidget>&& aWidget)
|
|
|
|
{
|
|
|
|
MOZ_ASSERT(aBridge);
|
|
|
|
MOZ_ASSERT(aWidget);
|
|
|
|
|
|
|
|
static uint64_t sNextId = 1;
|
2017-01-17 03:22:09 +03:00
|
|
|
WindowId id(sNextId++);
|
2017-01-10 12:17:30 +03:00
|
|
|
|
2017-01-11 15:51:27 +03:00
|
|
|
WrAPI* wrApi = nullptr;
|
2017-01-10 12:17:30 +03:00
|
|
|
|
2017-01-11 15:51:27 +03:00
|
|
|
// Dispatch a synchronous task because the WrApi object needs to be created
|
|
|
|
// on the render thread. If need be we could delay waiting on this task until
|
|
|
|
// the next time we need to access the WrApi object.
|
2017-01-17 03:22:09 +03:00
|
|
|
layers::SynchronousTask task("Create Renderer");
|
2017-01-11 15:51:27 +03:00
|
|
|
auto event = MakeUnique<NewRenderer>(&wrApi, aBridge, Move(aWidget), &task, aEnableProfiler);
|
|
|
|
RenderThread::Get()->RunEvent(id, Move(event));
|
2017-01-10 12:17:30 +03:00
|
|
|
|
2017-01-11 15:51:27 +03:00
|
|
|
task.Wait();
|
2017-01-10 12:17:30 +03:00
|
|
|
|
2017-01-11 15:51:27 +03:00
|
|
|
if (!wrApi) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
2017-01-10 12:17:30 +03:00
|
|
|
|
2017-01-11 15:51:27 +03:00
|
|
|
return RefPtr<WebRenderAPI>(new WebRenderAPI(wrApi, id)).forget();
|
2017-01-10 12:17:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
WebRenderAPI::~WebRenderAPI()
|
|
|
|
{
|
|
|
|
|
|
|
|
#ifdef MOZ_ENABLE_WEBRENDER
|
|
|
|
// Need to wrap this in an ifdef otherwise VC++ emits a warning (treated as error)
|
|
|
|
// in the non-webrender targets.
|
|
|
|
// We should be able to remove this #ifdef if/when we remove the
|
|
|
|
// MOZ_MAKE_COMPILER_ASSUME_IS_UNREACHABLE annotations in webrender.h
|
2017-01-16 17:22:47 +03:00
|
|
|
wr_api_delete(mWRApi);
|
2017-01-10 12:17:30 +03:00
|
|
|
#endif
|
2017-01-11 15:51:27 +03:00
|
|
|
|
2017-01-17 03:22:09 +03:00
|
|
|
layers::SynchronousTask task("Destroy WebRenderAPI");
|
2017-01-11 15:51:27 +03:00
|
|
|
auto event = MakeUnique<RemoveRenderer>(&task);
|
|
|
|
// TODO use the WebRender API instead of scheduling on this message loop directly.
|
|
|
|
// this needs PR #688
|
|
|
|
RenderThread::Get()->RunEvent(mId, Move(event));
|
|
|
|
task.Wait();
|
2017-01-10 12:17:30 +03:00
|
|
|
}
|
|
|
|
|
2017-01-16 17:22:47 +03:00
|
|
|
void
|
|
|
|
WebRenderAPI::SetRootDisplayList(gfx::Color aBgColor,
|
2017-01-17 03:22:09 +03:00
|
|
|
Epoch aEpoch,
|
2017-01-16 17:22:47 +03:00
|
|
|
LayerSize aViewportSize,
|
|
|
|
DisplayListBuilder& aBuilder)
|
|
|
|
{
|
2017-01-17 17:32:25 +03:00
|
|
|
wr_api_set_root_display_list(mWRApi, aBuilder.mWrState,
|
2017-01-16 17:22:47 +03:00
|
|
|
aEpoch.mHandle,
|
|
|
|
aViewportSize.width, aViewportSize.height);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-01-17 03:22:09 +03:00
|
|
|
WebRenderAPI::SetRootPipeline(PipelineId aPipeline)
|
2017-01-16 17:22:47 +03:00
|
|
|
{
|
|
|
|
wr_api_set_root_pipeline(mWRApi, aPipeline.mHandle);
|
|
|
|
}
|
|
|
|
|
2017-01-17 03:22:09 +03:00
|
|
|
ImageKey
|
2017-01-16 17:22:47 +03:00
|
|
|
WebRenderAPI::AddImageBuffer(gfx::IntSize aSize,
|
|
|
|
uint32_t aStride,
|
|
|
|
gfx::SurfaceFormat aFormat,
|
|
|
|
Range<uint8_t> aBytes)
|
|
|
|
{
|
|
|
|
auto format = SurfaceFormatToWRImageFormat(aFormat).value();
|
2017-01-17 03:22:09 +03:00
|
|
|
return ImageKey(wr_api_add_image(mWRApi,
|
|
|
|
aSize.width, aSize.height,
|
|
|
|
aStride, format,
|
|
|
|
&aBytes[0], aBytes.length()));
|
2017-01-16 17:22:47 +03:00
|
|
|
}
|
|
|
|
|
2017-01-17 03:22:09 +03:00
|
|
|
ImageKey
|
2017-01-16 17:22:47 +03:00
|
|
|
WebRenderAPI::AddExternalImageHandle(gfx::IntSize aSize,
|
|
|
|
gfx::SurfaceFormat aFormat,
|
|
|
|
uint64_t aHandle)
|
|
|
|
{
|
|
|
|
auto format = SurfaceFormatToWRImageFormat(aFormat).value();
|
2017-01-17 03:22:09 +03:00
|
|
|
return ImageKey(wr_api_add_external_image_texture(mWRApi,
|
2017-01-16 17:22:47 +03:00
|
|
|
aSize.width, aSize.height, format,
|
|
|
|
aHandle));
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-01-17 03:22:09 +03:00
|
|
|
WebRenderAPI::UpdateImageBuffer(ImageKey aKey,
|
2017-01-16 17:22:47 +03:00
|
|
|
gfx::IntSize aSize,
|
|
|
|
gfx::SurfaceFormat aFormat,
|
|
|
|
Range<uint8_t> aBytes)
|
|
|
|
{
|
|
|
|
auto format = SurfaceFormatToWRImageFormat(aFormat).value();
|
|
|
|
wr_api_update_image(mWRApi,
|
|
|
|
aKey.mHandle,
|
|
|
|
aSize.width, aSize.height, format,
|
|
|
|
&aBytes[0], aBytes.length());
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-01-17 03:22:09 +03:00
|
|
|
WebRenderAPI::DeleteImage(ImageKey aKey)
|
2017-01-16 17:22:47 +03:00
|
|
|
{
|
|
|
|
wr_api_delete_image(mWRApi, aKey.mHandle);
|
|
|
|
}
|
|
|
|
|
2017-01-17 03:22:09 +03:00
|
|
|
wr::FontKey
|
2017-01-16 17:22:47 +03:00
|
|
|
WebRenderAPI::AddRawFont(Range<uint8_t> aBytes)
|
|
|
|
{
|
2017-01-17 03:22:09 +03:00
|
|
|
return wr::FontKey(wr_api_add_raw_font(mWRApi, &aBytes[0], aBytes.length()));
|
2017-01-16 17:22:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-01-17 03:22:09 +03:00
|
|
|
WebRenderAPI::DeleteFont(wr::FontKey aKey)
|
2017-01-16 17:22:47 +03:00
|
|
|
{
|
|
|
|
printf("XXX - WebRender does not seem to implement deleting a font! Leaking it...\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
class EnableProfiler : public RendererEvent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit EnableProfiler(bool aEnabled) : mEnabled(aEnabled) { MOZ_COUNT_CTOR(EnableProfiler); }
|
|
|
|
~EnableProfiler() { MOZ_COUNT_DTOR(EnableProfiler); }
|
|
|
|
|
2017-01-17 03:22:09 +03:00
|
|
|
virtual void Run(RenderThread& aRenderThread, WindowId aWindowId) override
|
2017-01-16 17:22:47 +03:00
|
|
|
{
|
|
|
|
auto renderer = aRenderThread.GetRenderer(aWindowId);
|
|
|
|
if (renderer) {
|
|
|
|
renderer->SetProfilerEnabled(mEnabled);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bool mEnabled;
|
|
|
|
};
|
|
|
|
|
|
|
|
void
|
|
|
|
WebRenderAPI::SetProfilerEnabled(bool aEnabled)
|
|
|
|
{
|
|
|
|
auto event = MakeUnique<EnableProfiler>(aEnabled);
|
|
|
|
RenderThread::Get()->RunEvent(mId, Move(event));
|
|
|
|
}
|
|
|
|
|
2017-01-17 03:22:09 +03:00
|
|
|
DisplayListBuilder::DisplayListBuilder(const LayerIntSize& aSize, PipelineId aId)
|
2017-01-13 13:25:07 +03:00
|
|
|
{
|
|
|
|
MOZ_COUNT_CTOR(DisplayListBuilder);
|
2017-01-17 17:32:25 +03:00
|
|
|
mWrState = wr_state_new(aSize.width, aSize.height, aId.mHandle);
|
2017-01-13 13:25:07 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
DisplayListBuilder::~DisplayListBuilder()
|
|
|
|
{
|
|
|
|
MOZ_COUNT_DTOR(DisplayListBuilder);
|
|
|
|
#ifdef MOZ_ENABLE_WEBRENDER
|
2017-01-17 17:32:25 +03:00
|
|
|
wr_state_delete(mWrState);
|
2017-01-13 13:25:07 +03:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
DisplayListBuilder::Begin(const LayerIntSize& aSize)
|
|
|
|
{
|
2017-01-17 17:32:25 +03:00
|
|
|
wr_dp_begin(mWrState, aSize.width, aSize.height);
|
2017-01-13 13:25:07 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-01-17 03:22:09 +03:00
|
|
|
DisplayListBuilder::End(WebRenderAPI& aApi, Epoch aEpoch)
|
2017-01-13 13:25:07 +03:00
|
|
|
{
|
2017-01-17 17:32:25 +03:00
|
|
|
wr_dp_end(mWrState, aApi.mWRApi, aEpoch.mHandle);
|
2017-01-13 13:25:07 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-01-17 17:32:16 +03:00
|
|
|
DisplayListBuilder::PushStackingContext(const WrRect& aBounds,
|
|
|
|
const WrRect& aOverflow,
|
2017-01-13 13:25:07 +03:00
|
|
|
const WRImageMask* aMask,
|
|
|
|
const gfx::Matrix4x4& aTransform)
|
|
|
|
{
|
2017-01-17 17:32:25 +03:00
|
|
|
wr_dp_push_stacking_context(mWrState, aBounds, aOverflow, aMask,
|
2017-01-13 13:25:07 +03:00
|
|
|
&aTransform.components[0]);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
DisplayListBuilder::PopStackingContext()
|
|
|
|
{
|
2017-01-17 17:32:25 +03:00
|
|
|
wr_dp_pop_stacking_context(mWrState);
|
2017-01-13 13:25:07 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-01-17 17:32:16 +03:00
|
|
|
DisplayListBuilder::PushRect(const WrRect& aBounds,
|
|
|
|
const WrRect& aClip,
|
2017-01-13 13:25:07 +03:00
|
|
|
const gfx::Color& aColor)
|
|
|
|
{
|
2017-01-17 17:32:25 +03:00
|
|
|
wr_dp_push_rect(mWrState, aBounds, aClip,
|
2017-01-13 13:25:07 +03:00
|
|
|
aColor.r, aColor.g, aColor.b, aColor.a);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-01-17 17:32:16 +03:00
|
|
|
DisplayListBuilder::PushImage(const WrRect& aBounds,
|
|
|
|
const WrRect& aClip,
|
2017-01-13 13:25:07 +03:00
|
|
|
const WRImageMask* aMask,
|
2017-01-13 20:59:07 +03:00
|
|
|
const WRTextureFilter aFilter,
|
2017-01-13 13:25:07 +03:00
|
|
|
WRImageKey aImage)
|
|
|
|
{
|
2017-01-17 17:32:25 +03:00
|
|
|
wr_dp_push_image(mWrState, aBounds, aClip, aMask, aFilter, aImage);
|
2017-01-13 13:25:07 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-01-17 17:32:16 +03:00
|
|
|
DisplayListBuilder::PushIFrame(const WrRect& aBounds,
|
|
|
|
const WrRect& aClip,
|
2017-01-17 03:22:09 +03:00
|
|
|
PipelineId aPipeline)
|
2017-01-13 13:25:07 +03:00
|
|
|
{
|
2017-01-17 17:32:25 +03:00
|
|
|
wr_dp_push_iframe(mWrState, aBounds, aClip, aPipeline.mHandle);
|
2017-01-13 13:25:07 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-01-17 17:32:16 +03:00
|
|
|
DisplayListBuilder::PushBorder(const WrRect& aBounds,
|
|
|
|
const WrRect& aClip,
|
2017-01-13 13:25:07 +03:00
|
|
|
const WRBorderSide& aTop,
|
|
|
|
const WRBorderSide& aRight,
|
|
|
|
const WRBorderSide& aBottom,
|
|
|
|
const WRBorderSide& aLeft,
|
2017-01-17 17:32:20 +03:00
|
|
|
const WrLayoutSize& aTopLeftRadius,
|
|
|
|
const WrLayoutSize& aTopRightRadius,
|
|
|
|
const WrLayoutSize& aBottomLeftRadius,
|
|
|
|
const WrLayoutSize& aBottomRightRadius)
|
2017-01-13 13:25:07 +03:00
|
|
|
{
|
2017-01-17 17:32:25 +03:00
|
|
|
wr_dp_push_border(mWrState, aBounds, aClip,
|
2017-01-13 13:25:07 +03:00
|
|
|
aTop, aRight, aBottom, aLeft,
|
|
|
|
aTopLeftRadius, aTopRightRadius,
|
|
|
|
aBottomLeftRadius, aBottomRightRadius);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-01-17 17:32:16 +03:00
|
|
|
DisplayListBuilder::PushText(const WrRect& aBounds,
|
|
|
|
const WrRect& aClip,
|
2017-01-13 13:25:07 +03:00
|
|
|
const gfx::Color& aColor,
|
2017-01-17 03:22:09 +03:00
|
|
|
wr::FontKey aFontKey,
|
2017-01-13 13:25:07 +03:00
|
|
|
Range<const WRGlyphInstance> aGlyphBuffer,
|
|
|
|
float aGlyphSize)
|
|
|
|
{
|
2017-01-17 17:32:25 +03:00
|
|
|
wr_dp_push_text(mWrState, aBounds, aClip,
|
2017-01-13 13:25:07 +03:00
|
|
|
ToWRColor(aColor),
|
|
|
|
aFontKey.mHandle,
|
|
|
|
&aGlyphBuffer[0], aGlyphBuffer.length(),
|
|
|
|
aGlyphSize);
|
|
|
|
}
|
|
|
|
|
2017-01-10 12:17:30 +03:00
|
|
|
} // namespace
|
|
|
|
} // namespace
|