| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "gpu/command_buffer/common/sync_token.h" | 5 #include "gpu/command_buffer/common/sync_token.h" |
| 6 #include "gpu/command_buffer/service/feature_info.h" | 6 #include "gpu/command_buffer/service/feature_info.h" |
| 7 #include "gpu/command_buffer/service/gpu_service_test.h" | 7 #include "gpu/command_buffer/service/gpu_service_test.h" |
| 8 #include "gpu/command_buffer/service/mailbox_manager_impl.h" | 8 #include "gpu/command_buffer/service/mailbox_manager_impl.h" |
| 9 #include "gpu/command_buffer/service/mailbox_manager_sync.h" | 9 #include "gpu/command_buffer/service/mailbox_manager_sync.h" |
| 10 #include "gpu/command_buffer/service/texture_manager.h" | 10 #include "gpu/command_buffer/service/texture_manager.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "ui/gl/gl_context_stub.h" | 12 #include "ui/gl/gl_context_stub.h" |
| 13 #include "ui/gl/gl_mock.h" | 13 #include "ui/gl/gl_mock.h" |
| 14 #include "ui/gl/gl_surface_stub.h" | 14 #include "ui/gl/gl_surface_stub.h" |
| 15 | 15 |
| 16 namespace gpu { | 16 namespace gpu { |
| 17 namespace gles2 { | 17 namespace gles2 { |
| 18 | 18 |
| 19 using namespace ::testing; | 19 using namespace ::testing; |
| 20 | 20 |
| 21 static const SyncToken g_sync_token(gpu::CommandBufferNamespace::GPU_IO, | 21 static const SyncToken g_sync_token(gpu::CommandBufferNamespace::GPU_IO, |
| 22 0, |
| 22 123, | 23 123, |
| 23 0); | 24 0); |
| 24 | 25 |
| 25 class MailboxManagerTest : public GpuServiceTest { | 26 class MailboxManagerTest : public GpuServiceTest { |
| 26 public: | 27 public: |
| 27 MailboxManagerTest() {} | 28 MailboxManagerTest() {} |
| 28 ~MailboxManagerTest() override {} | 29 ~MailboxManagerTest() override {} |
| 29 | 30 |
| 30 protected: | 31 protected: |
| 31 void SetUp() override { | 32 void SetUp() override { |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 DestroyTexture(texture2); | 687 DestroyTexture(texture2); |
| 687 DestroyTexture(new_texture); | 688 DestroyTexture(new_texture); |
| 688 } | 689 } |
| 689 | 690 |
| 690 // TODO: Texture::level_infos_[][].size() | 691 // TODO: Texture::level_infos_[][].size() |
| 691 | 692 |
| 692 // TODO: unsupported targets and formats | 693 // TODO: unsupported targets and formats |
| 693 | 694 |
| 694 } // namespace gles2 | 695 } // namespace gles2 |
| 695 } // namespace gpu | 696 } // namespace gpu |
| OLD | NEW |