OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/texture_copier.h" | 7 #include "cc/texture_copier.h" |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "cc/gl_renderer.h" // For the GLC() macro. | 10 #include "cc/gl_renderer.h" // For the GLC() macro. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 GLC(m_context, m_context->framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTA
CHMENT0, GL_TEXTURE_2D, 0, 0)); | 88 GLC(m_context, m_context->framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTA
CHMENT0, GL_TEXTURE_2D, 0, 0)); |
89 GLC(m_context, m_context->bindFramebuffer(GL_FRAMEBUFFER, 0)); | 89 GLC(m_context, m_context->bindFramebuffer(GL_FRAMEBUFFER, 0)); |
90 GLC(m_context, m_context->bindTexture(GL_TEXTURE_2D, 0)); | 90 GLC(m_context, m_context->bindTexture(GL_TEXTURE_2D, 0)); |
91 } | 91 } |
92 | 92 |
93 void AcceleratedTextureCopier::flush() | 93 void AcceleratedTextureCopier::flush() |
94 { | 94 { |
95 GLC(m_context, m_context->flush()); | 95 GLC(m_context, m_context->flush()); |
96 } | 96 } |
97 | 97 |
98 } | 98 } // namespace cc |
OLD | NEW |