gfx/skia/trunk/include/gpu/GrUserConfig.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 /*
michael@0 2 * Copyright 2010 Google Inc.
michael@0 3 *
michael@0 4 * Use of this source code is governed by a BSD-style license that can be
michael@0 5 * found in the LICENSE file.
michael@0 6 */
michael@0 7
michael@0 8 #ifndef GrUserConfig_DEFINED
michael@0 9 #define GrUserConfig_DEFINED
michael@0 10
michael@0 11 #if defined(GR_USER_CONFIG_FILE)
michael@0 12 #error "default user config pulled in but GR_USER_CONFIG_FILE is defined."
michael@0 13 #endif
michael@0 14
michael@0 15 /**
michael@0 16 * This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using
michael@0 17 * updateData. (Note the depending on the underlying 3D API the update functions
michael@0 18 * may always be implemented using a lock)
michael@0 19 */
michael@0 20 //#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15)
michael@0 21
michael@0 22 /**
michael@0 23 * This gives a threshold in megabytes for the maximum size of the texture cache
michael@0 24 * in vram. The value is only a default and can be overridden at runtime.
michael@0 25 */
michael@0 26 //#define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96
michael@0 27
michael@0 28 /**
michael@0 29 * This specifies the maximum number of textures the texture cache can hold
michael@0 30 * in vram. The value is only a default and can be overridden at runtime.
michael@0 31 */
michael@0 32 //#define GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT 2048
michael@0 33
michael@0 34 /*
michael@0 35 * This allows us to set a callback to be called before each GL call to ensure
michael@0 36 * that our context is set correctly
michael@0 37 */
michael@0 38 #define GR_GL_PER_GL_FUNC_CALLBACK 1
michael@0 39
michael@0 40 #endif

mercurial