1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
gpu / command_buffer / client / logging.cc [blame]
// Copyright 2018 The Chromium Authors
// 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