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. |