2013-12-03 10:44:38 -08:00
|
|
|
/* -*- 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"
|
2014-07-11 15:10:49 -07:00
|
|
|
|
2013-12-03 10:44:38 -08:00
|
|
|
#include "mozilla/layers/ISurfaceAllocator.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
2014-07-11 15:10:49 -07:00
|
|
|
namespace gl {
|
2013-12-03 10:44:38 -08:00
|
|
|
|
|
|
|
SurfaceCaps::SurfaceCaps()
|
|
|
|
{
|
2014-08-27 16:16:22 -07:00
|
|
|
Clear();
|
2013-12-03 10:44:38 -08:00
|
|
|
}
|
|
|
|
|
2015-11-27 07:38:11 -08: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;
|
2013-12-03 10:44:38 -08:00
|
|
|
SurfaceCaps&
|
2015-11-27 07:38:11 -08:00
|
|
|
SurfaceCaps::operator=(const SurfaceCaps& other) = default;
|
2013-12-03 10:44:38 -08:00
|
|
|
|
|
|
|
void
|
|
|
|
SurfaceCaps::Clear()
|
|
|
|
{
|
2014-08-27 16:16:22 -07:00
|
|
|
any = false;
|
|
|
|
color = false;
|
|
|
|
alpha = false;
|
|
|
|
bpp16 = false;
|
|
|
|
depth = false;
|
|
|
|
stencil = false;
|
|
|
|
antialias = false;
|
2014-10-07 21:15:39 -07:00
|
|
|
premultAlpha = true;
|
2014-08-27 16:16:22 -07:00
|
|
|
preserve = false;
|
|
|
|
surfaceAllocator = nullptr;
|
2013-12-03 10:44:38 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
SurfaceCaps::~SurfaceCaps()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-07-11 15:10:49 -07:00
|
|
|
} // namespace gl
|
|
|
|
} // namespace mozilla
|