| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 OwnPtr<CCHeadsUpDisplay> m_headsUpDisplay; | 256 OwnPtr<CCHeadsUpDisplay> m_headsUpDisplay; |
| 257 | 257 |
| 258 RefPtr<GraphicsContext3D> m_context; | 258 RefPtr<GraphicsContext3D> m_context; |
| 259 #if USE(SKIA) | 259 #if USE(SKIA) |
| 260 OwnPtr<GrContext> m_skiaContext; | 260 OwnPtr<GrContext> m_skiaContext; |
| 261 #endif | 261 #endif |
| 262 | 262 |
| 263 ChildContextMap m_childContexts; | 263 ChildContextMap m_childContexts; |
| 264 | 264 |
| 265 bool m_contextSupportsLatch; | |
| 266 bool m_contextSupportsMapSub; | 265 bool m_contextSupportsMapSub; |
| 267 bool m_contextSupportsTextureFormatBGRA; | 266 bool m_contextSupportsTextureFormatBGRA; |
| 268 bool m_contextSupportsReadFormatBGRA; | 267 bool m_contextSupportsReadFormatBGRA; |
| 269 | 268 |
| 270 bool m_animating; | 269 bool m_animating; |
| 271 | 270 |
| 272 RenderSurfaceChromium* m_defaultRenderSurface; | 271 RenderSurfaceChromium* m_defaultRenderSurface; |
| 273 | 272 |
| 274 CCLayerSorter m_layerSorter; | 273 CCLayerSorter m_layerSorter; |
| 275 }; | 274 }; |
| 276 | 275 |
| 277 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL | 276 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL |
| 278 // call made by the compositor. Useful for debugging rendering issues but | 277 // call made by the compositor. Useful for debugging rendering issues but |
| 279 // will significantly degrade performance. | 278 // will significantly degrade performance. |
| 280 #define DEBUG_GL_CALLS 0 | 279 #define DEBUG_GL_CALLS 0 |
| 281 | 280 |
| 282 #if DEBUG_GL_CALLS && !defined ( NDEBUG ) | 281 #if DEBUG_GL_CALLS && !defined ( NDEBUG ) |
| 283 #define GLC(context, x) { (x), LayerRendererChromium::debugGLCall(context, #x, _
_FILE__, __LINE__); } | 282 #define GLC(context, x) { (x), LayerRendererChromium::debugGLCall(context, #x, _
_FILE__, __LINE__); } |
| 284 #else | 283 #else |
| 285 #define GLC(context, x) (x) | 284 #define GLC(context, x) (x) |
| 286 #endif | 285 #endif |
| 287 | 286 |
| 288 | 287 |
| 289 } | 288 } |
| 290 | 289 |
| 291 #endif // USE(ACCELERATED_COMPOSITING) | 290 #endif // USE(ACCELERATED_COMPOSITING) |
| 292 | 291 |
| 293 #endif | 292 #endif |
| OLD | NEW |