| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <GLES2/gl2.h> | 5 #include <GLES2/gl2.h> |
| 6 #include <GLES2/gl2ext.h> | 6 #include <GLES2/gl2ext.h> |
| 7 #include <GLES2/gl2extchromium.h> | 7 #include <GLES2/gl2extchromium.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <cmath> | 11 #include <cmath> |
| 12 | 12 |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/bit_cast.h" |
| 14 #include "base/location.h" | 15 #include "base/location.h" |
| 15 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
| 16 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
| 17 #include "base/thread_task_runner_handle.h" | 18 #include "base/thread_task_runner_handle.h" |
| 18 #include "gpu/command_buffer/tests/gl_manager.h" | 19 #include "gpu/command_buffer/tests/gl_manager.h" |
| 19 #include "gpu/command_buffer/tests/gl_test_utils.h" | 20 #include "gpu/command_buffer/tests/gl_test_utils.h" |
| 20 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 23 |
| 23 namespace gpu { | 24 namespace gpu { |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 | 312 |
| 312 glDeleteFramebuffers(1, &framebuffer); | 313 glDeleteFramebuffers(1, &framebuffer); |
| 313 glDeleteTextures(1, &texture_id); | 314 glDeleteTextures(1, &texture_id); |
| 314 } | 315 } |
| 315 | 316 |
| 316 glDeleteBuffers(1, &vertex_buffer); | 317 glDeleteBuffers(1, &vertex_buffer); |
| 317 glDeleteProgram(program); | 318 glDeleteProgram(program); |
| 318 } | 319 } |
| 319 | 320 |
| 320 } // namespace gpu | 321 } // namespace gpu |
| OLD | NEW |