Sat, 03 Jan 2015 20:18:00 +0100
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 //
2 // Copyright (c) 2013 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 //
7 // Contants.h: Defines some implementation specific and gl constants
9 #ifndef LIBGLESV2_CONSTANTS_H_
10 #define LIBGLESV2_CONSTANTS_H_
12 namespace gl
13 {
15 enum
16 {
17 MAX_VERTEX_ATTRIBS = 16,
18 MAX_TEXTURE_IMAGE_UNITS = 16,
20 // Implementation upper limits, real maximums depend on the hardware
21 IMPLEMENTATION_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 16,
22 IMPLEMENTATION_MAX_COMBINED_TEXTURE_IMAGE_UNITS = MAX_TEXTURE_IMAGE_UNITS + IMPLEMENTATION_MAX_VERTEX_TEXTURE_IMAGE_UNITS,
24 IMPLEMENTATION_MAX_VARYING_VECTORS = 32,
25 IMPLEMENTATION_MAX_DRAW_BUFFERS = 8
26 };
28 const float ALIASED_LINE_WIDTH_RANGE_MIN = 1.0f;
29 const float ALIASED_LINE_WIDTH_RANGE_MAX = 1.0f;
30 const float ALIASED_POINT_SIZE_RANGE_MIN = 1.0f;
32 }
34 #endif // LIBGLESV2_CONSTANTS_H_