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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 return scoped_ptr<GLRenderer>(); | 86 return scoped_ptr<GLRenderer>(); |
87 | 87 |
88 return renderer.Pass(); | 88 return renderer.Pass(); |
89 } | 89 } |
90 | 90 |
91 GLRenderer::GLRenderer(RendererClient* client, OutputSurface* outputSurface, Res
ourceProvider* resourceProvider) | 91 GLRenderer::GLRenderer(RendererClient* client, OutputSurface* outputSurface, Res
ourceProvider* resourceProvider) |
92 : DirectRenderer(client, resourceProvider) | 92 : DirectRenderer(client, resourceProvider) |
93 , m_offscreenFramebufferId(0) | 93 , m_offscreenFramebufferId(0) |
94 , m_sharedGeometryQuad(gfx::RectF(-0.5f, -0.5f, 1.0f, 1.0f)) | 94 , m_sharedGeometryQuad(gfx::RectF(-0.5f, -0.5f, 1.0f, 1.0f)) |
95 , m_outputSurface(outputSurface) | 95 , m_outputSurface(outputSurface) |
96 , m_context(outputSurface->Context3D()) | 96 , m_context(outputSurface->context3d()) |
97 , m_isViewportChanged(false) | 97 , m_isViewportChanged(false) |
98 , m_isBackbufferDiscarded(false) | 98 , m_isBackbufferDiscarded(false) |
99 , m_discardBackbufferWhenNotVisible(false) | 99 , m_discardBackbufferWhenNotVisible(false) |
100 , m_isUsingBindUniform(false) | 100 , m_isUsingBindUniform(false) |
101 , m_visible(true) | 101 , m_visible(true) |
102 , m_isScissorEnabled(false) | 102 , m_isScissorEnabled(false) |
103 { | 103 { |
104 DCHECK(m_context); | 104 DCHECK(m_context); |
105 } | 105 } |
106 | 106 |
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1831 | 1831 |
1832 releaseRenderPassTextures(); | 1832 releaseRenderPassTextures(); |
1833 } | 1833 } |
1834 | 1834 |
1835 bool GLRenderer::isContextLost() | 1835 bool GLRenderer::isContextLost() |
1836 { | 1836 { |
1837 return (m_context->getGraphicsResetStatusARB() != GL_NO_ERROR); | 1837 return (m_context->getGraphicsResetStatusARB() != GL_NO_ERROR); |
1838 } | 1838 } |
1839 | 1839 |
1840 } // namespace cc | 1840 } // namespace cc |
OLD | NEW |