1 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef GLCONTEXT_TYPES_H_
7 #define GLCONTEXT_TYPES_H_
10 #include "mozilla/TypedEnum.h"
17 typedef uintptr_t SharedTextureHandle
;
19 MOZ_BEGIN_ENUM_CLASS(SharedTextureShareType
)
22 MOZ_END_ENUM_CLASS(SharedTextureShareType
)
24 MOZ_BEGIN_ENUM_CLASS(SharedTextureBufferType
)
28 MOZ_END_ENUM_CLASS(SharedTextureBufferType
)
30 MOZ_BEGIN_ENUM_CLASS(GLContextType
)
36 MOZ_END_ENUM_CLASS(GLContextType
)
40 // Constructs a zeroed object:
43 GLenum color_texInternalFormat
;
44 GLenum color_texFormat
;
46 GLenum color_rbFormat
;
56 struct PixelBufferFormat
58 // Constructs a zeroed object:
66 int ColorBits() const { return red
+ green
+ blue
; }
71 } /* namespace mozilla */
73 #endif /* GLCONTEXT_TYPES_H_ */