Revert "Implement missing util/ functions on Mac"

This reverts commit 959e197c84.

BUG=

Change-Id: I71ea2894c74be8fda80a59c99bc53f4fcb7e9115
Reviewed-on: https://chromium-review.googlesource.com/299873
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Tested-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez
2015-09-16 20:12:42 +00:00
parent bf18ed01ba
commit 83634d6b61
7 changed files with 2 additions and 41 deletions

View File

@@ -9,8 +9,6 @@
#ifndef SAMPLE_UTIL_PIXMAP_H_
#define SAMPLE_UTIL_PIXMAP_H_
#include <stdlib.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>

View File

@@ -8,6 +8,7 @@
#include "system_utils.h"
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>

View File

@@ -1,14 +0,0 @@
//
// Copyright (c) 2015 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// OSXPixmap.h: Definition of the implementation of OSPixmap for OSX
#ifndef UTIL_OSX_PIXMAP_H_
#define UTIL_OSX_PIXMAP_H_
#include "OSPixmap.h"
#endif // UTIL_OSX_PIXMAP_H_

View File

@@ -1,15 +0,0 @@
//
// Copyright (c) 2015 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// OSXPixmap.cpp: Implementation of OSPixmap for OSX
#include "osx/OSXPixmap.h"
// TODO(cwallez) find out the native OSX pixmap type and implement this
OSPixmap *CreateOSPixmap()
{
return nullptr;
}

View File

@@ -8,10 +8,8 @@
#include "system_utils.h"
#include <sys/resource.h>
#include <sched.h>
#include <time.h>
#include <unistd.h>
namespace angle
{
@@ -36,9 +34,4 @@ void Sleep(unsigned int milliseconds)
}
}
void SetLowPriorityProcess()
{
setpriority(PRIO_PROCESS, getpid(), 10);
}
} // namespace angle

View File

@@ -54,8 +54,6 @@
'osx/OSX_system_utils.cpp',
'osx/OSXTimer.cpp',
'osx/OSXTimer.h',
'osx/OSXPixmap.mm',
'osx/OSXPixmap.h',
'osx/OSXWindow.mm',
'osx/OSXWindow.h',
'posix/Posix_system_utils.cpp',

View File

@@ -29,4 +29,4 @@ class X11Pixmap : public OSPixmap
Display *mDisplay;
};
#endif // UTIL_X11_PIXMAP_H_
#endif // UTIL_WIN32_PIXMAP_H_