LCOV - code coverage report
Current view: top level - dom/canvas - WebGLSampler.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 2 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 6 0.0 %
Legend: Lines: hit not hit

          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_SAMPLER_H_
       7             : #define WEBGL_SAMPLER_H_
       8             : 
       9             : #include "mozilla/LinkedList.h"
      10             : #include "nsWrapperCache.h"
      11             : #include "WebGLObjectModel.h"
      12             : #include "WebGLStrongTypes.h"
      13             : 
      14             : namespace mozilla {
      15             : 
      16             : class WebGLSampler final
      17             :     : public nsWrapperCache
      18             :     , public WebGLRefCountedObject<WebGLSampler>
      19             :     , public LinkedListElement<WebGLSampler>
      20             : {
      21             :     friend class WebGLContext2;
      22             :     friend class WebGLTexture;
      23             : 
      24             : public:
      25             :     WebGLSampler(WebGLContext* webgl, GLuint sampler);
      26             : 
      27             :     const GLuint mGLName;
      28             : 
      29             :     void Delete();
      30             :     WebGLContext* GetParentObject() const;
      31             : 
      32             :     virtual JSObject* WrapObject(JSContext* cx, JS::Handle<JSObject*> givenProto) override;
      33             : 
      34             :     void SamplerParameter(const char* funcName, GLenum pname, const FloatOrInt& param);
      35             : 
      36             : private:
      37           0 :     NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(WebGLSampler)
      38           0 :     NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(WebGLSampler)
      39             : 
      40             :     TexMinFilter mMinFilter;
      41             :     TexMagFilter mMagFilter;
      42             :     TexWrap mWrapS;
      43             :     TexWrap mWrapT;
      44             :     TexWrap mWrapR;
      45             :     GLfloat mMinLod;
      46             :     GLfloat mMaxLod;
      47             :     TexCompareMode mCompareMode;
      48             :     TexCompareFunc mCompareFunc;
      49             : 
      50             : private:
      51             :     ~WebGLSampler();
      52             : };
      53             : 
      54             : } // namespace mozilla
      55             : 
      56             : #endif // WEBGL_SAMPLER_H_

Generated by: LCOV version 1.13