summaryrefslogtreecommitdiffstats
path: root/src/core/compositor/compositor_resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/compositor/compositor_resource.h')
-rw-r--r--src/core/compositor/compositor_resource.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/compositor/compositor_resource.h b/src/core/compositor/compositor_resource.h
index c40ce3d5..f7df2ab5 100644
--- a/src/core/compositor/compositor_resource.h
+++ b/src/core/compositor/compositor_resource.h
@@ -71,8 +71,9 @@ using CompositorResourceId = quint32;
//
// - A committed resource's fields may not be updated and are safe to use from
// other threads without synchronization (unless noted otherwise).
-struct CompositorResource : viz::TransferableResource
+class CompositorResource : public viz::TransferableResource
{
+public:
CompositorResource(const viz::TransferableResource &tr) : viz::TransferableResource(tr) {}
// Counts the number of times this resource has been encountered in