gfx/skia/trunk/include/gpu/GrUserConfig.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/include/gpu/GrUserConfig.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +/*
     1.5 + * Copyright 2010 Google Inc.
     1.6 + *
     1.7 + * Use of this source code is governed by a BSD-style license that can be
     1.8 + * found in the LICENSE file.
     1.9 + */
    1.10 +
    1.11 +#ifndef GrUserConfig_DEFINED
    1.12 +#define GrUserConfig_DEFINED
    1.13 +
    1.14 +#if defined(GR_USER_CONFIG_FILE)
    1.15 +    #error "default user config pulled in but GR_USER_CONFIG_FILE is defined."
    1.16 +#endif
    1.17 +
    1.18 +/**
    1.19 + * This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using
    1.20 + * updateData. (Note the depending on the underlying 3D API the update functions
    1.21 + * may always be implemented using a lock)
    1.22 + */
    1.23 +//#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15)
    1.24 +
    1.25 +/**
    1.26 + * This gives a threshold in megabytes for the maximum size of the texture cache
    1.27 + * in vram. The value is only a default and can be overridden at runtime.
    1.28 + */
    1.29 +//#define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96
    1.30 +
    1.31 +/**
    1.32 + * This specifies the maximum number of textures the texture cache can hold
    1.33 + * in vram. The value is only a default and can be overridden at runtime.
    1.34 + */
    1.35 +//#define GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT 2048
    1.36 +
    1.37 +/*
    1.38 + * This allows us to set a callback to be called before each GL call to ensure
    1.39 + * that our context is set correctly
    1.40 + */
    1.41 +#define GR_GL_PER_GL_FUNC_CALLBACK  1
    1.42 +
    1.43 +#endif

mercurial