chromium/gpu/command_buffer/client/share_group.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "gpu/command_buffer/client/share_group.h"

#include <stdint.h>

#include <memory>
#include <vector>

#include "base/containers/stack.h"
#include "base/logging.h"
#include "base/synchronization/lock.h"
#include "gpu/command_buffer/client/gles2_cmd_helper.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "gpu/command_buffer/client/program_info_manager.h"
#include "gpu/command_buffer/common/id_allocator.h"

namespace gpu {
namespace gles2 {

ShareGroupContextData::IdHandlerData::IdHandlerData() :{}
ShareGroupContextData::IdHandlerData::~IdHandlerData() = default;

static_assert;

// The standard id handler.
class IdHandler : public IdHandlerInterface {};

// An id handler that requires Gen before Bind.
class StrictIdHandler : public IdHandlerInterface {};

// An id handler for ids that are never reused.
class NonReusedIdHandler : public IdHandlerInterface {};

class RangeIdHandler : public RangeIdHandlerInterface {};

ShareGroup::ShareGroup(bool bind_generates_resource, uint64_t tracing_guid)
    :{}

void ShareGroup::Lose() {}

bool ShareGroup::IsLost() const {}

void ShareGroup::SetProgramInfoManagerForTesting(ProgramInfoManager* manager) {}

ShareGroup::~ShareGroup() = default;

}  // namespace gles2
}  // namespace gpu