Bumping manifests a=b2g-bump
[gecko.git] / dom / canvas / WebGLTransformFeedback.h
blob5c16276f326c160d845568933abacdf346bc0eea
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"
14 namespace mozilla {
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;
26 public:
27 explicit WebGLTransformFeedback(WebGLContext* webgl, GLuint tf);
29 void Delete();
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)
36 private:
37 ~WebGLTransformFeedback();
38 GLenum mMode;
39 bool mIsActive;
40 bool mIsPaused;
43 } // namespace mozilla
45 #endif // WEBGL_TRANSFORM_FEEDBACK_H_