mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 14:00:09 -10:00
Make util/win32 follow ANGLE conventions better
BUG=angleproject:892 Change-Id: I1ad366e16b135649fe1b0351081f9971db84df50 Reviewed-on: https://chromium-review.googlesource.com/269665 Reviewed-by: Jamie Madill <[email protected]> Reviewed-by: Geoff Lang <[email protected]> Tested-by: Corentin Wallez <[email protected]>
This commit is contained in:
1 parent
f611316bae
commit
ec0b13622a
5 files changed
+24
-12
No files matched your search
@@ -4,6 +4,8 @@
|
||||
// found in the LICENSE file.
|
||||
//
|
||||
|
||||
// Win32Timer.cpp: Implementation of a high precision timer class on Windows
|
||||
|
||||
#include "win32/Win32Timer.h"
|
||||
|
||||
Win32Timer::Win32Timer()
|
||||
|
||||
+10
-7
@@ -4,20 +4,23 @@
|
||||
// found in the LICENSE file.
|
||||
//
|
||||
|
||||
#ifndef SAMPLE_UTIL_WIN32_TIMER_H
|
||||
#define SAMPLE_UTIL_WIN32_TIMER_H
|
||||
// Win32Timer.h: Definition of a high precision timer class on Windows
|
||||
|
||||
#ifndef UTIL_WIN32_TIMER_H
|
||||
#define UTIL_WIN32_TIMER_H
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include "Timer.h"
|
||||
#include <windows.h>
|
||||
|
||||
class Win32Timer : public Timer
|
||||
{
|
||||
public:
|
||||
Win32Timer();
|
||||
|
||||
void start();
|
||||
void stop();
|
||||
double getElapsedTime() const ;
|
||||
void start() override;
|
||||
void stop() override;
|
||||
double getElapsedTime() const override;
|
||||
|
||||
private:
|
||||
bool mRunning;
|
||||
@@ -27,4 +30,4 @@ class Win32Timer : public Timer
|
||||
LONGLONG mFrequency;
|
||||
};
|
||||
|
||||
#endif // SAMPLE_UTIL_WIN32_TIMER_H
|
||||
#endif // UTIL_WIN32_TIMER_H
|
||||
@@ -4,6 +4,8 @@
|
||||
// found in the LICENSE file.
|
||||
//
|
||||
|
||||
// Win32Window.cpp: Implementation of OSWindow for Windows
|
||||
|
||||
#include "win32/Win32Window.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
@@ -4,12 +4,15 @@
|
||||
// found in the LICENSE file.
|
||||
//
|
||||
|
||||
#ifndef SAMPLE_UTIL_WIN32_WINDOW_H
|
||||
#define SAMPLE_UTIL_WIN32_WINDOW_H
|
||||
// Win32Window.h: Definition of the implementation of OSWindow for Windows
|
||||
|
||||
#ifndef UTIL_WIN32_WINDOW_H
|
||||
#define UTIL_WIN32_WINDOW_H
|
||||
|
||||
#include <windows.h>
|
||||
#include <string>
|
||||
|
||||
#include "OSWindow.h"
|
||||
#include <string>
|
||||
#include <windows.h>
|
||||
|
||||
class Win32Window : public OSWindow
|
||||
{
|
||||
@@ -43,4 +46,4 @@ class Win32Window : public OSWindow
|
||||
EGLNativeDisplayType mNativeDisplay;
|
||||
};
|
||||
|
||||
#endif // SAMPLE_UTIL_WIN32_WINDOW_H
|
||||
#endif // UTIL_WIN32_WINDOW_H
|
||||
@@ -4,6 +4,8 @@
|
||||
// found in the LICENSE file.
|
||||
//
|
||||
|
||||
// Win32_path_utils.cpp: Implementation of OS-specific path functions for Windows
|
||||
|
||||
#include "path_utils.h"
|
||||
#include <array>
|
||||
#include <windows.h>
|
||||
|
||||
Reference in new issue
Block a user