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 "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 Loading... |
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 Loading... |
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 |
OLD | NEW |