Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: cc/gl_renderer.cc

Issue 11186039: Move CC switches to cc/switches.h. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix ChromeOS and rename CCSettings to Settings Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 if (settings().acceleratePainting && extensions.count("GL_EXT_texture_format _BGRA8888") 99 if (settings().acceleratePainting && extensions.count("GL_EXT_texture_format _BGRA8888")
100 && extensions.count("GL_EXT_read_format_bg ra")) 100 && extensions.count("GL_EXT_read_format_bg ra"))
101 m_capabilities.usingAcceleratedPainting = true; 101 m_capabilities.usingAcceleratedPainting = true;
102 else 102 else
103 m_capabilities.usingAcceleratedPainting = false; 103 m_capabilities.usingAcceleratedPainting = false;
104 104
105 105
106 m_capabilities.contextHasCachedFrontBuffer = extensions.count("GL_CHROMIUM_f ront_buffer_cached"); 106 m_capabilities.contextHasCachedFrontBuffer = extensions.count("GL_CHROMIUM_f ront_buffer_cached");
107 107
108 m_capabilities.usingPartialSwap = CCSettings::partialSwapEnabled() && extens ions.count("GL_CHROMIUM_post_sub_buffer"); 108 m_capabilities.usingPartialSwap = Settings::partialSwapEnabled() && extensio ns.count("GL_CHROMIUM_post_sub_buffer");
109 109
110 // Use the swapBuffers callback only with the threaded proxy. 110 // Use the swapBuffers callback only with the threaded proxy.
111 if (CCProxy::hasImplThread()) 111 if (CCProxy::hasImplThread())
112 m_capabilities.usingSwapCompleteCallback = extensions.count("GL_CHROMIUM _swapbuffers_complete_callback"); 112 m_capabilities.usingSwapCompleteCallback = extensions.count("GL_CHROMIUM _swapbuffers_complete_callback");
113 if (m_capabilities.usingSwapCompleteCallback) 113 if (m_capabilities.usingSwapCompleteCallback)
114 m_context->setSwapBuffersCompleteCallbackCHROMIUM(this); 114 m_context->setSwapBuffersCompleteCallbackCHROMIUM(this);
115 115
116 m_capabilities.usingSetVisibility = extensions.count("GL_CHROMIUM_set_visibi lity"); 116 m_capabilities.usingSetVisibility = extensions.count("GL_CHROMIUM_set_visibi lity");
117 117
118 if (extensions.count("GL_CHROMIUM_iosurface")) 118 if (extensions.count("GL_CHROMIUM_iosurface"))
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 1517
1518 releaseRenderPassTextures(); 1518 releaseRenderPassTextures();
1519 } 1519 }
1520 1520
1521 bool CCRendererGL::isContextLost() 1521 bool CCRendererGL::isContextLost()
1522 { 1522 {
1523 return (m_context->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERRO R); 1523 return (m_context->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERRO R);
1524 } 1524 }
1525 1525
1526 } // namespace cc 1526 } // namespace cc
OLDNEW
« no previous file with comments | « cc/content_layer.cc ('k') | cc/layer.cc » ('j') | content/public/common/content_switches.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698