Commit Graph

116 Commits

Author SHA1 Message Date
Dmitry Rekman
956444b8f1 Linux: enable symbol serialization for memory profiler.
#codereview Bob.Telez, Jaroslaw.Surowiec

[CL 2525109 by Dmitry Rekman in Main branch]
2015-04-24 18:16:38 -04:00
Gil Gribb
c8c3d793ea UE4 - remove rhimethods.h and all of the macro stuff relating to that
[CL 2524145 by Gil Gribb in Main branch]
2015-04-24 07:50:10 -04:00
Dmitry Rekman
354c110f37 Linux: suppress '-W-inconsistent-missing-override' warning for 4.8 for reals
[CL 2521621 by Dmitry Rekman in Main branch]
2015-04-22 16:01:59 -04:00
Dmitry Rekman
3f8a115d5c Linux: do not filter out events that don't need a window (UE-10036).
[CL 2511037 by Dmitry Rekman in Main branch]
2015-04-13 19:37:02 -04:00
Marc Audy
4815482be4 Add a PRAGMA_DISABLE_SHADOW_WARNING to easily wrap third party code that needs shadow variables disabled
Move PRAGMA_POP out of deprecation section and in to general usability

[CL 2510496 by Marc Audy in Main branch]
2015-04-13 13:31:04 -04:00
Dmitry Rekman
2a8fa809d6 Linux: make -Wparentheses-equality non-fatal.
- Constructs like if (foo=1) will still break the build, but if ((foo == 1)) will not (won't be suppressed completely, but will produce a visible warning).

#codereview Josh.Adams

[CL 2500399 by Dmitry Rekman in Main branch]
2015-04-02 17:12:23 -04:00
Jaroslaw Palczynski
b0bc8bbc87 Added EMIT_CUSTOM_WARNING_AT_LINE macro to emit warnings at given line rather than on macro location.
[CL 2490438 by Jaroslaw Palczynski in Main branch]
2015-03-25 07:44:58 -04:00
Dmitry Rekman
ec41d37ed3 Adding 'override' qualifiers on a fix-as-you-go basis (#2).
[CL 2489557 by Dmitry Rekman in Main branch]
2015-03-24 13:55:31 -04:00
Dmitry Rekman
9408a83973 Linux: exempt some warnings from -Werror.
- After discussion with Core/Platform teams, it was determined that these warnings [would] affect build failure rate too much.
- We do not want to suppress them altogether though and they are going to be fixed as time and resources permit.

#codereview Josh.Adams, Michael.Trepka, Chris.Babcock, Marcus.Wassmer, Ankit.Khare

[CL 2488268 by Dmitry Rekman in Main branch]
2015-03-23 16:01:17 -04:00
Dmitry Rekman
1d23cab99f Linux: add Set/GetEnvironmentVar in platform layer.
- PR #960 contributed by 3dluvr.

[CL 2487834 by Dmitry Rekman in Main branch]
2015-03-23 10:59:37 -04:00
Dmitry Rekman
979e811ae7 Linux: drag-and-drop support.
- PR #942 contributed by yaakuro, with changes.
- SDL libs updated for x86_64 (glibc 2.12.1) and ARM (glibc 2.13).

https://github.com/EpicGames/UnrealEngine/pull/942

[CL 2487267 by Dmitry Rekman in Main branch]
2015-03-21 22:41:16 -04:00
Dmitry Rekman
c6dcbc58a8 Linux: reduce communication with display server.
- cache border sizes until the next time the window is shown.
- cache cursor position until the next mouse move or position change.

As of this commit, xtrace shows only OpenGL context changes when we aren't moving the mouse.

[CL 2482505 by Dmitry Rekman in Main branch]
2015-03-17 21:12:36 -04:00
Dmitry Rekman
d53b521524 Linux: fix cache when calculating the work area.
- Previous code was broken as it was caching the result regardless of the actual rectangle being passed.
- Now we cache the display info itself, not the result.
- Maybe we should use maximum overlap instead of top, left (doesn't seem to be important though).

[CL 2481662 by Dmitry Rekman in Main branch]
2015-03-17 11:45:52 -04:00
Jaroslaw Palczynski
f23f29257b Back out changelist 2481333
Rob asked me to back out GENERATED_*_BODY -> GENERATED_BODY change for now until the "_Validate and _Implementation auto-generation" discussion is over.

#codereview Robert.Manuszewski

[CL 2481343 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:38:32 -04:00
Jaroslaw Palczynski
fa31560e2d Enabled UHT to digest GENERATED_BODY instead of GENERATED_UCLASS_BODY, GENERATED_USTRUCT_BODY, GENERATED_UINTERFACE_BODY or GENERATED_IINTERFACE_BODY, changed every occurence to the new syntax and fixed every warning that have fallen out of this change.
#codereview Robert.Manuszewski

[CL 2481333 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:19:11 -04:00
Dmitry Rekman
7a367ae37f Make OpenRead() aware about intended sharing mode of the file.
- Currently essential on Windows only; other platforms may make use of this when managing file handles.

#codereview Eric.Newman, Robert.Manuszewski, Josh.Adams, Michael.Trepka, Chris.Babcock, Marcus.Wassmer, Peter.Sauerbrei

[CL 2480709 by Dmitry Rekman in Main branch]
2015-03-16 17:14:06 -04:00
Dmitry Rekman
50493b8421 Linux: Cache display area to reduce chattiness.
- Still polling, just at a lower rate. What we need is a callback on screen config changes.

[CL 2479690 by Dmitry Rekman in Main branch]
2015-03-15 13:15:22 -04:00
Dmitry Rekman
bb073ce815 Disable TLS thread id cache until UE-11541 is investigated.
- We run out of TLS slot limit on Ubuntu 14.04 and earlier.
- Theoretically -ftls-model=local-dynamic (the proper fix) should have fixed this, but for some reason we don't see this happening.
- Issue will need to be investigated, but for now just don't cache thread id for glibc <= 2.19 (this assumes ubuntu-patched glibc by the way).

[CL 2478884 by Dmitry Rekman in Main branch]
2015-03-13 14:24:01 -04:00
Dmitry Rekman
07ebe07861 PR #911: Linux full-screen only fix.
- Contributed by x414e54 (https://github.com/EpicGames/UnrealEngine/pull/911).
- We are flip-flopping on this, but currently it doesn't seem to cause issues.

[CL 2478761 by Dmitry Rekman in Main branch]
2015-03-13 13:25:03 -04:00
Dmitry Rekman
e86138d4ca Refactored FProcHandle API in platform abstraction layer.
- Deprecated FProcHandle::Close() in favor of existing FPlatformProcess::CloseProc() (symmetric to FPlatformProcess::CreateProc()).
- Linux: made FProcHandle instances safe to pass by value.
- Linux: added support for "fire and forget" children, which will not leave zombies (at the expense of extra threads and a leaked thread handle).
- Extended TestPAL with tests for most of the above functionality.

#codereview Michael.Trepka, Josh.Adams, Robert.Manuszewski, Jaroslaw.Surowiec

[CL 2476050 by Dmitry Rekman in Main branch]
2015-03-11 20:10:19 -04:00
Mikolaj Sieluzycki
01acd9263c Log debug message before assertion macros.
#codereview Steve.Robb

[CL 2475034 by Mikolaj Sieluzycki in Main branch]
2015-03-11 09:07:48 -04:00
Dmitry Rekman
9684e68db8 Fix for dragging objects in the viewport.
- PR #889 contributed by yaakuro.

https://github.com/EpicGames/UnrealEngine/pull/889

[CL 2474819 by Dmitry Rekman in Main branch]
2015-03-11 01:47:58 -04:00
Mikolaj Sieluzycki
d7a081e634 Disable deprecation warnings in code generated by UHT.
[CL 2473643 by Mikolaj Sieluzycki in Main branch]
2015-03-10 08:24:59 -04:00
Dmitry Rekman
079420d37c Linux: Make open menus behave more like on Windows.
- PR #852 contributed by yaakuro.

https://github.com/EpicGames/UnrealEngine/pull/852

[CL 2473361 by Dmitry Rekman in Main branch]
2015-03-10 00:22:49 -04:00
Dmitry Rekman
bfd27eed3e Minor perf: cache thread id in TLS on Linux as syscall is too heavy.
(Merging CL 2465322 from my branch).

[CL 2467047 by Dmitry Rekman in Main branch]
2015-03-02 17:36:45 -05:00