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