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 13namespace skgpu { 14 15class CommandBuffer; 16 17class Recording final { 18public: 19 Recording(sk_sp<CommandBuffer>); 20 ~Recording(); 21 22protected: 23private: 24 friend class Context; // for access to fCommandBuffer 25 26 sk_sp<CommandBuffer> fCommandBuffer; 27}; 28 29} // namespace skgpu 30 31#endif // skgpu_Recording_DEFINED 32