OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 | 10 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 #else | 309 #else |
310 template <bool> class GR_STATIC_ASSERT_FAILURE; | 310 template <bool> class GR_STATIC_ASSERT_FAILURE; |
311 template <> class GR_STATIC_ASSERT_FAILURE<true> {}; | 311 template <> class GR_STATIC_ASSERT_FAILURE<true> {}; |
312 #define GR_STATIC_ASSERT(CONDITION) \ | 312 #define GR_STATIC_ASSERT(CONDITION) \ |
313 enum {GR_CONCAT(X,__LINE__) = \ | 313 enum {GR_CONCAT(X,__LINE__) = \ |
314 sizeof(GR_STATIC_ASSERT_FAILURE<CONDITION>)} | 314 sizeof(GR_STATIC_ASSERT_FAILURE<CONDITION>)} |
315 #endif | 315 #endif |
316 #endif | 316 #endif |
317 | 317 |
318 /** | 318 /** |
319 * GR_STATIC_RECT_VB controls whether rects are drawn by issuing a vertex | |
320 * for each corner or using a static vb that is positioned by modifying the | |
321 * view / texture matrix. | |
322 */ | |
323 #if !defined(GR_STATIC_RECT_VB) | |
324 #define GR_STATIC_RECT_VB 0 | |
325 #endif | |
326 | |
327 /** | |
328 * GR_GEOM_BUFFER_LOCK_THRESHOLD gives a threshold (in bytes) for when Gr should | 319 * GR_GEOM_BUFFER_LOCK_THRESHOLD gives a threshold (in bytes) for when Gr should |
329 * lock a GrGeometryBuffer to update its contents. It will use lock() if the | 320 * lock a GrGeometryBuffer to update its contents. It will use lock() if the |
330 * size of the updated region is greater than the threshold. Otherwise it will | 321 * size of the updated region is greater than the threshold. Otherwise it will |
331 * use updateData(). | 322 * use updateData(). |
332 */ | 323 */ |
333 #if !defined(GR_GEOM_BUFFER_LOCK_THRESHOLD) | 324 #if !defined(GR_GEOM_BUFFER_LOCK_THRESHOLD) |
334 #define GR_GEOM_BUFFER_LOCK_THRESHOLD (1 << 15) | 325 #define GR_GEOM_BUFFER_LOCK_THRESHOLD (1 << 15) |
335 #endif | 326 #endif |
336 | 327 |
337 /** | 328 /** |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 #endif | 375 #endif |
385 #if GR_LINUX_BUILD | 376 #if GR_LINUX_BUILD |
386 // #pragma message GR_WARN("GR_LINUX_BUILD") | 377 // #pragma message GR_WARN("GR_LINUX_BUILD") |
387 #endif | 378 #endif |
388 #if GR_QNX_BUILD | 379 #if GR_QNX_BUILD |
389 // #pragma message GR_WARN("GR_QNX_BUILD") | 380 // #pragma message GR_WARN("GR_QNX_BUILD") |
390 #endif | 381 #endif |
391 #endif | 382 #endif |
392 | 383 |
393 #endif | 384 #endif |
OLD | NEW |