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

Side by Side Diff: gpu/ipc/service/gpu_command_buffer_stub.cc

Issue 1933473002: Added more strict checks for fence sync counters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add thread_checker header Created 4 years, 7 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/ipc/client/command_buffer_proxy_impl.cc ('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 #include "gpu/ipc/service/gpu_command_buffer_stub.h" 5 #include "gpu/ipc/service/gpu_command_buffer_stub.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 return; 1026 return;
1027 } 1027 }
1028 1028
1029 scoped_refptr<gl::GLImage> image = channel()->CreateImageForGpuMemoryBuffer( 1029 scoped_refptr<gl::GLImage> image = channel()->CreateImageForGpuMemoryBuffer(
1030 handle, size, format, internalformat); 1030 handle, size, format, internalformat);
1031 if (!image.get()) 1031 if (!image.get())
1032 return; 1032 return;
1033 1033
1034 image_manager->AddImage(image.get(), id); 1034 image_manager->AddImage(image.get(), id);
1035 if (image_release_count) { 1035 if (image_release_count) {
1036 DCHECK_EQ(image_release_count,
1037 sync_point_client_->client_state()->fence_sync_release() + 1);
1036 sync_point_client_->ReleaseFenceSync(image_release_count); 1038 sync_point_client_->ReleaseFenceSync(image_release_count);
1037 } 1039 }
1038 } 1040 }
1039 1041
1040 void GpuCommandBufferStub::OnDestroyImage(int32_t id) { 1042 void GpuCommandBufferStub::OnDestroyImage(int32_t id) {
1041 TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnDestroyImage"); 1043 TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnDestroyImage");
1042 1044
1043 if (!decoder_) 1045 if (!decoder_)
1044 return; 1046 return;
1045 1047
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 result)); 1135 result));
1134 } 1136 }
1135 1137
1136 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, 1138 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase,
1137 base::TimeDelta interval) { 1139 base::TimeDelta interval) {
1138 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, 1140 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase,
1139 interval)); 1141 interval));
1140 } 1142 }
1141 1143
1142 } // namespace gpu 1144 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698