| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Tests for the QueryTracker. | 5 // Tests for the QueryTracker. |
| 6 | 6 |
| 7 #include "gpu/command_buffer/client/query_tracker.h" | 7 #include "gpu/command_buffer/client/query_tracker.h" |
| 8 | 8 |
| 9 #include <GLES2/gl2ext.h> | 9 #include <GLES2/gl2ext.h> |
| 10 | 10 |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // Simulate GPU process marking it as available. | 283 // Simulate GPU process marking it as available. |
| 284 QuerySync* sync = GetSync(query); | 284 QuerySync* sync = GetSync(query); |
| 285 sync->process_count = query->submit_count(); | 285 sync->process_count = query->submit_count(); |
| 286 sync->result = kResult; | 286 sync->result = kResult; |
| 287 | 287 |
| 288 // Check FreeCompletedQueries. | 288 // Check FreeCompletedQueries. |
| 289 query_tracker_->FreeCompletedQueries(); | 289 query_tracker_->FreeCompletedQueries(); |
| 290 EXPECT_EQ(use_count_before_remove - 1, GetBucketUsedCount(bucket)); | 290 EXPECT_EQ(use_count_before_remove - 1, GetBucketUsedCount(bucket)); |
| 291 } | 291 } |
| 292 } | 292 } |
| 293 |
| 293 } // namespace gles2 | 294 } // namespace gles2 |
| 294 } // namespace gpu | 295 } // namespace gpu |
| 295 | 296 |
| 296 | 297 |
| OLD | NEW |