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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 621133003: gpu: Don't flush for future sync point generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « gpu/GLES2/extensions/CHROMIUM/CHROMIUM_sync_point.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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
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
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
OLDNEW
« no previous file with comments | « gpu/GLES2/extensions/CHROMIUM/CHROMIUM_sync_point.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698