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

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 20; 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             : #include "WebGLExtensions.h"
       7             : 
       8             : #include "GLContext.h"
       9             : #include "mozilla/dom/WebGLRenderingContextBinding.h"
      10             : #include "WebGLBuffer.h"
      11             : #include "WebGLContext.h"
      12             : #include "WebGLVertexArray.h"
      13             : 
      14             : namespace mozilla {
      15             : 
      16           0 : WebGLExtensionVertexArray::WebGLExtensionVertexArray(WebGLContext* webgl)
      17           0 :   : WebGLExtensionBase(webgl)
      18             : {
      19           0 : }
      20             : 
      21           0 : WebGLExtensionVertexArray::~WebGLExtensionVertexArray()
      22             : {
      23           0 : }
      24             : 
      25             : already_AddRefed<WebGLVertexArray>
      26           0 : WebGLExtensionVertexArray::CreateVertexArrayOES()
      27             : {
      28           0 :     if (mIsLost)
      29           0 :         return nullptr;
      30             : 
      31           0 :     return mContext->CreateVertexArray();
      32             : }
      33             : 
      34             : void
      35           0 : WebGLExtensionVertexArray::DeleteVertexArrayOES(WebGLVertexArray* array)
      36             : {
      37           0 :     if (mIsLost)
      38           0 :         return;
      39             : 
      40           0 :     mContext->DeleteVertexArray(array);
      41             : }
      42             : 
      43             : bool
      44           0 : WebGLExtensionVertexArray::IsVertexArrayOES(const WebGLVertexArray* array)
      45             : {
      46           0 :     if (mIsLost)
      47           0 :         return false;
      48             : 
      49           0 :     return mContext->IsVertexArray(array);
      50             : }
      51             : 
      52             : void
      53           0 : WebGLExtensionVertexArray::BindVertexArrayOES(WebGLVertexArray* array)
      54             : {
      55           0 :     if (mIsLost)
      56           0 :         return;
      57             : 
      58           0 :     mContext->BindVertexArray(array);
      59             : }
      60             : 
      61           0 : IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionVertexArray, OES_vertex_array_object)
      62             : 
      63             : } // namespace mozilla

Generated by: LCOV version 1.13