1 //
2 // Copyright 2021 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 // RenderDoc:
7 //   Connection to renderdoc for capturing tests through its API.
8 //
9 
10 #ifndef TESTS_TEST_UTILS_RENDERDOC_H_
11 #define TESTS_TEST_UTILS_RENDERDOC_H_
12 
13 #include "common/system_utils.h"
14 
15 class RenderDoc
16 {
17   public:
18     RenderDoc();
19     ~RenderDoc();
20 
21     void attach();
22     void startFrame();
23     void endFrame();
24 
25   private:
26     angle::Library *mRenderDocModule;
27     void *mApi;
28 };
29 
30 #endif  // TESTS_TEST_UTILS_RENDERDOC_H_
31