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, | |
23 123, | 22 123, |
24 0); | 23 0); |
25 | 24 |
26 class MailboxManagerTest : public GpuServiceTest { | 25 class MailboxManagerTest : public GpuServiceTest { |
27 public: | 26 public: |
28 MailboxManagerTest() {} | 27 MailboxManagerTest() {} |
29 ~MailboxManagerTest() override {} | 28 ~MailboxManagerTest() override {} |
30 | 29 |
31 protected: | 30 protected: |
32 void SetUp() override { | 31 void SetUp() override { |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 DestroyTexture(texture2); | 686 DestroyTexture(texture2); |
688 DestroyTexture(new_texture); | 687 DestroyTexture(new_texture); |
689 } | 688 } |
690 | 689 |
691 // TODO: Texture::level_infos_[][].size() | 690 // TODO: Texture::level_infos_[][].size() |
692 | 691 |
693 // TODO: unsupported targets and formats | 692 // TODO: unsupported targets and formats |
694 | 693 |
695 } // namespace gles2 | 694 } // namespace gles2 |
696 } // namespace gpu | 695 } // namespace gpu |
OLD | NEW |