1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/gl/SurfaceTypes.cpp Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,59 @@ 1.4 +/* -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40; -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "SurfaceTypes.h" 1.10 +#include "mozilla/layers/ISurfaceAllocator.h" 1.11 + 1.12 +namespace mozilla { 1.13 +namespace gfx { 1.14 + 1.15 +SurfaceCaps::SurfaceCaps() 1.16 +{ 1.17 + Clear(); 1.18 +} 1.19 + 1.20 +SurfaceCaps::SurfaceCaps(const SurfaceCaps& other) 1.21 +{ 1.22 + *this = other; 1.23 +} 1.24 + 1.25 +SurfaceCaps& 1.26 +SurfaceCaps::operator=(const SurfaceCaps& other) 1.27 +{ 1.28 + any = other.any; 1.29 + color = other.color; 1.30 + alpha = other.alpha; 1.31 + bpp16 = other.bpp16; 1.32 + depth = other.depth; 1.33 + stencil = other.stencil; 1.34 + antialias = other.antialias; 1.35 + preserve = other.preserve; 1.36 + surfaceAllocator = other.surfaceAllocator; 1.37 + 1.38 + return *this; 1.39 +} 1.40 + 1.41 +void 1.42 +SurfaceCaps::Clear() 1.43 +{ 1.44 + any = false; 1.45 + color = false; 1.46 + alpha = false; 1.47 + bpp16 = false; 1.48 + depth = false; 1.49 + stencil = false; 1.50 + antialias = false; 1.51 + preserve = false; 1.52 + surfaceAllocator = nullptr; 1.53 +} 1.54 + 1.55 + 1.56 + 1.57 +SurfaceCaps::~SurfaceCaps() 1.58 +{ 1.59 +} 1.60 + 1.61 +} 1.62 +}