Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; 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/. */
5 :
6 : #ifndef WEBGL_FRAMEBUFFER_ATTACHABLE_H_
7 : #define WEBGL_FRAMEBUFFER_ATTACHABLE_H_
8 :
9 : #include "nsTArray.h"
10 :
11 : namespace mozilla {
12 : class WebGLFBAttachPoint;
13 :
14 0 : class WebGLFramebufferAttachable
15 : {
16 : nsTArray<const WebGLFBAttachPoint*> mAttachmentPoints;
17 :
18 : public:
19 : // Track FBO/Attachment combinations
20 : void MarkAttachment(const WebGLFBAttachPoint& attachment);
21 : void UnmarkAttachment(const WebGLFBAttachPoint& attachment);
22 : void InvalidateStatusOfAttachedFBs(const char* funcName) const;
23 : };
24 :
25 : } // namespace mozilla
26 :
27 : #endif // !WEBGLFRAMEBUFFERATTACHABLE_H_
|