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

Side by Side Diff: cc/gl_renderer.cc

Issue 12041062: Have a common implementation of cc::OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 10 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/cc_tests.gyp ('k') | cc/gl_renderer_pixeltest.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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/gl_renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698