Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0df9201

Browse files
null77Commit Bot
authored andcommitted
Rename Platform.h to PlatformMethods.h.
"platform.h" is too common a name and causes headers to be included incorrectly. Disambiguate the header using a more specific name. Solves a problem that came up with the GLES 1 tests and the standalone test harness. Bug: angleproject:3162 Change-Id: I88229a2c9407e0db57f5beee44daa11a4075f700 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2229065 Commit-Queue: Jamie Madill <[email protected]> Reviewed-by: Yuly Novikov <[email protected]>
1 parent 505b6eb commit 0df9201

26 files changed

+365
-355
lines changed

include/platform/Platform.h

Lines changed: 5 additions & 328 deletions
Large diffs are not rendered by default.

include/platform/PlatformMethods.h

Lines changed: 333 additions & 0 deletions
Large diffs are not rendered by default.

scripts/code_generation_hashes/proc_table.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts/egl_angle_ext.xml":
55
"854e99785af19f8f4eea4f73005a0451",
66
"scripts/gen_proc_table.py":
7-
"7f52dba9bba75fffba11f427af205d6a",
7+
"05587426d508d13eec257c4e5f3a0a13",
88
"scripts/gl.xml":
99
"e74a595068cbdd6064300be1e71b7cc9",
1010
"scripts/gl_angle_ext.xml":
@@ -14,7 +14,7 @@
1414
"scripts/wgl.xml":
1515
"aa96419c582af2f6673430e2847693f4",
1616
"src/libGL/proc_table_wgl_autogen.cpp":
17-
"b2ea218380642a9f426a131b77762ce9",
17+
"253f59ef3aa9ccfcab1364ae5101dbe2",
1818
"src/libGLESv2/proc_table_egl_autogen.cpp":
19-
"ebf1d019dd3a474485549bd052e7cd87"
19+
"d35c6036573a3b9a69438687b4f7136c"
2020
}

scripts/gen_proc_table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
#include "libGLESv2/entry_points_gles_3_1_autogen.h"
5656
#include "libGLESv2/entry_points_gles_3_2_autogen.h"
5757
#include "libGLESv2/entry_points_gles_ext_autogen.h"
58-
#include "platform/Platform.h"
58+
#include "platform/PlatformMethods.h"
5959
"""
6060

6161
includes_gl = """#include "libGL/proc_table_wgl.h"
@@ -80,7 +80,7 @@
8080
#include "libGL/entry_points_gl_4_4_autogen.h"
8181
#include "libGL/entry_points_gl_4_5_autogen.h"
8282
#include "libGL/entry_points_gl_4_6_autogen.h"
83-
#include "platform/Platform.h"
83+
#include "platform/PlatformMethods.h"
8484
"""
8585

8686
sys.path.append('../src/libANGLE/renderer')

src/common/event_tracer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define COMMON_EVENT_TRACER_H_
77

88
#include "common/platform.h"
9-
#include "platform/Platform.h"
9+
#include "platform/PlatformMethods.h"
1010

1111
namespace angle
1212
{

src/libANGLE/BlobCache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "libANGLE/Context.h"
1414
#include "libANGLE/Display.h"
1515
#include "libANGLE/histogram_macros.h"
16-
#include "platform/Platform.h"
16+
#include "platform/PlatformMethods.h"
1717

1818
namespace egl
1919
{

src/libANGLE/MemoryProgramCache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "libANGLE/Uniform.h"
2020
#include "libANGLE/histogram_macros.h"
2121
#include "libANGLE/renderer/ProgramImpl.h"
22-
#include "platform/Platform.h"
22+
#include "platform/PlatformMethods.h"
2323

2424
namespace gl
2525
{

src/libANGLE/Program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "libANGLE/renderer/GLImplFactory.h"
3434
#include "libANGLE/renderer/ProgramImpl.h"
3535
#include "platform/FrontendFeatures.h"
36-
#include "platform/Platform.h"
36+
#include "platform/PlatformMethods.h"
3737

3838
namespace gl
3939
{

src/libANGLE/renderer/d3d/d3d11/renderer11_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include "libANGLE/renderer/d3d/d3d11/texture_format_table.h"
3131
#include "libANGLE/renderer/driver_utils.h"
3232
#include "platform/FeaturesD3D.h"
33-
#include "platform/Platform.h"
33+
#include "platform/PlatformMethods.h"
3434

3535
namespace rx
3636
{

src/libANGLE/renderer/d3d/d3d9/renderer9_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "libANGLE/renderer/d3d/d3d9/formatutils9.h"
1818
#include "libANGLE/renderer/driver_utils.h"
1919
#include "platform/FeaturesD3D.h"
20-
#include "platform/Platform.h"
20+
#include "platform/PlatformMethods.h"
2121

2222
#include "third_party/systeminfo/SystemInfo.h"
2323

0 commit comments

Comments
 (0)