tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

angle_version_info.cpp (722B)


      1 //
      2 // Copyright 2021 The ANGLE Project Authors. All rights reserved.
      3 // Use of this source code is governed by a BSD-style license that can be
      4 // found in the LICENSE file.
      5 //
      6 // angle_version_info.cpp: ANGLE version queries.
      7 
      8 #include "common/angle_version.h"
      9 
     10 namespace angle
     11 {
     12 int GetANGLERevision()
     13 {
     14    return ANGLE_REVISION;
     15 }
     16 
     17 const char *GetANGLEVersionString()
     18 {
     19    return ANGLE_VERSION_STRING;
     20 }
     21 
     22 const char *GetANGLECommitHash()
     23 {
     24    return ANGLE_COMMIT_HASH;
     25 }
     26 
     27 int GetANGLECommitHashSize()
     28 {
     29    return ANGLE_COMMIT_HASH_SIZE;
     30 }
     31 
     32 bool GetANGLEHasBinaryLoading()
     33 {
     34 #ifdef ANGLE_HAS_BINARY_LOADING
     35    return true;
     36 #else
     37    return false;
     38 #endif  //  #ifndef ANGLE_HAS_BINARY_LOADING
     39 }
     40 }  // namespace angle