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

Side by Side Diff: cc/gl_renderer.cc

Issue 11777025: cc: Implement DelegatingRender::drawFrame() method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for-landing Created 7 years, 11 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/draw_quad.cc ('k') | cc/gl_renderer_unittest.cc » ('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 #include "cc/gl_renderer.h" 5 #include "cc/gl_renderer.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 m_swapBufferRect.Union(gfx::ToEnclosingRect(frame.rootDamageRect)); 1170 m_swapBufferRect.Union(gfx::ToEnclosingRect(frame.rootDamageRect));
1171 1171
1172 GLC(m_context, m_context->disable(GL_BLEND)); 1172 GLC(m_context, m_context->disable(GL_BLEND));
1173 m_blendShadow = false; 1173 m_blendShadow = false;
1174 1174
1175 if (settings().compositorFrameMessage) { 1175 if (settings().compositorFrameMessage) {
1176 CompositorFrame compositor_frame; 1176 CompositorFrame compositor_frame;
1177 compositor_frame.metadata = m_client->makeCompositorFrameMetadata(); 1177 compositor_frame.metadata = m_client->makeCompositorFrameMetadata();
1178 compositor_frame.gl_frame_data.reset(new GLFrameData()); 1178 compositor_frame.gl_frame_data.reset(new GLFrameData());
1179 // FIXME: Fill in GLFrameData when we implement swapping with it. 1179 // FIXME: Fill in GLFrameData when we implement swapping with it.
1180 m_outputSurface->SendFrameToParentCompositor(compositor_frame); 1180 m_outputSurface->SendFrameToParentCompositor(&compositor_frame);
1181 } 1181 }
1182 } 1182 }
1183 1183
1184 void GLRenderer::finishDrawingQuadList() 1184 void GLRenderer::finishDrawingQuadList()
1185 { 1185 {
1186 flushTextureQuadCache(); 1186 flushTextureQuadCache();
1187 } 1187 }
1188 1188
1189 bool GLRenderer::flippedFramebuffer() const 1189 bool GLRenderer::flippedFramebuffer() const
1190 { 1190 {
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 1797
1798 releaseRenderPassTextures(); 1798 releaseRenderPassTextures();
1799 } 1799 }
1800 1800
1801 bool GLRenderer::isContextLost() 1801 bool GLRenderer::isContextLost()
1802 { 1802 {
1803 return (m_context->getGraphicsResetStatusARB() != GL_NO_ERROR); 1803 return (m_context->getGraphicsResetStatusARB() != GL_NO_ERROR);
1804 } 1804 }
1805 1805
1806 } // namespace cc 1806 } // namespace cc
OLDNEW
« no previous file with comments | « cc/draw_quad.cc ('k') | cc/gl_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698