OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "ProgramBinding.h" | 7 #include "cc/program_binding.h" |
8 | 8 |
9 #include "CCRendererGL.h" // For the GLC() macro. | 9 #include "CCRendererGL.h" // For the GLC() macro. |
10 #include "GeometryBinding.h" | |
11 #include "GraphicsContext3D.h" | 10 #include "GraphicsContext3D.h" |
12 #include "TraceEvent.h" | 11 #include "TraceEvent.h" |
| 12 #include "cc/geometry_binding.h" |
13 #include <public/WebGraphicsContext3D.h> | 13 #include <public/WebGraphicsContext3D.h> |
14 | 14 |
15 using WebKit::WebGraphicsContext3D; | 15 using WebKit::WebGraphicsContext3D; |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
18 | 18 |
19 ProgramBindingBase::ProgramBindingBase() | 19 ProgramBindingBase::ProgramBindingBase() |
20 : m_program(0) | 20 : m_program(0) |
21 , m_vertexShaderId(0) | 21 , m_vertexShaderId(0) |
22 , m_fragmentShaderId(0) | 22 , m_fragmentShaderId(0) |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 GLC(context, context->deleteShader(m_vertexShaderId)); | 134 GLC(context, context->deleteShader(m_vertexShaderId)); |
135 m_vertexShaderId = 0; | 135 m_vertexShaderId = 0; |
136 } | 136 } |
137 if (m_fragmentShaderId) { | 137 if (m_fragmentShaderId) { |
138 GLC(context, context->deleteShader(m_fragmentShaderId)); | 138 GLC(context, context->deleteShader(m_fragmentShaderId)); |
139 m_fragmentShaderId = 0; | 139 m_fragmentShaderId = 0; |
140 } | 140 } |
141 } | 141 } |
142 | 142 |
143 } // namespace cc | 143 } // namespace cc |
OLD | NEW |