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/. */
6 #ifndef WEBGL_TRANSFORM_FEEDBACK_H_
7 #define WEBGL_TRANSFORM_FEEDBACK_H_
9 #include "mozilla/LinkedList.h"
10 #include "nsWrapperCache.h"
11 #include "WebGLBindableName.h"
12 #include "WebGLObjectModel.h"
16 class WebGLTransformFeedback MOZ_FINAL
17 : public nsWrapperCache
18 , public WebGLBindableName
<GLenum
>
19 , public WebGLRefCountedObject
<WebGLTransformFeedback
>
20 , public LinkedListElement
<WebGLTransformFeedback
>
21 , public WebGLContextBoundObject
23 friend class WebGLContext
;
24 friend class WebGL2Context
;
27 explicit WebGLTransformFeedback(WebGLContext
* webgl
, GLuint tf
);
30 WebGLContext
* GetParentObject() const;
31 virtual JSObject
* WrapObject(JSContext
* cx
) MOZ_OVERRIDE
;
33 NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(WebGLTransformFeedback
)
34 NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(WebGLTransformFeedback
)
37 ~WebGLTransformFeedback();
43 } // namespace mozilla
45 #endif // WEBGL_TRANSFORM_FEEDBACK_H_