1 //
2 // Copyright 2015 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // DebugAnnotator9.h: D3D9 helpers for adding trace annotations.
7 //
8 
9 #include "libANGLE/renderer/d3d/d3d9/DebugAnnotator9.h"
10 
11 #include "common/platform.h"
12 
13 namespace rx
14 {
15 
beginEvent(const wchar_t * eventName)16 void DebugAnnotator9::beginEvent(const wchar_t *eventName)
17 {
18     D3DPERF_BeginEvent(0, eventName);
19 }
20 
endEvent()21 void DebugAnnotator9::endEvent()
22 {
23     D3DPERF_EndEvent();
24 }
25 
setMarker(const wchar_t * markerName)26 void DebugAnnotator9::setMarker(const wchar_t *markerName)
27 {
28     D3DPERF_SetMarker(0, markerName);
29 }
30 
getStatus()31 bool DebugAnnotator9::getStatus()
32 {
33     return !!D3DPERF_GetStatus();
34 }
35 
36 }
37