gfx/gl/GLDefs.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     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
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #if !defined(LOCALGL_H_)
     6 #define LOCALGL_H_
     8 #include "GLTypes.h"
     9 #include "GLConsts.h"
    11 // TODO: use official constant names instead of followed ones.
    12 // IMG_texture_compression_pvrtc
    13 #define LOCAL_GL_COMPRESSED_RGB_PVRTC_4BPPV1            0x8C00
    14 #define LOCAL_GL_COMPRESSED_RGB_PVRTC_2BPPV1            0x8C01
    15 #define LOCAL_GL_COMPRESSED_RGBA_PVRTC_4BPPV1           0x8C02
    16 #define LOCAL_GL_COMPRESSED_RGBA_PVRTC_2BPPV1           0x8C03
    18 // OES_EGL_image_external
    19 #define LOCAL_GL_TEXTURE_EXTERNAL                       0x8D65
    20 #define LOCAL_GL_TEXTURE_BINDING_EXTERNAL               0x8D67
    22 // EGL_KHR_fence_sync
    23 #define LOCAL_EGL_SYNC_FENCE                            0x30F9
    24 #define LOCAL_EGL_SYNC_TYPE                             0x30F7
    25 #define LOCAL_EGL_SYNC_STATUS                           0x30F1
    26 #define LOCAL_EGL_SYNC_CONDITION                        0x30F8
    27 #define LOCAL_EGL_SIGNALED                              0x30F2
    28 #define LOCAL_EGL_UNSIGNALED                            0x30F3
    29 #define LOCAL_EGL_SYNC_PRIOR_COMMANDS_COMPLETE          0x30F0
    30 #define LOCAL_EGL_SYNC_FLUSH_COMMANDS_BIT               0x0001
    31 #define LOCAL_EGL_FOREVER                               0xFFFFFFFFFFFFFFFFull
    32 #define LOCAL_EGL_TIMEOUT_EXPIRED                       0x30F5
    33 #define LOCAL_EGL_CONDITION_SATISFIED                   0x30F6
    34 #define LOCAL_EGL_SUCCESS                               0x3000
    36 // EGL_KHR_gl_texture_2D_image
    37 #define LOCAL_EGL_GL_TEXTURE_2D                         0x30B1
    39 // EGL_KHR_image_base (not supplied by EGL_KHR_image!)
    40 #define LOCAL_EGL_IMAGE_PRESERVED                       0x30D2
    42 // AMD_compressed_ATC_texture
    43 #define LOCAL_GL_ATC_RGB                                0x8C92
    44 #define LOCAL_GL_ATC_RGBA_EXPLICIT_ALPHA                0x8C93
    45 #define LOCAL_GL_ATC_RGBA_INTERPOLATED_ALPHA            0x87EE
    47 // Others
    48 #define LOCAL_EGL_PRESERVED_RESOURCES                   0x3030
    49 #define LOCAL_EGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
    51 #define LOCAL_GL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
    52 #define LOCAL_GL_CONTEXT_LOST                           0x9242
    53 #define LOCAL_GL_CONTEXT_FLAGS_ARB                      0x2094
    54 #define LOCAL_GL_CONTEXT_CORE_PROFILE_BIT_ARB           0x00000001
    55 #define LOCAL_GL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB  0x00000002
    56 #define LOCAL_GL_CONTEXT_ROBUST_ACCESS_BIT_ARB          0x00000004
    58 #endif

mercurial