Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: gpu/command_buffer/service/mailbox_manager_unittest.cc

Issue 1548443002: Introducing gpu::CommandBufferId as a distinct, IdType<...>-based type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@type-safe-save-package-id-self-contained
Patch Set: Rebasing... Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/macros.h" 5 #include "base/macros.h"
6 #include "gpu/command_buffer/common/sync_token.h" 6 #include "gpu/command_buffer/common/sync_token.h"
7 #include "gpu/command_buffer/service/feature_info.h" 7 #include "gpu/command_buffer/service/feature_info.h"
8 #include "gpu/command_buffer/service/gpu_service_test.h" 8 #include "gpu/command_buffer/service/gpu_service_test.h"
9 #include "gpu/command_buffer/service/mailbox_manager_impl.h" 9 #include "gpu/command_buffer/service/mailbox_manager_impl.h"
10 #include "gpu/command_buffer/service/mailbox_manager_sync.h" 10 #include "gpu/command_buffer/service/mailbox_manager_sync.h"
11 #include "gpu/command_buffer/service/texture_manager.h" 11 #include "gpu/command_buffer/service/texture_manager.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "ui/gl/gl_context_stub.h" 13 #include "ui/gl/gl_context_stub.h"
14 #include "ui/gl/gl_mock.h" 14 #include "ui/gl/gl_mock.h"
15 #include "ui/gl/gl_surface_stub.h" 15 #include "ui/gl/gl_surface_stub.h"
16 16
17 namespace gpu { 17 namespace gpu {
18 namespace gles2 { 18 namespace gles2 {
19 19
20 using namespace ::testing; 20 using namespace ::testing;
21 21
22 static const SyncToken g_sync_token(gpu::CommandBufferNamespace::GPU_IO, 22 static const SyncToken g_sync_token(gpu::CommandBufferNamespace::GPU_IO,
23 0, 23 0,
24 123, 24 gpu::CommandBufferId::FromUnsafeValue(123),
25 0); 25 0);
26 26
27 class MailboxManagerTest : public GpuServiceTest { 27 class MailboxManagerTest : public GpuServiceTest {
28 public: 28 public:
29 MailboxManagerTest() {} 29 MailboxManagerTest() {}
30 ~MailboxManagerTest() override {} 30 ~MailboxManagerTest() override {}
31 31
32 protected: 32 protected:
33 void SetUp() override { 33 void SetUp() override {
34 GpuServiceTest::SetUp(); 34 GpuServiceTest::SetUp();
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 DestroyTexture(texture2); 688 DestroyTexture(texture2);
689 DestroyTexture(new_texture); 689 DestroyTexture(new_texture);
690 } 690 }
691 691
692 // TODO: Texture::level_infos_[][].size() 692 // TODO: Texture::level_infos_[][].size()
693 693
694 // TODO: unsupported targets and formats 694 // TODO: unsupported targets and formats
695 695
696 } // namespace gles2 696 } // namespace gles2
697 } // namespace gpu 697 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | gpu/command_buffer/service/sync_point_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698