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

Side by Side Diff: cc/CCRendererGL.cpp

Issue 10915298: Add CCDelegatingRenderer, and corresponding IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang 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 | Annotate | Revision Log
« no previous file with comments | « cc/CCRenderer.h ('k') | cc/CCRendererSoftware.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5
6 #include "config.h" 6 #include "config.h"
7 7
8 #if USE(ACCELERATED_COMPOSITING) 8 #if USE(ACCELERATED_COMPOSITING)
9 #include "CCRendererGL.h" 9 #include "CCRendererGL.h"
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 base::SplitString(extensionsString, ' ', &extensionsList); 98 base::SplitString(extensionsString, ' ', &extensionsList);
99 std::set<string> extensions(extensionsList.begin(), extensionsList.end()); 99 std::set<string> extensions(extensionsList.begin(), extensionsList.end());
100 100
101 if (settings().acceleratePainting && extensions.count("GL_EXT_texture_format _BGRA8888") 101 if (settings().acceleratePainting && extensions.count("GL_EXT_texture_format _BGRA8888")
102 && extensions.count("GL_EXT_read_format_bg ra")) 102 && extensions.count("GL_EXT_read_format_bg ra"))
103 m_capabilities.usingAcceleratedPainting = true; 103 m_capabilities.usingAcceleratedPainting = true;
104 else 104 else
105 m_capabilities.usingAcceleratedPainting = false; 105 m_capabilities.usingAcceleratedPainting = false;
106 106
107 107
108 m_capabilities.contextHasCachedFrontBuffer = extensions.count("GL_CHROMIUM_f ront_buffer_cached");
109
110 m_capabilities.usingPartialSwap = CCSettings::partialSwapEnabled() && extens ions.count("GL_CHROMIUM_post_sub_buffer"); 108 m_capabilities.usingPartialSwap = CCSettings::partialSwapEnabled() && extens ions.count("GL_CHROMIUM_post_sub_buffer");
111 109
112 // Use the swapBuffers callback only with the threaded proxy. 110 // Use the swapBuffers callback only with the threaded proxy.
113 if (CCProxy::hasImplThread()) 111 if (CCProxy::hasImplThread())
114 m_capabilities.usingSwapCompleteCallback = extensions.count("GL_CHROMIUM _swapbuffers_complete_callback"); 112 m_capabilities.usingSwapCompleteCallback = extensions.count("GL_CHROMIUM _swapbuffers_complete_callback");
115 if (m_capabilities.usingSwapCompleteCallback) 113 if (m_capabilities.usingSwapCompleteCallback)
116 m_context->setSwapBuffersCompleteCallbackCHROMIUM(this); 114 m_context->setSwapBuffersCompleteCallbackCHROMIUM(this);
117 115
118 m_capabilities.usingSetVisibility = extensions.count("GL_CHROMIUM_set_visibi lity"); 116 m_capabilities.usingSetVisibility = extensions.count("GL_CHROMIUM_set_visibi lity");
119 117
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 } 1519 }
1522 1520
1523 bool CCRendererGL::isContextLost() 1521 bool CCRendererGL::isContextLost()
1524 { 1522 {
1525 return (m_context->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERRO R); 1523 return (m_context->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERRO R);
1526 } 1524 }
1527 1525
1528 } // namespace cc 1526 } // namespace cc
1529 1527
1530 #endif // USE(ACCELERATED_COMPOSITING) 1528 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« no previous file with comments | « cc/CCRenderer.h ('k') | cc/CCRendererSoftware.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698