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

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

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/command_buffer_proxy_impl.cc ('k') | gpu/ipc/client/gpu_channel_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/gpu_channel_host.h
diff --git a/gpu/ipc/client/gpu_channel_host.h b/gpu/ipc/client/gpu_channel_host.h
index 3fba6d5c49d2da5f8d7bd5c0373223e6e342a66c..88733e799919a9d2875f86530b20b8345adb3396 100644
--- a/gpu/ipc/client/gpu_channel_host.h
+++ b/gpu/ipc/client/gpu_channel_host.h
@@ -20,6 +20,7 @@
#include "base/synchronization/lock.h"
#include "gpu/config/gpu_info.h"
#include "gpu/gpu_export.h"
+#include "gpu/ipc/common/gpu_stream_constants.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_sync_channel.h"
#include "ipc/message_filter.h"
@@ -149,6 +150,9 @@
// Generate a route ID guaranteed to be unique for this channel.
int32_t GenerateRouteID();
+ // Generate a stream ID guaranteed to be unique for this channel.
+ int32_t GenerateStreamID();
+
// Sends a synchronous nop to the server which validate that all previous IPC
// messages have been received. Once the synchronous nop has been sent to the
// server all previous flushes will all be marked as validated, including
@@ -246,6 +250,7 @@
// except:
// - |next_image_id_|, atomic type
// - |next_route_id_|, atomic type
+ // - |next_stream_id_|, atomic type
// - |channel_| and |stream_flush_info_|, protected by |context_lock_|
GpuChannelHostFactory* const factory_;
@@ -264,6 +269,9 @@
// Route IDs are allocated in sequence.
base::AtomicSequenceNumber next_route_id_;
+
+ // Stream IDs are allocated in sequence.
+ base::AtomicSequenceNumber next_stream_id_;
// Protects channel_ and stream_flush_info_.
mutable base::Lock context_lock_;
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | gpu/ipc/client/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698