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

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

Issue 2093533002: Add a call to DescheduleUntilFinishedCHROMIUM to WebGL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp96_new_deschedule
Patch Set: Fix a DCHECK. Created 4 years, 6 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 | « no previous file | third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | 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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 SyncToken sync_token(CommandBufferNamespace::GPU_IO, 0, 902 SyncToken sync_token(CommandBufferNamespace::GPU_IO, 0,
903 command_buffer_id_, release); 903 command_buffer_id_, release);
904 mailbox_manager->PushTextureUpdates(sync_token); 904 mailbox_manager->PushTextureUpdates(sync_token);
905 } 905 }
906 906
907 sync_point_client_->ReleaseFenceSync(release); 907 sync_point_client_->ReleaseFenceSync(release);
908 } 908 }
909 909
910 void GpuCommandBufferStub::OnDescheduleUntilFinished() { 910 void GpuCommandBufferStub::OnDescheduleUntilFinished() {
911 DCHECK(executor_->scheduled()); 911 DCHECK(executor_->scheduled());
912 DCHECK(executor_->HasMoreIdleWork()); 912 DCHECK(executor_->HasPollingWork());
913 913
914 executor_->SetScheduled(false); 914 executor_->SetScheduled(false);
915 channel_->OnStreamRescheduled(stream_id_, false); 915 channel_->OnStreamRescheduled(stream_id_, false);
916 } 916 }
917 917
918 void GpuCommandBufferStub::OnRescheduleAfterFinished() { 918 void GpuCommandBufferStub::OnRescheduleAfterFinished() {
919 DCHECK(!executor_->scheduled()); 919 DCHECK(!executor_->scheduled());
920 920
921 executor_->SetScheduled(true); 921 executor_->SetScheduled(true);
922 channel_->OnStreamRescheduled(stream_id_, true); 922 channel_->OnStreamRescheduled(stream_id_, true);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, params)); 1116 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, params));
1117 } 1117 }
1118 1118
1119 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, 1119 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase,
1120 base::TimeDelta interval) { 1120 base::TimeDelta interval) {
1121 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, 1121 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase,
1122 interval)); 1122 interval));
1123 } 1123 }
1124 1124
1125 } // namespace gpu 1125 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698