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 "cc/program_binding.h" | 7 #include "cc/program_binding.h" |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "cc/geometry_binding.h" | 10 #include "cc/geometry_binding.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 if (m_vertexShaderId) { | 132 if (m_vertexShaderId) { |
133 GLC(context, context->deleteShader(m_vertexShaderId)); | 133 GLC(context, context->deleteShader(m_vertexShaderId)); |
134 m_vertexShaderId = 0; | 134 m_vertexShaderId = 0; |
135 } | 135 } |
136 if (m_fragmentShaderId) { | 136 if (m_fragmentShaderId) { |
137 GLC(context, context->deleteShader(m_fragmentShaderId)); | 137 GLC(context, context->deleteShader(m_fragmentShaderId)); |
138 m_fragmentShaderId = 0; | 138 m_fragmentShaderId = 0; |
139 } | 139 } |
140 } | 140 } |
141 | 141 |
142 } // namespace cc | 142 } // namespace cc |
OLD | NEW |