1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #include "device/vr/windows_mixed_reality/wrappers/wmr_logging.h"
5 
6 #include "base/logging.h"
7 #include "base/trace_event/common/trace_event_common.h"
8 #include "base/trace_event/trace_event.h"
9 #include "base/win/windows_types.h"
10 
11 namespace device {
12 namespace WMRLogging {
TraceError(WMRErrorLocation location)13 void TraceError(WMRErrorLocation location) {
14   TRACE_EVENT_INSTANT1("xr", "WMRComError", TRACE_EVENT_SCOPE_THREAD,
15                        "ErrorLocation", location);
16 }
17 
TraceError(WMRErrorLocation location,HRESULT hr)18 void TraceError(WMRErrorLocation location, HRESULT hr) {
19   TRACE_EVENT_INSTANT2("xr", "WMRComError", TRACE_EVENT_SCOPE_THREAD,
20                        "ErrorLocation", location, "hr", hr);
21 }
22 }  // namespace WMRLogging
23 }  // namespace device
24