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.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #if !defined(LOCALGL_H_)
michael@0 6 #define LOCALGL_H_
michael@0 7
michael@0 8 #include "GLTypes.h"
michael@0 9 #include "GLConsts.h"
michael@0 10
michael@0 11 // TODO: use official constant names instead of followed ones.
michael@0 12 // IMG_texture_compression_pvrtc
michael@0 13 #define LOCAL_GL_COMPRESSED_RGB_PVRTC_4BPPV1 0x8C00
michael@0 14 #define LOCAL_GL_COMPRESSED_RGB_PVRTC_2BPPV1 0x8C01
michael@0 15 #define LOCAL_GL_COMPRESSED_RGBA_PVRTC_4BPPV1 0x8C02
michael@0 16 #define LOCAL_GL_COMPRESSED_RGBA_PVRTC_2BPPV1 0x8C03
michael@0 17
michael@0 18 // OES_EGL_image_external
michael@0 19 #define LOCAL_GL_TEXTURE_EXTERNAL 0x8D65
michael@0 20 #define LOCAL_GL_TEXTURE_BINDING_EXTERNAL 0x8D67
michael@0 21
michael@0 22 // EGL_KHR_fence_sync
michael@0 23 #define LOCAL_EGL_SYNC_FENCE 0x30F9
michael@0 24 #define LOCAL_EGL_SYNC_TYPE 0x30F7
michael@0 25 #define LOCAL_EGL_SYNC_STATUS 0x30F1
michael@0 26 #define LOCAL_EGL_SYNC_CONDITION 0x30F8
michael@0 27 #define LOCAL_EGL_SIGNALED 0x30F2
michael@0 28 #define LOCAL_EGL_UNSIGNALED 0x30F3
michael@0 29 #define LOCAL_EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0
michael@0 30 #define LOCAL_EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001
michael@0 31 #define LOCAL_EGL_FOREVER 0xFFFFFFFFFFFFFFFFull
michael@0 32 #define LOCAL_EGL_TIMEOUT_EXPIRED 0x30F5
michael@0 33 #define LOCAL_EGL_CONDITION_SATISFIED 0x30F6
michael@0 34 #define LOCAL_EGL_SUCCESS 0x3000
michael@0 35
michael@0 36 // EGL_KHR_gl_texture_2D_image
michael@0 37 #define LOCAL_EGL_GL_TEXTURE_2D 0x30B1
michael@0 38
michael@0 39 // EGL_KHR_image_base (not supplied by EGL_KHR_image!)
michael@0 40 #define LOCAL_EGL_IMAGE_PRESERVED 0x30D2
michael@0 41
michael@0 42 // AMD_compressed_ATC_texture
michael@0 43 #define LOCAL_GL_ATC_RGB 0x8C92
michael@0 44 #define LOCAL_GL_ATC_RGBA_EXPLICIT_ALPHA 0x8C93
michael@0 45 #define LOCAL_GL_ATC_RGBA_INTERPOLATED_ALPHA 0x87EE
michael@0 46
michael@0 47 // Others
michael@0 48 #define LOCAL_EGL_PRESERVED_RESOURCES 0x3030
michael@0 49 #define LOCAL_EGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
michael@0 50
michael@0 51 #define LOCAL_GL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
michael@0 52 #define LOCAL_GL_CONTEXT_LOST 0x9242
michael@0 53 #define LOCAL_GL_CONTEXT_FLAGS_ARB 0x2094
michael@0 54 #define LOCAL_GL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
michael@0 55 #define LOCAL_GL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
michael@0 56 #define LOCAL_GL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
michael@0 57
michael@0 58 #endif

mercurial