| OLD | NEW | 
|---|
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "config.h" | 5 #include "config.h" | 
| 6 | 6 | 
| 7 #include "CCRendererGL.h" | 7 #include "CCRendererGL.h" | 
| 8 | 8 | 
| 9 #include "CCDamageTracker.h" | 9 #include "CCDamageTracker.h" | 
| 10 #include "CCLayerQuad.h" | 10 #include "CCLayerQuad.h" | 
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 96 | 96 | 
| 97     if (settings().acceleratePainting && extensions.count("GL_EXT_texture_format
      _BGRA8888") | 97     if (settings().acceleratePainting && extensions.count("GL_EXT_texture_format
      _BGRA8888") | 
| 98                                       && extensions.count("GL_EXT_read_format_bg
      ra")) | 98                                       && extensions.count("GL_EXT_read_format_bg
      ra")) | 
| 99         m_capabilities.usingAcceleratedPainting = true; | 99         m_capabilities.usingAcceleratedPainting = true; | 
| 100     else | 100     else | 
| 101         m_capabilities.usingAcceleratedPainting = false; | 101         m_capabilities.usingAcceleratedPainting = false; | 
| 102 | 102 | 
| 103 | 103 | 
| 104     m_capabilities.contextHasCachedFrontBuffer = extensions.count("GL_CHROMIUM_f
      ront_buffer_cached"); | 104     m_capabilities.contextHasCachedFrontBuffer = extensions.count("GL_CHROMIUM_f
      ront_buffer_cached"); | 
| 105 | 105 | 
| 106     m_capabilities.usingPartialSwap = CCSettings::partialSwapEnabled() && extens
      ions.count("GL_CHROMIUM_post_sub_buffer"); | 106     m_capabilities.usingPartialSwap = Settings::partialSwapEnabled() && extensio
      ns.count("GL_CHROMIUM_post_sub_buffer"); | 
| 107 | 107 | 
| 108     // Use the swapBuffers callback only with the threaded proxy. | 108     // Use the swapBuffers callback only with the threaded proxy. | 
| 109     if (CCProxy::hasImplThread()) | 109     if (CCProxy::hasImplThread()) | 
| 110         m_capabilities.usingSwapCompleteCallback = extensions.count("GL_CHROMIUM
      _swapbuffers_complete_callback"); | 110         m_capabilities.usingSwapCompleteCallback = extensions.count("GL_CHROMIUM
      _swapbuffers_complete_callback"); | 
| 111     if (m_capabilities.usingSwapCompleteCallback) | 111     if (m_capabilities.usingSwapCompleteCallback) | 
| 112         m_context->setSwapBuffersCompleteCallbackCHROMIUM(this); | 112         m_context->setSwapBuffersCompleteCallbackCHROMIUM(this); | 
| 113 | 113 | 
| 114     m_capabilities.usingSetVisibility = extensions.count("GL_CHROMIUM_set_visibi
      lity"); | 114     m_capabilities.usingSetVisibility = extensions.count("GL_CHROMIUM_set_visibi
      lity"); | 
| 115 | 115 | 
| 116     if (extensions.count("GL_CHROMIUM_iosurface")) | 116     if (extensions.count("GL_CHROMIUM_iosurface")) | 
| (...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1511 | 1511 | 
| 1512     releaseRenderPassTextures(); | 1512     releaseRenderPassTextures(); | 
| 1513 } | 1513 } | 
| 1514 | 1514 | 
| 1515 bool CCRendererGL::isContextLost() | 1515 bool CCRendererGL::isContextLost() | 
| 1516 { | 1516 { | 
| 1517     return (m_context->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERRO
      R); | 1517     return (m_context->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERRO
      R); | 
| 1518 } | 1518 } | 
| 1519 | 1519 | 
| 1520 } // namespace cc | 1520 } // namespace cc | 
| OLD | NEW | 
|---|