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

Unified Diff: gpu/command_buffer/service/mocks.cc

Issue 7253052: Execute all GL commands up to the put offset reported by a flush. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/mocks.h ('k') | gpu/demos/framework/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/mocks.cc
===================================================================
--- gpu/command_buffer/service/mocks.cc (revision 92876)
+++ gpu/command_buffer/service/mocks.cc (working copy)
@@ -27,25 +27,6 @@
engine_->set_token(args->token);
}
-SpecializedDoCommandAsyncAPIMock::SpecializedDoCommandAsyncAPIMock() {}
-
-SpecializedDoCommandAsyncAPIMock::~SpecializedDoCommandAsyncAPIMock() {}
-
-error::Error SpecializedDoCommandAsyncAPIMock::DoCommand(
- unsigned int command,
- unsigned int arg_count,
- const void* cmd_data) {
- if (command == kTestQuantumCommand) {
- // Surpass the GpuScheduler scheduling quantum.
- base::TimeTicks start_time = base::TimeTicks::Now();
- while ((base::TimeTicks::Now() - start_time).InMicroseconds() <
- GpuScheduler::kMinimumSchedulerQuantumMicros) {
- base::PlatformThread::Sleep(1);
- }
- }
- return AsyncAPIMock::DoCommand(command, arg_count, cmd_data);
-}
-
namespace gles2 {
MockShaderTranslator::MockShaderTranslator() {}
« no previous file with comments | « gpu/command_buffer/service/mocks.h ('k') | gpu/demos/framework/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698