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_Recording_DEFINED 9 #define skgpu_Recording_DEFINED 10 11 #include "include/core/SkRefCnt.h" 12 13 namespace skgpu { 14 15 class CommandBuffer; 16 17 class Recording final { 18 public: 19 ~Recording(); 20 21 protected: 22 private: 23 friend class Context; // for access fCommandBuffer 24 friend class Recorder; // for ctor 25 Recording(sk_sp<CommandBuffer>); 26 27 sk_sp<CommandBuffer> fCommandBuffer; 28 }; 29 30 } // namespace skgpu 31 32 #endif // skgpu_Recording_DEFINED 33