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

Side by Side Diff: gpu/command_buffer/client/client_test_helper.h

Issue 12581004: Move InsertSyncPoint to GLES2Interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 9 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 | Annotate | Revision Log
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 // Helper classes for implementing gpu client side unit tests. 5 // Helper classes for implementing gpu client side unit tests.
6 6
7 #ifndef GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ 7 #ifndef GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_
8 #define GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ 8 #define GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_
9 9
10 #include "gpu/command_buffer/common/cmd_buffer_common.h" 10 #include "gpu/command_buffer/common/cmd_buffer_common.h"
(...skipping 20 matching lines...) Expand all
31 virtual State GetLastState() OVERRIDE; 31 virtual State GetLastState() OVERRIDE;
32 virtual int32 GetLastToken() OVERRIDE; 32 virtual int32 GetLastToken() OVERRIDE;
33 virtual State FlushSync(int32 put_offset, int32 last_known_get) OVERRIDE; 33 virtual State FlushSync(int32 put_offset, int32 last_known_get) OVERRIDE;
34 virtual void SetGetBuffer(int transfer_buffer_id) OVERRIDE; 34 virtual void SetGetBuffer(int transfer_buffer_id) OVERRIDE;
35 virtual void SetGetOffset(int32 get_offset) OVERRIDE; 35 virtual void SetGetOffset(int32 get_offset) OVERRIDE;
36 virtual Buffer CreateTransferBuffer(size_t size, int32* id) OVERRIDE; 36 virtual Buffer CreateTransferBuffer(size_t size, int32* id) OVERRIDE;
37 virtual Buffer GetTransferBuffer(int32 id) OVERRIDE; 37 virtual Buffer GetTransferBuffer(int32 id) OVERRIDE;
38 virtual void SetToken(int32 token) OVERRIDE; 38 virtual void SetToken(int32 token) OVERRIDE;
39 virtual void SetParseError(error::Error error) OVERRIDE; 39 virtual void SetParseError(error::Error error) OVERRIDE;
40 virtual void SetContextLostReason(error::ContextLostReason reason) OVERRIDE; 40 virtual void SetContextLostReason(error::ContextLostReason reason) OVERRIDE;
41 virtual uint32 InsertSyncPoint() OVERRIDE;
41 42
42 // Get's the Id of the next transfer buffer that will be returned 43 // Get's the Id of the next transfer buffer that will be returned
43 // by CreateTransferBuffer. This is useful for testing expected ids. 44 // by CreateTransferBuffer. This is useful for testing expected ids.
44 int32 GetNextFreeTransferBufferId(); 45 int32 GetNextFreeTransferBufferId();
45 46
46 void FlushHelper(int32 put_offset); 47 void FlushHelper(int32 put_offset);
47 void DestroyTransferBufferHelper(int32 id); 48 void DestroyTransferBufferHelper(int32 id);
48 49
49 virtual void OnFlush() = 0; 50 virtual void OnFlush() = 0;
50 51
(...skipping 26 matching lines...) Expand all
77 78
78 MOCK_METHOD1(Flush, void(int32 put_offset)); 79 MOCK_METHOD1(Flush, void(int32 put_offset));
79 80
80 void DelegateToFake(); 81 void DelegateToFake();
81 }; 82 };
82 83
83 } // namespace gpu 84 } // namespace gpu
84 85
85 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ 86 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_
86 87
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/client_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698