Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
9b8f92ea
Commit
9b8f92ea
authored
Jul 30, 2013
by
Geoff Lang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove uses of the HASH_MAP define since unordered_map is already used in several places.
TRAC #23618 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods Author: Geoff Lang
parent
ea228635
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
49 deletions
+15
-49
version.h
src/common/version.h
+1
-1
Context.h
src/libGLESv2/Context.h
+4
-16
ResourceManager.h
src/libGLESv2/ResourceManager.h
+9
-19
precompiled.h
src/libGLESv2/precompiled.h
+0
-4
ShaderCache.h
src/libGLESv2/renderer/ShaderCache.h
+1
-9
No files found.
src/common/version.h
View file @
9b8f92ea
#define MAJOR_VERSION 2
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 200
1
#define BUILD_REVISION 200
2
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
...
...
src/libGLESv2/Context.h
View file @
9b8f92ea
...
...
@@ -22,11 +22,7 @@
#include <string>
#include <map>
#ifdef _MSC_VER
#include <hash_map>
#else
#include <unordered_map>
#endif
#include "common/angleutils.h"
#include "common/RefCountObject.h"
...
...
@@ -472,27 +468,19 @@ class Context
BindingPointer
<
Texture3D
>
mTexture3DZero
;
BindingPointer
<
Texture2DArray
>
mTexture2DArrayZero
;
#ifndef HASH_MAP
# ifdef _MSC_VER
# define HASH_MAP stdext::hash_map
# else
# define HASH_MAP std::unordered_map
# endif
#endif
typedef
HASH_MAP
<
GLuint
,
Framebuffer
*>
FramebufferMap
;
typedef
std
::
unordered_map
<
GLuint
,
Framebuffer
*>
FramebufferMap
;
FramebufferMap
mFramebufferMap
;
HandleAllocator
mFramebufferHandleAllocator
;
typedef
HASH_MAP
<
GLuint
,
FenceNV
*>
FenceNVMap
;
typedef
std
::
unordered_map
<
GLuint
,
FenceNV
*>
FenceNVMap
;
FenceNVMap
mFenceNVMap
;
HandleAllocator
mFenceNVHandleAllocator
;
typedef
HASH_MAP
<
GLuint
,
Query
*>
QueryMap
;
typedef
std
::
unordered_map
<
GLuint
,
Query
*>
QueryMap
;
QueryMap
mQueryMap
;
HandleAllocator
mQueryHandleAllocator
;
typedef
HASH_MAP
<
GLuint
,
VertexArray
*>
VertexArrayMap
;
typedef
std
::
unordered_map
<
GLuint
,
VertexArray
*>
VertexArrayMap
;
VertexArrayMap
mVertexArrayMap
;
HandleAllocator
mVertexArrayHandleAllocator
;
...
...
src/libGLESv2/ResourceManager.h
View file @
9b8f92ea
...
...
@@ -14,11 +14,7 @@
#include <GLES3/gl3.h>
#include <GLES2/gl2.h>
#ifdef _MSC_VER
#include <hash_map>
#else
#include <unordered_map>
#endif
#include "common/angleutils.h"
#include "libGLESv2/angletypes.h"
...
...
@@ -87,37 +83,31 @@ class ResourceManager
std
::
size_t
mRefCount
;
rx
::
Renderer
*
mRenderer
;
#ifndef HASH_MAP
# ifdef _MSC_VER
# define HASH_MAP stdext::hash_map
# else
# define HASH_MAP std::unordered_map
# endif
#endif
typedef
HASH_MAP
<
GLuint
,
Buffer
*>
BufferMap
;
typedef
std
::
unordered_map
<
GLuint
,
Buffer
*>
BufferMap
;
BufferMap
mBufferMap
;
HandleAllocator
mBufferHandleAllocator
;
typedef
HASH_MAP
<
GLuint
,
Shader
*>
ShaderMap
;
typedef
std
::
unordered_map
<
GLuint
,
Shader
*>
ShaderMap
;
ShaderMap
mShaderMap
;
typedef
HASH_MAP
<
GLuint
,
Program
*>
ProgramMap
;
typedef
std
::
unordered_map
<
GLuint
,
Program
*>
ProgramMap
;
ProgramMap
mProgramMap
;
HandleAllocator
mProgramShaderHandleAllocator
;
typedef
HASH_MAP
<
GLuint
,
Texture
*>
TextureMap
;
typedef
std
::
unordered_map
<
GLuint
,
Texture
*>
TextureMap
;
TextureMap
mTextureMap
;
HandleAllocator
mTextureHandleAllocator
;
typedef
HASH_MAP
<
GLuint
,
Renderbuffer
*>
RenderbufferMap
;
typedef
std
::
unordered_map
<
GLuint
,
Renderbuffer
*>
RenderbufferMap
;
RenderbufferMap
mRenderbufferMap
;
HandleAllocator
mRenderbufferHandleAllocator
;
HASH_MAP
<
GLuint
,
Sampler
*>
mSamplerMap
;
typedef
std
::
unordered_map
<
GLuint
,
Sampler
*>
SamplerMap
;
SamplerMap
mSamplerMap
;
HandleAllocator
mSamplerHandleAllocator
;
HASH_MAP
<
GLuint
,
FenceSync
*>
mFenceSyncMap
;
typedef
std
::
unordered_map
<
GLuint
,
FenceSync
*>
FenceMap
;
FenceMap
mFenceSyncMap
;
HandleAllocator
mFenceSyncHandleAllocator
;
};
...
...
src/libGLESv2/precompiled.h
View file @
9b8f92ea
...
...
@@ -41,7 +41,3 @@
#include <D3D11.h>
#include <dxgi.h>
#include <D3Dcompiler.h>
#ifdef _MSC_VER
#include <hash_map>
#endif
src/libGLESv2/renderer/ShaderCache.h
View file @
9b8f92ea
...
...
@@ -88,15 +88,7 @@ class ShaderCache
return
mDevice
->
CreatePixelShader
(
function
,
shader
);
}
#ifndef HASH_MAP
# ifdef _MSC_VER
# define HASH_MAP stdext::hash_map
# else
# define HASH_MAP std::unordered_map
# endif
#endif
typedef
HASH_MAP
<
std
::
string
,
ShaderObject
*>
Map
;
typedef
std
::
unordered_map
<
std
::
string
,
ShaderObject
*>
Map
;
Map
mMap
;
IDirect3DDevice9
*
mDevice
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment