// Copyright 2019 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/40285824): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers #endif // Contains the definition of ValueValidator for the uses in *_cmd_validation.h #ifndef GPU_COMMAND_BUFFER_SERVICE_VALUE_VALIDATOR_H_ #define GPU_COMMAND_BUFFER_SERVICE_VALUE_VALIDATOR_H_ #include <vector> #include "base/containers/contains.h" #include "base/ranges/algorithm.h" namespace gpu { // ValueValidator returns true if a value is valid. template <typename T> class ValueValidator { … }; } // namespace gpu #endif // GPU_COMMAND_BUFFER_SERVICE_VALUE_VALIDATOR_H_