blob: d21e2f46d02a9f6b91ae7ddb79cb1b5c03f63d94 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
2/*
3 * Copyright 2011 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
reed@google.combf858b72011-01-19 19:04:04 +00008#ifndef GrGLConfig_chrome_DEFINED
9#define GrGLConfig_chrome_DEFINED
10
bsalomon@google.com3723a482011-02-17 21:47:25 +000011// glGetError() forces a sync with gpu process on chrome
bsalomon@google.com4be283f2011-04-19 21:15:09 +000012#define GR_GL_CHECK_ERROR_START 0
13
14// ANGLE creates a temp VB for vertex attributes not specified per-vertex.
15#define GR_GL_NO_CONSTANT_ATTRIBUTES GR_WIN32_BUILD
bsalomon@google.com3723a482011-02-17 21:47:25 +000016
bsalomon@google.com9ae44292011-07-01 15:21:59 +000017// cmd buffer allocates memory and memsets it to zero when it sees glBufferData
18// with NULL.
19#define GR_GL_USE_BUFFER_DATA_NULL_HINT 0
20
bsalomon@google.com56bfc5a2011-09-01 13:28:16 +000021// chrome uses this to set the context on each GL call.
22#define GR_GL_PER_GL_FUNC_CALLBACK 1
23
reed@google.combf858b72011-01-19 19:04:04 +000024#endif