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