Edit

IABSD.fr/xenocara/lib/mesa/src/tool/pps/pps_counter.cc

Branch :

  • Show log

    Commit

  • Author : jsg
    Date : 2022-02-24 01:51:18
    Hash : 50b4ee55
    Message : Import Mesa 21.3.7

  • lib/mesa/src/tool/pps/pps_counter.cc
  • /*
     * Copyright © 2019-2020 Collabora, Ltd.
     * Author: Antonio Caggiano <antonio.caggiano@collabora.com>
     * Author: Rohan Garg <rohan.garg@collabora.com>
     * Author: Robert Beckett <bob.beckett@collabora.com>
     *
     * SPDX-License-Identifier: MIT
     */
    
    #include "pps_counter.h"
    
    #include <cassert>
    #include <cstring>
    
    #include "pps_algorithm.h"
    
    namespace pps
    {
    Counter::Counter(int32_t id, const std::string &name, int32_t group)
       : id {id}
       , name {name}
       , group {group}
    {
       assert(id >= 0 && "Invalid counter ID");
       assert(group >= 0 && "Invalid group ID");
    }
    
    bool Counter::operator==(const Counter &other) const
    {
       return id == other.id;
    }
    
    } // namespace pps