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

Side by Side Diff: gpu/command_buffer/client/query_tracker_unittest.cc

Issue 1233233002: Added support for TimeStamp queries using QueryCounterEXT. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed GetQueryivEXT test with QueryCounter Created 5 years, 5 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
« no previous file with comments | « gpu/command_buffer/client/query_tracker.cc ('k') | gpu/command_buffer/cmd_buffer_functions.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/query_tracker.cc ('k') | gpu/command_buffer/cmd_buffer_functions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698