| 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/command_buffer/client/cmd_buffer_helper.h" | 8 #include "gpu/command_buffer/client/cmd_buffer_helper.h" |
| 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 10 #include "gpu/gpu_export.h" | 10 #include "gpu/gpu_export.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 | |
| 104 private: | 99 private: |
| 105 DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper); | 100 DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper); |
| 106 }; | 101 }; |
| 107 | 102 |
| 108 } // namespace gles2 | 103 } // namespace gles2 |
| 109 } // namespace gpu | 104 } // namespace gpu |
| 110 | 105 |
| 111 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ | 106 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ |
| 112 | 107 |
| OLD | NEW |