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

          Line data    Source code
       1             : /* This Source Code Form is subject to the terms of the Mozilla Public
       2             :  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
       3             :  * You can obtain one at http://mozilla.org/MPL/2.0/. */
       4             : 
       5             : #include "WebGLExtensions.h"
       6             : 
       7             : #include "GLContext.h"
       8             : #include "mozilla/dom/WebGLRenderingContextBinding.h"
       9             : #include "WebGLContext.h"
      10             : 
      11             : #ifdef FOO
      12             : #error FOO is already defined! We use FOO() macros to keep things succinct in this file.
      13             : #endif
      14             : 
      15             : namespace mozilla {
      16             : 
      17           0 : WebGLExtensionCompressedTextureATC::WebGLExtensionCompressedTextureATC(WebGLContext* webgl)
      18           0 :     : WebGLExtensionBase(webgl)
      19             : {
      20           0 :     RefPtr<WebGLContext> webgl_ = webgl; // Bug 1201275
      21           0 :     const auto fnAdd = [&webgl_](GLenum sizedFormat, webgl::EffectiveFormat effFormat) {
      22           0 :         auto& fua = webgl_->mFormatUsage;
      23             : 
      24           0 :         auto usage = fua->EditUsage(effFormat);
      25           0 :         usage->isFilterable = true;
      26           0 :         fua->AllowSizedTexFormat(sizedFormat, usage);
      27             : 
      28           0 :         webgl_->mCompressedTextureFormats.AppendElement(sizedFormat);
      29           0 :     };
      30             : 
      31             : #define FOO(x) LOCAL_GL_ ## x, webgl::EffectiveFormat::x
      32             : 
      33           0 :     fnAdd(FOO(ATC_RGB_AMD));
      34           0 :     fnAdd(FOO(ATC_RGBA_EXPLICIT_ALPHA_AMD));
      35           0 :     fnAdd(FOO(ATC_RGBA_INTERPOLATED_ALPHA_AMD));
      36             : 
      37             : #undef FOO
      38           0 : }
      39             : 
      40           0 : WebGLExtensionCompressedTextureATC::~WebGLExtensionCompressedTextureATC()
      41             : {
      42           0 : }
      43             : 
      44           0 : IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionCompressedTextureATC, WEBGL_compressed_texture_atc)
      45             : 
      46             : } // namespace mozilla

Generated by: LCOV version 1.13