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

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: Do not allow HIGH priority contexts by unprivileged clients. Created 3 years, 8 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/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 af0c167aff22de0f5344f5a3b3160932633d306a..2e3b734d21814d316926060b36e8bde3d5a2aaa1 100644
--- a/gpu/ipc/client/gpu_channel_host.cc
+++ b/gpu/ipc/client/gpu_channel_host.cc
@@ -70,7 +70,6 @@ GpuChannelHost::GpuChannelHost(
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,
@@ -245,13 +244,6 @@ int32_t GpuChannelHost::GenerateRouteID() {
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.

Powered by Google App Engine
This is Rietveld 408576698