mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-20 19:01:34 +00:00
This will allow easily adding new parameters to ObjectBase in the future (like an object generation). Bug: dawn:1451 Change-Id: I4fc81384987cdd9c33e672d15fcd960dbf0367a0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/93144 Reviewed-by: Loko Kung <lokokung@google.com> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Auto-Submit: Corentin Wallez <cwallez@chromium.org>
27 lines
871 B
C++
27 lines
871 B
C++
// Copyright 2022 The Dawn Authors
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#include "dawn/wire/client/ObjectBase.h"
|
|
|
|
namespace dawn::wire::client {
|
|
|
|
ObjectBase::ObjectBase(const ObjectBaseParams& params)
|
|
: client(params.client), refcount(1), id(params.id) {}
|
|
|
|
ObjectBase::~ObjectBase() {
|
|
RemoveFromList();
|
|
}
|
|
|
|
} // namespace dawn::wire::client
|