blob: 2d3a0f60bcd8aee3cddf9c1741d7ecfb588727c9 [file] [log] [blame]
David Li65948aa2011-03-10 16:40:37 -08001/*
2 ** Copyright 2011, The Android Open Source Project
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
David Li864f8392011-03-28 10:39:28 -070016
David Li65948aa2011-03-10 16:40:37 -080017#ifndef _GLESV2_DBG_H_
18#define _GLESV2_DBG_H_
19
David Li864f8392011-03-28 10:39:28 -070020#include <pthread.h>
21
David Li65948aa2011-03-10 16:40:37 -080022namespace android
23{
David Li864f8392011-03-28 10:39:28 -070024struct DbgContext;
25
26DbgContext * CreateDbgContext(const pthread_key_t EGLThreadLocalStorageKey,
27 const unsigned version, const gl_hooks_t * const hooks);
28
29void DestroyDbgContext(DbgContext * const dbg);
30
31void StartDebugServer(unsigned short port); // create and bind socket if haven't already
32void StopDebugServer(); // close socket if open
33
David Li65948aa2011-03-10 16:40:37 -080034}; // namespace android
35
36#endif // #ifndef _GLESV2_DBG_H_