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

Unified Diff: gpu/command_buffer/service/gpu_scheduler.cc

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: [WIP] Review comments follow-up Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gpu_scheduler.cc
diff --git a/gpu/command_buffer/service/gpu_scheduler.cc b/gpu/command_buffer/service/gpu_scheduler.cc
index a40e98998424308ac529b1c23c6f0e2192fd76b8..cabf01bbc2ce56d26c87f0d7c065d01649ebf6d2 100644
--- a/gpu/command_buffer/service/gpu_scheduler.cc
+++ b/gpu/command_buffer/service/gpu_scheduler.cc
@@ -186,6 +186,10 @@ void GpuScheduler::set_token(int32 token) {
command_buffer_->SetToken(token);
}
+void GpuScheduler::set_serial(uint32 serial) {
+ command_buffer_->SetSerial(serial);
+}
+
bool GpuScheduler::SetGetBuffer(int32 transfer_buffer_id) {
Buffer ring_buffer = command_buffer_->GetTransferBuffer(transfer_buffer_id);
if (!ring_buffer.ptr) {

Powered by Google App Engine
This is Rietveld 408576698