OLD | NEW |
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 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ |
6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ |
7 | 7 |
8 #include "../../gpu_export.h" | 8 #include "../../gpu_export.h" |
9 #include "../client/cmd_buffer_helper.h" | 9 #include "../client/cmd_buffer_helper.h" |
10 #include "../common/gles2_cmd_format.h" | 10 #include "../common/gles2_cmd_format.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void GetUniformLocationBucket( | 89 void GetUniformLocationBucket( |
90 GLuint program, uint32 name_bucket_id, | 90 GLuint program, uint32 name_bucket_id, |
91 uint32 location_shm_id, uint32 location_shm_offset) { | 91 uint32 location_shm_id, uint32 location_shm_offset) { |
92 gles2::cmds::GetUniformLocationBucket* c = | 92 gles2::cmds::GetUniformLocationBucket* c = |
93 GetCmdSpace<gles2::cmds::GetUniformLocationBucket>(); | 93 GetCmdSpace<gles2::cmds::GetUniformLocationBucket>(); |
94 if (c) { | 94 if (c) { |
95 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset); | 95 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset); |
96 } | 96 } |
97 } | 97 } |
98 | 98 |
| 99 GLuint InsertSyncPointCHROMIUM() { |
| 100 CommandBufferHelper::Flush(); |
| 101 return command_buffer()->InsertSyncPoint(); |
| 102 } |
| 103 |
99 private: | 104 private: |
100 DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper); | 105 DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper); |
101 }; | 106 }; |
102 | 107 |
103 } // namespace gles2 | 108 } // namespace gles2 |
104 } // namespace gpu | 109 } // namespace gpu |
105 | 110 |
106 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ | 111 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ |
107 | 112 |
OLD | NEW |