OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 <stdint.h> |
| 6 |
5 #include <queue> | 7 #include <queue> |
6 | 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "gpu/command_buffer/service/sync_point_manager.h" | 10 #include "gpu/command_buffer/service/sync_point_manager.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
10 | 12 |
11 namespace gpu { | 13 namespace gpu { |
12 | 14 |
13 class SyncPointManagerTest : public testing::Test { | 15 class SyncPointManagerTest : public testing::Test { |
14 public: | 16 public: |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 EXPECT_EQ(10, test_num); | 408 EXPECT_EQ(10, test_num); |
407 | 409 |
408 // Beginning order [4] should immediately trigger the release. | 410 // Beginning order [4] should immediately trigger the release. |
409 release_stream.BeginProcessing(); | 411 release_stream.BeginProcessing(); |
410 ASSERT_EQ(4u, release_stream.order_data->current_order_num()); | 412 ASSERT_EQ(4u, release_stream.order_data->current_order_num()); |
411 EXPECT_TRUE(release_stream.client->client_state()->IsFenceSyncReleased(1)); | 413 EXPECT_TRUE(release_stream.client->client_state()->IsFenceSyncReleased(1)); |
412 EXPECT_EQ(123, test_num); | 414 EXPECT_EQ(123, test_num); |
413 } | 415 } |
414 | 416 |
415 } // namespace gpu | 417 } // namespace gpu |
OLD | NEW |