michael@0: /* -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40; -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "SurfaceTypes.h" michael@0: #include "mozilla/layers/ISurfaceAllocator.h" michael@0: michael@0: namespace mozilla { michael@0: namespace gfx { michael@0: michael@0: SurfaceCaps::SurfaceCaps() michael@0: { michael@0: Clear(); michael@0: } michael@0: michael@0: SurfaceCaps::SurfaceCaps(const SurfaceCaps& other) michael@0: { michael@0: *this = other; michael@0: } michael@0: michael@0: SurfaceCaps& michael@0: SurfaceCaps::operator=(const SurfaceCaps& other) michael@0: { michael@0: any = other.any; michael@0: color = other.color; michael@0: alpha = other.alpha; michael@0: bpp16 = other.bpp16; michael@0: depth = other.depth; michael@0: stencil = other.stencil; michael@0: antialias = other.antialias; michael@0: preserve = other.preserve; michael@0: surfaceAllocator = other.surfaceAllocator; michael@0: michael@0: return *this; michael@0: } michael@0: michael@0: void michael@0: SurfaceCaps::Clear() michael@0: { michael@0: any = false; michael@0: color = false; michael@0: alpha = false; michael@0: bpp16 = false; michael@0: depth = false; michael@0: stencil = false; michael@0: antialias = false; michael@0: preserve = false; michael@0: surfaceAllocator = nullptr; michael@0: } michael@0: michael@0: michael@0: michael@0: SurfaceCaps::~SurfaceCaps() michael@0: { michael@0: } michael@0: michael@0: } michael@0: }