9d74c28e82
This also hides the ctors for the respective classes so you can't just arbitrarily make one outside of the factories. Change-Id: If31ac8ea9b54c9e10c162081251e77d7e9d07147 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/478956 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
33 lines
590 B
C++
33 lines
590 B
C++
/*
|
|
* Copyright 2021 Google LLC
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef skgpu_Recording_DEFINED
|
|
#define skgpu_Recording_DEFINED
|
|
|
|
#include "include/core/SkRefCnt.h"
|
|
|
|
namespace skgpu {
|
|
|
|
class CommandBuffer;
|
|
|
|
class Recording final {
|
|
public:
|
|
~Recording();
|
|
|
|
protected:
|
|
private:
|
|
friend class Context; // for access fCommandBuffer
|
|
friend class Recorder; // for ctor
|
|
Recording(sk_sp<CommandBuffer>);
|
|
|
|
sk_sp<CommandBuffer> fCommandBuffer;
|
|
};
|
|
|
|
} // namespace skgpu
|
|
|
|
#endif // skgpu_Recording_DEFINED
|