Bug 2069823: apply code formatting via Lando
# ignore-this-changeset
This commit is contained in:
committed by
stransky@redhat.com
parent
3b4c8650f9
commit
12bbf0581f
@@ -2,21 +2,21 @@
|
||||
* 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 <gbm.h>
|
||||
#include "BufferSurface.h"
|
||||
|
||||
#include <gbm.h>
|
||||
|
||||
#ifdef MOZ_LOGGING
|
||||
# include "gfxUtils.h"
|
||||
# include "mozilla/gfx/Logging.h"
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_WAYLAND
|
||||
#include "nsWaylandDisplay.h"
|
||||
# include "nsWaylandDisplay.h"
|
||||
#endif
|
||||
#include "GLContextEGL.h"
|
||||
#include "GLContextProvider.h"
|
||||
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::widget;
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
#include <string.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#include "GLContextEGL.h"
|
||||
#include "GLContextProvider.h"
|
||||
#include "gfxPlatform.h"
|
||||
#include "mozilla/ipc/SharedMemoryHandle.h"
|
||||
#include "nsGtkUtils.h"
|
||||
#include "nsWaylandDisplay.h"
|
||||
#include "GLContextEGL.h"
|
||||
#include "GLContextProvider.h"
|
||||
|
||||
#undef LOGDMABUF
|
||||
#ifdef MOZ_LOGGING
|
||||
|
||||
@@ -40,12 +40,11 @@ static SurfaceDescriptor MakeRGBADescriptor(RefPtr<FileHandleWrapper> fd) {
|
||||
AutoTArray<NotNull<RefPtr<FileHandleWrapper>>, 1> fence;
|
||||
AutoTArray<ipc::FileDescriptor, 1> refCount;
|
||||
return SurfaceDescriptor(SurfaceDescriptorDMABuf(
|
||||
DMABufSurface::SURFACE_RGBA, GBM_FORMAT_ARGB8888,
|
||||
modifiers, 0, fds, width, height, width,
|
||||
height, format, strides, offsets, gfx::YUVColorSpace::BT601,
|
||||
gfx::ColorRange::LIMITED, gfx::ColorSpace2::UNKNOWN,
|
||||
gfx::TransferFunction::Default, 0, fence, 1, 0, refCount, nullptr, false,
|
||||
gfx::HDRMetadata()));
|
||||
DMABufSurface::SURFACE_RGBA, GBM_FORMAT_ARGB8888, modifiers, 0, fds,
|
||||
width, height, width, height, format, strides, offsets,
|
||||
gfx::YUVColorSpace::BT601, gfx::ColorRange::LIMITED,
|
||||
gfx::ColorSpace2::UNKNOWN, gfx::TransferFunction::Default, 0, fence, 1, 0,
|
||||
refCount, nullptr, false, gfx::HDRMetadata()));
|
||||
}
|
||||
|
||||
// Matches what DMABufSurfaceYUV::Serialize() produces for a two-plane 128×128
|
||||
|
||||
Reference in New Issue
Block a user