1 /* 2 * Copyright 2021 Google LLC 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef skgpu_GpuWorkSubmission_DEFINED 9 #define skgpu_GpuWorkSubmission_DEFINED 10 11 namespace skgpu { 12 class Gpu; 13 14 class GpuWorkSubmission { 15 public: 16 virtual ~GpuWorkSubmission() = default; 17 18 virtual bool isFinished() = 0; 19 virtual void waitUntilFinished(const Gpu*) = 0; 20 21 protected: 22 GpuWorkSubmission() = default; 23 24 private: 25 }; 26 27 } // namespace skgpu 28 29 #endif // skgpu_GpuWorkSubmission_DEFINED 30