1// Copyright (c) 2013 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
5#ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_H_
6#define GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_H_
7
8#include "base/compiler_specific.h"
9#include "gles2_impl_export.h"
10#include "gpu/command_buffer/client/gles2_interface.h"
11
12namespace gpu {
13namespace gles2 {
14
15// GLES2TraceImplementation is calls TRACE for every GL call.
16class GLES2_IMPL_EXPORT GLES2TraceImplementation
17    : NON_EXPORTED_BASE(public GLES2Interface) {
18 public:
19  explicit GLES2TraceImplementation(GLES2Interface* gl);
20  virtual ~GLES2TraceImplementation();
21
22  // Include the auto-generated part of this class. We split this because
23  // it means we can easily edit the non-auto generated parts right here in
24  // this file instead of having to edit some template or the code generator.
25  #include "gpu/command_buffer/client/gles2_trace_implementation_autogen.h"
26
27 private:
28  GLES2Interface* gl_;
29};
30
31}  // namespace gles2
32}  // namespace gpu
33
34#endif  // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_H_
35
36