| 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 #include <memory> | 12 #include <memory> |
| 13 | 13 |
| 14 #include "base/bind.h" | 14 #include "base/bind.h" |
| 15 #include "base/bit_cast.h" | 15 #include "base/bit_cast.h" |
| 16 #include "base/location.h" | 16 #include "base/location.h" |
| 17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
| 18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
| 19 #include "base/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
| 20 #include "gpu/command_buffer/tests/gl_manager.h" | 20 #include "gpu/command_buffer/tests/gl_manager.h" |
| 21 #include "gpu/command_buffer/tests/gl_test_utils.h" | 21 #include "gpu/command_buffer/tests/gl_test_utils.h" |
| 22 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 24 | 24 |
| 25 namespace gpu { | 25 namespace gpu { |
| 26 | 26 |
| 27 class GLReadbackTest : public testing::Test { | 27 class GLReadbackTest : public testing::Test { |
| 28 protected: | 28 protected: |
| 29 void SetUp() override { gl_.Initialize(GLManager::Options()); } | 29 void SetUp() override { gl_.Initialize(GLManager::Options()); } |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 | 322 |
| 323 glDeleteFramebuffers(1, &framebuffer); | 323 glDeleteFramebuffers(1, &framebuffer); |
| 324 glDeleteTextures(1, &texture_id); | 324 glDeleteTextures(1, &texture_id); |
| 325 } | 325 } |
| 326 | 326 |
| 327 glDeleteBuffers(1, &vertex_buffer); | 327 glDeleteBuffers(1, &vertex_buffer); |
| 328 glDeleteProgram(program); | 328 glDeleteProgram(program); |
| 329 } | 329 } |
| 330 | 330 |
| 331 } // namespace gpu | 331 } // namespace gpu |
| OLD | NEW |