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

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

Issue 7458010: Revert 93066 - Execute all GL commands up to the put offset reported by a each flush.This means g... (Closed) Base URL: svn://svn.chromium.org/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/gpu_scheduler_unittest.cc ('k') | gpu/command_buffer/service/mocks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/mocks.h
===================================================================
--- gpu/command_buffer/service/mocks.h (revision 93137)
+++ gpu/command_buffer/service/mocks.h (working copy)
@@ -69,6 +69,20 @@
CommandBufferEngine *engine_;
};
+// Allows specialized behavior per command in DoCommand.
+class SpecializedDoCommandAsyncAPIMock : public AsyncAPIMock {
+ public:
+ // Cause DoCommand to sleep more than the GpuScheduler time quantum.
+ static const unsigned int kTestQuantumCommand = 333;
+
+ SpecializedDoCommandAsyncAPIMock();
+ virtual ~SpecializedDoCommandAsyncAPIMock();
+
+ virtual error::Error DoCommand(unsigned int command,
+ unsigned int arg_count,
+ const void* cmd_data);
+};
+
namespace gles2 {
class MockShaderTranslator : public ShaderTranslatorInterface {
« no previous file with comments | « gpu/command_buffer/service/gpu_scheduler_unittest.cc ('k') | gpu/command_buffer/service/mocks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698