10469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy/*
20469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy * Copyright 2011, The Android Open Source Project
30469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy *
40469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy * Licensed under the Apache License, Version 2.0 (the "License");
50469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy * you may not use this file except in compliance with the License.
60469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy * You may obtain a copy of the License at
70469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy *
80469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy *     http://www.apache.org/licenses/LICENSE-2.0
90469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy *
100469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy * Unless required by applicable law or agreed to in writing, software
110469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy * distributed under the License is distributed on an "AS IS" BASIS,
120469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
130469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy * See the License for the specific language governing permissions and
140469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy * limitations under the License.
150469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy *
160469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy * This file declares the API provided by the glestrace library.
170469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy */
180469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy
190469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy#ifndef _GLES_TRACE_H_
200469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy#define _GLES_TRACE_H_
210469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy
220469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy#include "hooks.h"
230469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy
240469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamynamespace android {
250469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy
260469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy/* Hooks to be called by "interesting" EGL functions. */
270469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamyvoid GLTrace_eglCreateContext(int version, EGLContext c);
2893a826f78f6313db791e6fc880439189897651b3Siva Velusamyvoid GLTrace_eglMakeCurrent(unsigned version, gl_hooks_t *hooks, EGLContext c);
290469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamyvoid GLTrace_eglReleaseThread();
300469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamyvoid GLTrace_eglSwapBuffers(void*, void*);
310469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy
320469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy/* Start and stop GL Tracing. */
330469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamyvoid GLTrace_start();
340469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamyvoid GLTrace_stop();
350469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy
360469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy/* Obtain the gl_hooks structure filled with the trace implementation for all GL functions. */
370469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamygl_hooks_t *GLTrace_getGLHooks();
380469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy
390469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy};
400469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy
410469dd6d55fa331bfd7de9431da98b6340d82271Siva Velusamy#endif
42