| 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 // A class to emulate GLES2 over command buffers. | 5 // A class to emulate GLES2 over command buffers. |
| 6 | 6 |
| 7 #include "gpu/command_buffer/client/gles2_implementation.h" | 7 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 8 | 8 |
| 9 #include <GLES2/gl2ext.h> | 9 #include <GLES2/gl2ext.h> |
| 10 #include <GLES2/gl2extchromium.h> | 10 #include <GLES2/gl2extchromium.h> |
| (...skipping 3964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3975 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 3975 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 3976 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glInsertSyncPointCHROMIUM"); | 3976 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glInsertSyncPointCHROMIUM"); |
| 3977 helper_->CommandBufferHelper::Flush(); | 3977 helper_->CommandBufferHelper::Flush(); |
| 3978 return gpu_control_->InsertSyncPoint(); | 3978 return gpu_control_->InsertSyncPoint(); |
| 3979 } | 3979 } |
| 3980 | 3980 |
| 3981 GLuint GLES2Implementation::InsertFutureSyncPointCHROMIUM() { | 3981 GLuint GLES2Implementation::InsertFutureSyncPointCHROMIUM() { |
| 3982 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 3982 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 3983 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glInsertFutureSyncPointCHROMIUM"); | 3983 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glInsertFutureSyncPointCHROMIUM"); |
| 3984 DCHECK(capabilities_.future_sync_points); | 3984 DCHECK(capabilities_.future_sync_points); |
| 3985 helper_->CommandBufferHelper::Flush(); | |
| 3986 return gpu_control_->InsertFutureSyncPoint(); | 3985 return gpu_control_->InsertFutureSyncPoint(); |
| 3987 } | 3986 } |
| 3988 | 3987 |
| 3989 void GLES2Implementation::RetireSyncPointCHROMIUM(GLuint sync_point) { | 3988 void GLES2Implementation::RetireSyncPointCHROMIUM(GLuint sync_point) { |
| 3990 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 3989 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 3991 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glRetireSyncPointCHROMIUM(" | 3990 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glRetireSyncPointCHROMIUM(" |
| 3992 << sync_point << ")"); | 3991 << sync_point << ")"); |
| 3993 DCHECK(capabilities_.future_sync_points); | 3992 DCHECK(capabilities_.future_sync_points); |
| 3994 helper_->CommandBufferHelper::Flush(); | 3993 helper_->CommandBufferHelper::Flush(); |
| 3995 gpu_control_->RetireSyncPoint(sync_point); | 3994 gpu_control_->RetireSyncPoint(sync_point); |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4263 return true; | 4262 return true; |
| 4264 } | 4263 } |
| 4265 | 4264 |
| 4266 // Include the auto-generated part of this file. We split this because it means | 4265 // Include the auto-generated part of this file. We split this because it means |
| 4267 // we can easily edit the non-auto generated parts right here in this file | 4266 // we can easily edit the non-auto generated parts right here in this file |
| 4268 // instead of having to edit some template or the code generator. | 4267 // instead of having to edit some template or the code generator. |
| 4269 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 4268 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
| 4270 | 4269 |
| 4271 } // namespace gles2 | 4270 } // namespace gles2 |
| 4272 } // namespace gpu | 4271 } // namespace gpu |
| OLD | NEW |