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" | |
6 | |
7 #include "cc/program_binding.h" | 5 #include "cc/program_binding.h" |
8 | 6 |
9 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
10 #include "cc/geometry_binding.h" | 8 #include "cc/geometry_binding.h" |
11 #include "cc/gl_renderer.h" // For the GLC() macro. | 9 #include "cc/gl_renderer.h" // For the GLC() macro. |
12 #include "third_party/khronos/GLES2/gl2.h" | 10 #include "third_party/khronos/GLES2/gl2.h" |
13 #include <public/WebGraphicsContext3D.h> | 11 #include <public/WebGraphicsContext3D.h> |
14 | 12 |
15 using WebKit::WebGraphicsContext3D; | 13 using WebKit::WebGraphicsContext3D; |
16 | 14 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 GLC(context, context->deleteShader(m_vertexShaderId)); | 131 GLC(context, context->deleteShader(m_vertexShaderId)); |
134 m_vertexShaderId = 0; | 132 m_vertexShaderId = 0; |
135 } | 133 } |
136 if (m_fragmentShaderId) { | 134 if (m_fragmentShaderId) { |
137 GLC(context, context->deleteShader(m_fragmentShaderId)); | 135 GLC(context, context->deleteShader(m_fragmentShaderId)); |
138 m_fragmentShaderId = 0; | 136 m_fragmentShaderId = 0; |
139 } | 137 } |
140 } | 138 } |
141 | 139 |
142 } // namespace cc | 140 } // namespace cc |
OLD | NEW |