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

Unified Diff: gpu/ipc/client/gpu_channel_host.cc

Issue 2881813002: Revert of gpu: GPU service scheduler. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.h ('k') | gpu/ipc/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/gpu_channel_host.cc
diff --git a/gpu/ipc/client/gpu_channel_host.cc b/gpu/ipc/client/gpu_channel_host.cc
index 50f9e78c2082deae9aa3069d65053a1b15e81747..aa22cdc6ab475c83b43122296d83ccbb9c1a9d60 100644
--- a/gpu/ipc/client/gpu_channel_host.cc
+++ b/gpu/ipc/client/gpu_channel_host.cc
@@ -70,6 +70,7 @@
gpu_memory_buffer_manager_(gpu_memory_buffer_manager) {
next_image_id_.GetNext();
next_route_id_.GetNext();
+ next_stream_id_.GetNext();
}
void GpuChannelHost::Connect(const IPC::ChannelHandle& channel_handle,
@@ -244,6 +245,13 @@
return next_route_id_.GetNext();
}
+int32_t GpuChannelHost::GenerateStreamID() {
+ const int32_t stream_id = next_stream_id_.GetNext();
+ DCHECK_NE(gpu::GPU_STREAM_INVALID, stream_id);
+ DCHECK_NE(gpu::GPU_STREAM_DEFAULT, stream_id);
+ return stream_id;
+}
+
uint32_t GpuChannelHost::ValidateFlushIDReachedServer(int32_t stream_id,
bool force_validate) {
// Store what flush ids we will be validating for all streams.
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.h ('k') | gpu/ipc/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698