Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
[gecko.git] / dom / canvas / WebGLSampler.h
blob7b50375e14128c8f5d146c213632813f6af2dde1
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_SAMPLER_H_
7 #define WEBGL_SAMPLER_H_
9 #include "mozilla/LinkedList.h"
10 #include "nsWrapperCache.h"
11 #include "WebGLBindableName.h"
12 #include "WebGLObjectModel.h"
14 namespace mozilla {
16 class WebGLSampler MOZ_FINAL
17 : public nsWrapperCache
18 , public WebGLBindableName<GLenum>
19 , public WebGLRefCountedObject<WebGLSampler>
20 , public LinkedListElement<WebGLSampler>
21 , public WebGLContextBoundObject
23 friend class WebGLContext2;
25 public:
26 explicit WebGLSampler(WebGLContext* webgl, GLuint sampler);
28 void Delete();
29 WebGLContext* GetParentObject() const;
31 virtual JSObject* WrapObject(JSContext* cx) MOZ_OVERRIDE;
33 private:
35 NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(WebGLSampler)
36 NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(WebGLSampler)
38 private:
39 ~WebGLSampler();
42 } // namespace mozilla
44 #endif // WEBGL_SAMPLER_H_