pstats for windows

This commit is contained in:
David Rose 2004-02-18 23:32:19 +00:00
parent 216ef33e68
commit 5ede98f8d4
5 changed files with 14 additions and 8 deletions

View File

@ -21,6 +21,7 @@
#include "config_windisplay.h"
#include "wdxGraphicsPipe7.h"
#include "dxGraphicsStateGuardian7.h"
#include "pStatTimer.h"
#include <wingdi.h>
@ -135,6 +136,8 @@ wdxGraphicsWindow7::
void wdxGraphicsWindow7::
make_current(void) {
PStatTimer timer(_make_current_pcollector);
DXGraphicsStateGuardian7 *dxgsg;
DCAST_INTO_V(dxgsg, _gsg);
//wglMakeCurrent(_hdc, wdxgsg->_context);

View File

@ -28,10 +28,7 @@
#include "keyboardButton.h"
#include "mouseButton.h"
#include "throw_event.h"
#ifdef DO_PSTATS
#include "pStatTimer.h"
#endif
#include <ddraw.h>
#include <map>
@ -98,6 +95,8 @@ wdxGraphicsWindow8::
void wdxGraphicsWindow8::
make_current(void) {
PStatTimer timer(_make_current_pcollector);
DXGraphicsStateGuardian8 *dxgsg;
DCAST_INTO_V(dxgsg, _gsg);
//wglMakeCurrent(_hdc, wdxgsg->_context);

View File

@ -28,10 +28,8 @@
#include "keyboardButton.h"
#include "mouseButton.h"
#include "throw_event.h"
#ifdef DO_PSTATS
#include "pStatTimer.h"
#endif
#include <ddraw.h>
#include <map>
@ -98,6 +96,8 @@ wdxGraphicsWindow9::
void wdxGraphicsWindow9::
make_current(void) {
PStatTimer timer(_make_current_pcollector);
DXGraphicsStateGuardian9 *dxgsg;
DCAST_INTO_V(dxgsg, _gsg);
//wglMakeCurrent(_hdc, wdxgsg->_context);

View File

@ -18,9 +18,8 @@
#include "wglGraphicsBuffer.h"
#include "config_wgldisplay.h"
#include "wglGraphicsPipe.h"
#include "glgsg.h"
#include "frameBufferProperties.h"
#include "pStatTimer.h"
#include <wingdi.h>
@ -94,6 +93,8 @@ begin_frame() {
////////////////////////////////////////////////////////////////////
void wglGraphicsBuffer::
make_current() {
PStatTimer timer(_make_current_pcollector);
wglGraphicsStateGuardian *wglgsg;
DCAST_INTO_V(wglgsg, _gsg);

View File

@ -20,6 +20,7 @@
#include "config_wgldisplay.h"
#include "config_windisplay.h"
#include "wglGraphicsPipe.h"
#include "pStatTimer.h"
#include "glgsg.h"
#include <wingdi.h>
@ -155,6 +156,8 @@ wglGraphicsWindow::
////////////////////////////////////////////////////////////////////
void wglGraphicsWindow::
make_current() {
PStatTimer timer(_make_current_pcollector);
wglGraphicsStateGuardian *wglgsg;
DCAST_INTO_V(wglgsg, _gsg);
wglMakeCurrent(_hdc, wglgsg->get_context(_hdc));