1// 2// Copyright 2021 The ANGLE Project Authors. All rights reserved. 3// Use of this source code is governed by a BSD-style license that can be 4// found in the LICENSE file. 5// 6// CLObject.cpp: Implements the cl::Object class. 7 8#include "libANGLE/CLObject.h" 9 10namespace cl 11{ 12 13Object::Object() : mRefCount(1u) {} 14 15Object::~Object() 16{ 17 if (mRefCount != 0u) 18 { 19 WARN() << "Deleted object with references"; 20 } 21} 22 23} // namespace cl 24 25