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

Unified Diff: gpu/ipc/service/gpu_command_stream.h

Issue 2440093003: WIP GPU scheduler + delayed activation / tile draw
Patch Set: SignalSyncToken -> IsFenceSyncReleased Created 4 years 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/service/gpu_command_buffer_stub.cc ('k') | gpu/ipc/service/gpu_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_command_stream.h
diff --git a/gpu/ipc/service/gpu_command_stream.h b/gpu/ipc/service/gpu_command_stream.h
new file mode 100644
index 0000000000000000000000000000000000000000..0e687ede05cff38c8bbd8cf512c8b314baed45ec
--- /dev/null
+++ b/gpu/ipc/service/gpu_command_stream.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef GPU_IPC_SERVICE_GPU_COMMAND_STREAM_H_
+#define GPU_IPC_SERVICE_GPU_COMMAND_STREAM_H_
+
+#include "gpu/gpu_export.h"
+#include "gpu/ipc/common/gpu_stream_constants.h"
+
+namespace gpu {
+
+// GpuCommandStream is a stream of commands from a client. Streams are
+// independent of each other and must synchronize / share resources explicitly.
+// GpuScheduler cooperatively schedules streams from multiple clients.
+class GPU_EXPORT GpuCommandStream {
+ public:
+ // Run commands in this stream. The stream should check
+ // GpuScheduler::ShouldYield periodically and yield accordingly. Called on
+ // main thread.
+ virtual void Run() = 0;
+
+ protected:
+ virtual ~GpuCommandStream() {}
+};
+
+}
+
+#endif // GPU_IPC_SERVICE_GPU_COMMAND_STREAM_H_
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.cc ('k') | gpu/ipc/service/gpu_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698