2014-03-03 23:14:35 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* 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/. */
|
|
|
|
|
2015-03-24 16:00:28 -07:00
|
|
|
#ifndef WEBGL_FRAMEBUFFER_ATTACHABLE_H_
|
|
|
|
#define WEBGL_FRAMEBUFFER_ATTACHABLE_H_
|
2014-03-03 23:14:35 -08:00
|
|
|
|
|
|
|
#include "GLDefs.h"
|
2015-03-16 21:32:52 -07:00
|
|
|
#include "mozilla/WeakPtr.h"
|
2015-03-24 16:00:28 -07:00
|
|
|
#include "nsTArray.h"
|
2014-07-30 12:52:07 -07:00
|
|
|
#include "WebGLFramebuffer.h"
|
2014-09-25 08:21:33 -07:00
|
|
|
#include "WebGLStrongTypes.h"
|
2014-03-03 23:14:35 -08:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
class WebGLFramebufferAttachable
|
|
|
|
{
|
2015-03-24 16:00:28 -07:00
|
|
|
nsTArray<const WebGLFramebuffer::AttachPoint*> mAttachmentPoints;
|
2014-03-03 23:14:35 -08:00
|
|
|
|
|
|
|
public:
|
|
|
|
// Track FBO/Attachment combinations
|
2015-03-24 16:00:28 -07:00
|
|
|
void MarkAttachment(const WebGLFramebuffer::AttachPoint& attachment);
|
|
|
|
void UnmarkAttachment(const WebGLFramebuffer::AttachPoint& attachment);
|
|
|
|
void InvalidateStatusOfAttachedFBs() const;
|
2014-03-03 23:14:35 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // !WEBGLFRAMEBUFFERATTACHABLE_H_
|