2018-11-30 22:52:05 +03:00
|
|
|
/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 4; -*- */
|
2013-12-03 22:44:38 +04:00
|
|
|
/* 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"
|
2014-07-12 02:10:49 +04:00
|
|
|
|
2016-09-27 11:46:41 +03:00
|
|
|
#include "mozilla/layers/TextureForwarder.h"
|
2013-12-03 22:44:38 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
2014-07-12 02:10:49 +04:00
|
|
|
namespace gl {
|
2013-12-03 22:44:38 +04:00
|
|
|
|
|
|
|
SurfaceCaps::SurfaceCaps() { Clear(); }
|
|
|
|
|
2015-11-27 18:38:11 +03:00
|
|
|
/* These are defined out of line so that we don't need to include
|
|
|
|
* ISurfaceAllocator.h in the header */
|
|
|
|
SurfaceCaps::SurfaceCaps(const SurfaceCaps& other) = default;
|
|
|
|
SurfaceCaps& SurfaceCaps::operator=(const SurfaceCaps& other) = default;
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2013-12-03 22:44:38 +04:00
|
|
|
void SurfaceCaps::Clear() {
|
2014-08-28 03:16:22 +04:00
|
|
|
any = false;
|
|
|
|
color = false;
|
|
|
|
alpha = false;
|
|
|
|
bpp16 = false;
|
|
|
|
depth = false;
|
|
|
|
stencil = false;
|
|
|
|
antialias = false;
|
2014-10-08 08:15:39 +04:00
|
|
|
premultAlpha = true;
|
2014-08-28 03:16:22 +04:00
|
|
|
preserve = false;
|
|
|
|
surfaceAllocator = nullptr;
|
2013-12-03 22:44:38 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
SurfaceCaps::~SurfaceCaps() {}
|
|
|
|
|
2014-07-12 02:10:49 +04:00
|
|
|
} // namespace gl
|
|
|
|
} // namespace mozilla
|