2011-03-11 00:40:37 +00:00
|
|
|
/*
|
|
|
|
** Copyright 2011, The Android Open Source Project
|
|
|
|
**
|
|
|
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
** you may not use this file except in compliance with the License.
|
|
|
|
** You may obtain a copy of the License at
|
|
|
|
**
|
|
|
|
** http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
**
|
|
|
|
** Unless required by applicable law or agreed to in writing, software
|
|
|
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
** See the License for the specific language governing permissions and
|
|
|
|
** limitations under the License.
|
|
|
|
*/
|
2011-03-28 17:39:28 +00:00
|
|
|
|
2011-03-11 00:40:37 +00:00
|
|
|
#ifndef _GLESV2_DBG_H_
|
|
|
|
#define _GLESV2_DBG_H_
|
|
|
|
|
2011-03-28 17:39:28 +00:00
|
|
|
#include <pthread.h>
|
|
|
|
|
2011-03-11 00:40:37 +00:00
|
|
|
namespace android
|
|
|
|
{
|
2011-03-28 17:39:28 +00:00
|
|
|
struct DbgContext;
|
|
|
|
|
2011-05-13 23:21:08 +00:00
|
|
|
DbgContext* CreateDbgContext(const unsigned version, const gl_hooks_t * const hooks);
|
2011-03-28 17:39:28 +00:00
|
|
|
|
2011-05-13 23:21:08 +00:00
|
|
|
void dbgReleaseThread();
|
2011-03-28 17:39:28 +00:00
|
|
|
|
2011-04-09 01:43:16 +00:00
|
|
|
// create and bind socket if haven't already, if failed to create socket or
|
|
|
|
// forceUseFile, then open /data/local/tmp/dump.gles2dbg, exit when size reached
|
|
|
|
void StartDebugServer(const unsigned short port, const bool forceUseFile,
|
|
|
|
const unsigned int maxFileSize, const char * const filePath);
|
2011-03-28 17:39:28 +00:00
|
|
|
void StopDebugServer(); // close socket if open
|
|
|
|
|
2011-03-11 00:40:37 +00:00
|
|
|
}; // namespace android
|
|
|
|
|
|
|
|
#endif // #ifndef _GLESV2_DBG_H_
|