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

Unified Diff: gpu/command_buffer/client/client_test_helper.h

Issue 24925002: Move Insert/SignalSyncPoint() to GpuControl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
Index: gpu/command_buffer/client/client_test_helper.h
diff --git a/gpu/command_buffer/client/client_test_helper.h b/gpu/command_buffer/client/client_test_helper.h
index e3c35f3bc5436fbc5d5ad7261d99d95c227ba106..db3ddd472f490e4f84db1c550a701cb02efd2abe 100644
--- a/gpu/command_buffer/client/client_test_helper.h
+++ b/gpu/command_buffer/client/client_test_helper.h
@@ -39,7 +39,6 @@ class MockCommandBufferBase : public CommandBuffer {
virtual void SetToken(int32 token) OVERRIDE;
virtual void SetParseError(error::Error error) OVERRIDE;
virtual void SetContextLostReason(error::ContextLostReason reason) OVERRIDE;
- virtual uint32 InsertSyncPoint() OVERRIDE;
// Get's the Id of the next transfer buffer that will be returned
// by CreateTransferBuffer. This is useful for testing expected ids.
@@ -94,6 +93,9 @@ class MockClientGpuControl : public GpuControl {
unsigned internalformat,
int32* id));
MOCK_METHOD1(DestroyGpuMemoryBuffer, void(int32 id));
+ MOCK_METHOD0(InsertSyncPoint, uint32());
+ MOCK_METHOD2(SignalSyncPoint, void(uint32 id,
+ const base::Closure& callback));
private:
DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl);

Powered by Google App Engine
This is Rietveld 408576698