• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2017 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 // LoggingAnnotator.h: DebugAnnotator implementing logging
7 //
8 
9 #ifndef LIBANGLE_LOGGINGANNOTATOR_H_
10 #define LIBANGLE_LOGGINGANNOTATOR_H_
11 
12 #include "common/debug.h"
13 
14 namespace angle
15 {
16 
17 class LoggingAnnotator : public gl::DebugAnnotator
18 {
19   public:
LoggingAnnotator()20     LoggingAnnotator() {}
~LoggingAnnotator()21     ~LoggingAnnotator() override {}
22     void beginEvent(const char *eventName, const char *eventMessage) override;
23     void endEvent(const char *eventName) override;
24     void setMarker(const char *markerName) override;
25     bool getStatus() override;
26     void logMessage(const gl::LogMessage &msg) const override;
27 };
28 
29 }  // namespace angle
30 
31 #endif  // LIBANGLE_LOGGINGANNOTATOR_H_
32