blob: c92dbf6f733882de8660aedd0fd48f750b67f60b [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gpu/command_buffer/client/logging.h"
#if defined(GPU_CLIENT_DEBUG)
#include "base/command_line.h"
#include "gpu/command_buffer/client/gpu_switches.h"
#endif // defined(GPU_CLIENT_DEBUG)
namespace gpu {
LogSettings::LogSettings() : enabled_(false) {
GPU_CLIENT_LOG_CODE_BLOCK({
enabled_ = base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableGPUClientLogging);
});
}
LogSettings::~LogSettings() = default;
} // namespace gpu