mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
4e9300d191
From 4e9f52ab105333e8b1120342e9583b2d833a4465 Mon Sep 17 00:00:00 2001 --- dom/canvas/WebGLContext.cpp | 10 +++++-- gfx/gl/GLContext.cpp | 20 -------------- gfx/gl/GLContext.h | 3 -- gfx/gl/GLReadTexImageHelper.cpp | 5 +++- gfx/gl/GLScreenBuffer.cpp | 13 +++++++-- gfx/gl/GLUploadHelpers.cpp | 27 ++++++++++++++++++ gfx/gl/SharedSurfaceGralloc.cpp | 14 ++++------ gfx/gl/SharedSurfaceGralloc.h | 10 +++++-- gfx/gl/SurfaceTypes.cpp | 2 ++ gfx/gl/SurfaceTypes.h | 1 + gfx/layers/client/CanvasClient.cpp | 44 ++++++++++++++++++------------ gfx/layers/client/CanvasClient.h | 8 +++--- gfx/layers/client/ClientCanvasLayer.cpp | 6 ++++ gfx/layers/client/ClientCanvasLayer.h | 2 +- gfx/layers/client/TextureClient.cpp | 11 ++++---- gfx/layers/client/TextureClient.h | 6 ++-- gfx/layers/composite/TextureHost.cpp | 15 +++++----- gfx/layers/composite/TextureHost.h | 10 +++---- gfx/layers/d3d10/CanvasLayerD3D10.cpp | 9 ++++-- gfx/layers/d3d9/CanvasLayerD3D9.cpp | 8 ++++-- gfx/layers/ipc/LayersSurfaces.ipdlh | 4 +-- gfx/layers/moz.build | 4 ++- gfx/layers/opengl/GrallocTextureClient.cpp | 26 +++++++++++++++++- gfx/layers/opengl/GrallocTextureClient.h | 3 ++ 24 files changed, 171 insertions(+), 90 deletions(-)
61 lines
1.2 KiB
C++
61 lines
1.2 KiB
C++
/* -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40; -*- */
|
|
/* 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 "SurfaceTypes.h"
|
|
|
|
#include "mozilla/layers/ISurfaceAllocator.h"
|
|
|
|
namespace mozilla {
|
|
namespace gl {
|
|
|
|
SurfaceCaps::SurfaceCaps()
|
|
{
|
|
Clear();
|
|
}
|
|
|
|
SurfaceCaps::SurfaceCaps(const SurfaceCaps& other)
|
|
{
|
|
*this = other;
|
|
}
|
|
|
|
SurfaceCaps&
|
|
SurfaceCaps::operator=(const SurfaceCaps& other)
|
|
{
|
|
any = other.any;
|
|
color = other.color;
|
|
alpha = other.alpha;
|
|
bpp16 = other.bpp16;
|
|
depth = other.depth;
|
|
stencil = other.stencil;
|
|
antialias = other.antialias;
|
|
premultAlpha = other.premultAlpha;
|
|
preserve = other.preserve;
|
|
surfaceAllocator = other.surfaceAllocator;
|
|
|
|
return *this;
|
|
}
|
|
|
|
void
|
|
SurfaceCaps::Clear()
|
|
{
|
|
any = false;
|
|
color = false;
|
|
alpha = false;
|
|
bpp16 = false;
|
|
depth = false;
|
|
stencil = false;
|
|
antialias = false;
|
|
premultAlpha = false;
|
|
preserve = false;
|
|
surfaceAllocator = nullptr;
|
|
}
|
|
|
|
SurfaceCaps::~SurfaceCaps()
|
|
{
|
|
}
|
|
|
|
} // namespace gl
|
|
} // namespace mozilla
|