2019-12-26 14:45:42 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2015-02-23 15:58:14 -05:00
|
|
|
|
|
|
|
|
#include "WebImageCache.h"
|
Copying //UE4/Dev-Build to //UE4/Dev-Main (Source: //UE4/Dev-Build @ 3209340)
#lockdown Nick.Penwarden
#rb none
==========================
MAJOR FEATURES + CHANGES
==========================
Change 3209340 on 2016/11/23 by Ben.Marsh
Convert UE4 codebase to an "include what you use" model - where every header just includes the dependencies it needs, rather than every source file including large monolithic headers like Engine.h and UnrealEd.h.
Measured full rebuild times around 2x faster using XGE on Windows, and improvements of 25% or more for incremental builds and full rebuilds on most other platforms.
* Every header now includes everything it needs to compile.
* There's a CoreMinimal.h header that gets you a set of ubiquitous types from Core (eg. FString, FName, TArray, FVector, etc...). Most headers now include this first.
* There's a CoreTypes.h header that sets up primitive UE4 types and build macros (int32, PLATFORM_WIN64, etc...). All headers in Core include this first, as does CoreMinimal.h.
* Every .cpp file includes its matching .h file first.
* This helps validate that each header is including everything it needs to compile.
* No engine code includes a monolithic header such as Engine.h or UnrealEd.h any more.
* You will get a warning if you try to include one of these from the engine. They still exist for compatibility with game projects and do not produce warnings when included there.
* There have only been minor changes to our internal games down to accommodate these changes. The intent is for this to be as seamless as possible.
* No engine code explicitly includes a precompiled header any more.
* We still use PCHs, but they're force-included on the compiler command line by UnrealBuildTool instead. This lets us tune what they contain without breaking any existing include dependencies.
* PCHs are generated by a tool to get a statistical amount of coverage for the source files using it, and I've seeded the new shared PCHs to contain any header included by > 15% of source files.
Tool used to generate this transform is at Engine\Source\Programs\IncludeTool.
[CL 3209342 by Ben Marsh in Main branch]
2016-11-23 15:48:37 -05:00
|
|
|
#include "Styling/CoreStyle.h"
|
2015-02-23 15:58:14 -05:00
|
|
|
|
|
|
|
|
FWebImageCache::FWebImageCache()
|
|
|
|
|
: DefaultStandInBrush(FCoreStyle::Get().GetDefaultBrush())
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
Copying //UE4/Fortnite-Staging to //UE4/Dev-Main (Source: //Fortnite/Main @ 3212531)
#lockdown Nick.Penwarden
#rb none
==========================
MAJOR FEATURES + CHANGES
==========================
Change 3212485 on 2016/11/28 by Dmitry.Rekman
Update libwebsockets to use -fPIC.
Change 3212280 on 2016/11/28 by Guillaume.Abadie
Fixes static lighting regression caused by selective outputs fix.
Change 3211095 on 2016/11/28 by Ian.Fox
#UE4 - Add nullptr check to cookonthefly server ini check
Change 3211042 on 2016/11/28 by Bob.Tellez
#UE4 Add an option to reset a particle system comp on a camera lens emitter when it is retriggered
Change 3209336 on 2016/11/23 by Rob.Cannaday
Fix shutdown crash trying to cancel an HTTP request after the HTTP module has been unloaded
Move the cancel call to the PreUnload step
#jira FORT-33515
Change 3208350 on 2016/11/22 by Jeff.Campeau
Added bVirtualKeyboardDisplayOnFocus to Slate settings defaulted to true (old behavior)
Always open a virtual keyboard when the facebutton bottom is pressed on an active text field
Do not open a virtual keyboard on focus gained by any method other than mouse if bVirtualKeyboardDisplayOnFocus is set to false
#jira FORT-30722
Change 3207430 on 2016/11/22 by James.Hopkin
#fortnite Applied changes from CL#3161737 (UE4/Main) to stage and package SSL certificate bundles.
Change 3207422 on 2016/11/22 by Ben.Woodhouse
* Fix UpdateTexture3D to create a staging texture of the region to update rather than the whole texture. This prevents distance fields crashing during update (allocating 18GB per frame in some cases)
* Put UpdateTexture2D DMA support onto a cvar, disabled by default (corruption issues reported by licensees, plus not sure it's actually faster - could be slower due to reduced bandwidth; issues reported by licensees)
* Fix UpdateTexture2D to only create a staging texture of the region to update, saving memory
#jira UE-38609
Change 3206301 on 2016/11/21 by Ben.Woodhouse
Fixed GPU hang in Zone Map view. Was an issue with RenderThread using the device context without appropriate RHIThread flushes.
#jira FORT-31616
#code_review keith.judge
Change 3206144 on 2016/11/21 by Lukasz.Furman
improved path following sticking to tether bounds
#jira FORT-32097
Change 3206142 on 2016/11/21 by Lukasz.Furman
added post processing to navigation filters for making filter-bound paths (feedback iteration)
#fortnite
Change 3206053 on 2016/11/21 by Lukasz.Furman
added post processing to navigation filters for making filter-bound paths
#fortnite
Change 3205790 on 2016/11/21 by Lukasz.Furman
pass on flow field usage by EQS
Change 3205764 on 2016/11/21 by Lukasz.Furman
seeding AIModule's random stream from world manager, using random stream in EQS
#fortnite
Change 3205763 on 2016/11/21 by Lukasz.Furman
added random stream to AIModule
copy of CL# 3150031
Change 3205162 on 2016/11/19 by James.Hopkin
Added missiing depending on SSL to Linux HTTP. Fixes CrashReportClient linker errors.
Change 3205124 on 2016/11/19 by James.Hopkin
Enabled websockets and Stomp for Linux
Change 3205121 on 2016/11/19 by James.Hopkin
From Nick Shin's Dev-Platform shelf: upgrade/rebuild of libcrypto, libcurl, libssl, libwebsockets and zlib for Linux
#fyi Nick.Shin,Dmitry.Rekman,Bob.Tellez
Change 3205119 on 2016/11/19 by James.Hopkin
Added OpenSSL version 1.0.2h headers for x86_64-unknown-linux-gnu
#fyi Nick.Shin,Dmitry.Rekman,Bob.Tellez
Change 3204994 on 2016/11/18 by Billy.Bramer
- Sort the function results that show up in the blueprint "Copy signature from:" combo box
Change 3203688 on 2016/11/18 by James.Hopkin
#stomp Lower-cased FName strings before encoding to prevent random case at runtime.
Change 3201533 on 2016/11/16 by Mark.Satterthwaite
More auto-release pool/memory-handling fixes for Metal's debug layer, which depends upon ARC:
- Better handling of parallel context creation & pooling in MetalRHI.
- Metal queries return the actual value so that we can use local autorelease pools to capture ARC retain/autorelease calls in the debug layer.
- Similarly EndEncoding needs a local autorelease pool to handle the debug layer's ARC retain/autorelease calls.
#jira FORT-32706
Change 3201077 on 2016/11/16 by Mark.Satterthwaite
Trivial command-buffer fencing to avoid render-queries keeping MTLCommandBuffer's alive after they are completed, reducing total memory use.
#jira FORT-32706
Change 3200269 on 2016/11/16 by John.Abercrombie
Made GetPredictionData_Client_Character and GetPredictionData_Server_Character public
- Removed unnecessary code duplication in FortIndicator as a result
Change 3198230 on 2016/11/15 by James.Hopkin
#stomp Added dedicated server support to Stomp connection manager. Also fixed heartbeats and change retry strategy to retry forever, first retry after 5 seconds, doubling up to max interval of every minute.
Change 3197273 on 2016/11/14 by Mark.Satterthwaite
Fix Metal related memory leaks.
#jira FORT-32706
Change 3196974 on 2016/11/14 by Lukasz.Furman
increased distance to focal point for path following
copy of CL# 3196971
#jira FORT-32048
Change 3196885 on 2016/11/14 by John.Pollard
FORT-33019 - Fix crash when updating unmapped properties on replicator that was dormant
Change 3196772 on 2016/11/14 by John.Pollard
Speculative fix for assert when shutting down replicators
Change 3196617 on 2016/11/14 by Lukasz.Furman
improved readability of EQS results in gameplay debugger's table view
#fortnite
Change 3195394 on 2016/11/11 by John.Pollard
UE-37866 - Fix replication issue where unmapped properties wouldl fail to map if the replicator goes away due to dormancy
Change 3195272 on 2016/11/11 by Bob.Tellez
#Fortnite Fix warning output in UDataTable for missing row
Change 3195152 on 2016/11/11 by Lukasz.Furman
fixed target selection in gameplay debugger's spectator
#fortnite
Change 3195071 on 2016/11/11 by Lukasz.Furman
pass on EQS category of gameplay debugger
#fortnite
Change 3194111 on 2016/11/10 by Bob.Tellez
#UE4 if you have a checked out or out of date file in your rename list it is now properly skipped and reported after the rename.
Change 3193547 on 2016/11/10 by Bob.Tellez
#UE4 LODGroup is now AssetRegistrySearchable
Change 3193545 on 2016/11/10 by Bob.Tellez
#UE4 Allow setting the default LODGroup when importing a mesh
Change 3193541 on 2016/11/10 by Bob.Tellez
#UE4 LODGroup settings application on load. Enable this behavior by setting r.StaticMesh.UpdateMeshLODGroupSettingsAtLoad=1
Change 3192035 on 2016/11/09 by Saad.Nader
#engine Updated Migration of properties to handle static arrays properly from previous check-in.
Change 3191062 on 2016/11/08 by Saul.Abreu
Added accessor for all items in list views.
Change 3190998 on 2016/11/08 by Chris.Gagnon
Partially fixes a problem with the scale bax ignore inherited scale isn't working properly.
There is more to fix by adding float InScale or similar to the GetRelativeLayoutScale() call chain.
This portion will be handled by the tools team.
Change 3190812 on 2016/11/08 by Lukasz.Furman
fixed crash on path string pulling when path corridor is empty
#jira FORT-32811
Change 3190800 on 2016/11/08 by Saad.Nader
#engine Fixed a case where a static array uproperty wasn't being migrated properly since it was being treated as a single value.
Change 3189573 on 2016/11/07 by Bob.Tellez
#UE4 Since LightComponents now respect hiddeningame, I changed ALight to default to not be hidden in game. All components in the class that should not be seen are already bHiddenInGame=true on the component.
Change 3189268 on 2016/11/07 by Michael.Trepka
Check is MacApplication is still valid when making a deferred call to OnApplicationActivationChanged
Change 3189179 on 2016/11/07 by Michael.Trepka
Don't skip Mac windowDidResize: when switching between window modes. Fixes issues with screen not resizing properly when changing from windowed to windowed fullscreen
Change 3189154 on 2016/11/07 by Lukasz.Furman
added unbound exploration mode to A* solver
#ue4
Change 3189072 on 2016/11/07 by Saad.Nader
#commonui Added ability to skip the stack of activatable panels so that global input handling can handle input for dynamically created buttons on a modal. Updated name of base button style as its name was conflicting with legacy ui base button style.
Change 3188769 on 2016/11/07 by Guillaume.Abadie
Fixes r.SelectiveBasePassOutput and use it in Fortnite.
This CL adds a selective base pass optimization not drawing scene color when r.SelectiveBasePassOutput=1 on materials that doesn't emit color.
Use r.SelectiveBasePassOutput in Fortnite and avoid computing the fog in base pass to actually avoid drawing scene color.
#review-3187180 @brian.karis
Change 3187864 on 2016/11/04 by Bob.Tellez
#UE4 Better handling for setting return values in error cases where a function cannot be executed.
Change 3187815 on 2016/11/04 by Bob.Tellez
#UE4 Fix for SetLODGroup to trim LODs that are not needed.
Change 3187309 on 2016/11/04 by Lukasz.Furman
added projection and pathfinding to navigation graph
#fortnite
Change 3186304 on 2016/11/03 by Saul.Abreu
Made a pass on Common UI widgets, setting their widget palette category property or overriding the relevant virtual method in order to have a consistent value across all Common UI widgets.
Change 3186301 on 2016/11/03 by Saul.Abreu
Exposed ability to compare Slate brushes in Blueprints. Helpful for Icon Text Button to be able to hide its icon image if the icon brush is identical to the default (which is intentionally 0-sized/draw-type none).
Change 3185979 on 2016/11/03 by David.Hamm
Conditional gameplay effects with required tags were considering target tags in code, rather than source tags as presented in the editor. Updating the code allows the Bearricade tag to be seen, triggering the desired slow effect.
#jira FORT-32141
Change 3185534 on 2016/11/03 by Daniel.Broder
Made GameplayDebuggerCategory_EQS log the description of filtered items rather than just their index (which doesn't tell much).
#UE4 #NoReleaseNotes
Change 3185386 on 2016/11/03 by Daniel.Broder
"Actors of Class" EQS Generator now supports returning all actors matching the class rather than only actors within the radius based on a new checkbox "Generate Only Actors In Radius". For backwards compatibility, it defaults to true.
#UE4 #ReleaseNoteAbove
Change 3185370 on 2016/11/03 by Mark.Satterthwaite
Revert the only change to Metal texture uploads made in the merge leading up to 16/09/16 and disable more recent changes to reuse texture objects in the hope that this cures FORT-30180. If not then this will need to be handled by Apple/Nvidia as we're not doing anything obviously wrong on our side.
#jira FORT-30180
Change 3185249 on 2016/11/03 by Lukasz.Furman
added caching for neighbor count in template A* solver
#fortnite
Change 3184403 on 2016/11/02 by Daniel.Broder
Updated EnvQueryTest_GameplayTags to support Gameplay Tag Queries.
^^ReleaseNoteAbove
Data is automatically converted to the query from the old data format.
Gameplay Tag Queries give much more flexibility for how to mach the queries, since they can include entire expressions of what must match and/or not match.
#UE4 #ReleaseNoteAbove
Change 3184311 on 2016/11/02 by Daniel.Broder
Removed unnecessary if/else that was calling identical code in both parts! (Now it just calls the code directly).
Fixed spelling of ReturnValueAddress (from ReturnValueAdress).
#UE #NoReleaseNotes
Change 3183823 on 2016/11/02 by Mark.Satterthwaite
Record Metal resource & state objects used in a command-buffer when rhi.Metal.RuntimeDebugLevel is set to 3 or higher. The object labels, types & descriptions will be printed on failure - if the object is deleted prior to this then we have a lifetime error and it will crash at this point and can be debugged further using our -metalretainrefs command-line option or Xcode's zombie-objects.
Used to verify that FORT-31649 is not a simple resource lifetime error and thereby speed up Apple/vendor investigations.
#jira FORT-31649
Change 3183807 on 2016/11/02 by Mark.Satterthwaite
Change the way we access the Metal viewport's backbuffer, to reduce possible causes of FORT-31649:
- Added console variable "rhi.Metal.SupportsIntermediateBackBuffer" to control whether to use an extra render-target so we can support screenshots & movie capture, or render directly to the back-buffer to save memory & GPU performance. Still defaults to ON for Mac & OFF for iOS/tvOS.
- Change the way we handle updates to the back-buffer size to ensure that the different threads access their intended version.
#jira FORT-31649
Change 3183470 on 2016/11/02 by Bob.Tellez
#UE4 Lights with 0 intensity are now removed from the scene
Change 3183230 on 2016/11/02 by Bob.Tellez
#UE4 Console history no longer keeps duplicate entries
Change 3182547 on 2016/11/01 by Bob.Tellez
#UE4 Fixed an old bug which was causing thumbnail scenes to have incorrect lighting.
Change 3182498 on 2016/11/01 by Chris.Gagnon
Added ItemIcon widget and ItemCountTextBlock widget.
EpicCMSScreen derives from COmmonActivatable Panel.
Added CommonUIUtils with function to get a owning userwidget or contexts.
Begining of the new Topbar, and a number of supporting widgets.
Change 3182497 on 2016/11/01 by Chris.Gagnon
Engine:
GameViewportClient now has a global toggle to turn software cursor mapping on and off.
Fortnite:
Added software cursor, when using the gamepad we turn on the software cursor mapping. The asset is invisible.
This allows us to hide the cursor without all the baggage and undesired behavior that comes with that.
Change 3181853 on 2016/11/01 by Saad.Nader
#commonui
Added uproperty annotations to prevent garbage collection.
Updated code to cleanup internal caches to happen earlier.
Change 3181782 on 2016/11/01 by Bob.Tellez
#UE4 LightComponents now respect bHiddenInGame (and other visibility flags) when determining whether they should be added to the scene.
Change 3181516 on 2016/11/01 by Saad.Nader
#commonui
Added an action handler interface that I have been wanting for awhile.
Updated action widget to ignore design time changes since it relies on a common ui context instance.
Cleaned up activatable panel interface and commited events on a input action registered to be handled. Our activatable handle automatically handles things for now without asking blueprint if we should.
Cleanedup up miscellaneous activatable panel internals
Activatable panels can now choose to expose input actions registered to that panel.
Replaced activatable panel reflector with common input reflector
Added a common global input handler that implements the action handler interface
Updated common button and common tablist widgets appropriately to register with global input handler for appropriate actions.
Buttons now have separate triggering actions vs. triggered actions. Triggering actions can only be set during creation of the button whereas triggered actions can be set anytime.
Moved a lot of the boilerplate code for action button into common button to trigger and listen for actions, or register with the global input handler for triggering actions.
Fixed typos in common ui types.
Updated CommonUITestBed with new changes.
Change 3179753 on 2016/10/31 by Lukasz.Furman
replaced ensure with vlog warning in GameplayTask processing
#jira FORT-32324
Change 3178028 on 2016/10/28 by Lukasz.Furman
attempt to fix rare crash in crowd simulation
#jira FORT-27847
Change 3177966 on 2016/10/28 by James.Hopkin
Removed some redundant text/string copies and conversions in 'Find in Blueprints'
Change 3176795 on 2016/10/27 by Fred.Kimberley
Fixed the code path that grabs tooltip data for ability system components to respect the flag that shows buffs in the front end instead of final values.
#jira FORT-30491
Change 3175818 on 2016/10/26 by Bob.Tellez
#UE4 Protecting against a nullptr access in FVisibilityPropertySection::GenerateSectionLayout. More investigation is needed to determine if this should be allowed to be null.
Change 3175615 on 2016/10/26 by Michael.Trepka
Check if MacApplication is valid in FMacApplication::OnCursorLock() block that's called asynchronously and can be executed after MacApplication was destroyed. Fixes FORT-32075
Change 3175369 on 2016/10/26 by Saul.Abreu
Refactored CreateWidget functions to share UserWidgetClass validation logic and fixed a missing early-out return statement.
Change 3175233 on 2016/10/26 by Saul.Abreu
#fortnite
Common Button now properly handles its interactibility changing when it's toggleability has changed - previously, being selected when toggling is turned on would leave the button non-interactible and thus not practically toggleable.
Change 3174285 on 2016/10/25 by Mark.Satterthwaite
Fix command-buffer failures when resizing windows on Mac - we have to capture windowWillResize: events in our window delegate and then forward on a call to Slate's OnResizingWindow event handler, that internally causes rendering to flush. If we wait to do this in windowDidResize then the actual device back-buffer resource will have been reallocated and we presumably end up trying to render into garbage memory on the GPU, causing the intermittent command-buffer failures.
#jira FORT-31649
Change 3173872 on 2016/10/25 by Bob.Tellez
#UE4 Fixed an issue where if you have a map with actors that produce a ZeroVector bounds size, SetActorTransform complains.
Change 3172828 on 2016/10/24 by Saul.Abreu
Added useful contextual information to the message log errors provided when attempting to create widgets but failing.
Change 3172649 on 2016/10/24 by Michael.Trepka
Call setMinSize and setMaxSize in FMacApplication::OnCursorLock() on the main thread
#jira FORT-30177
Change 3172568 on 2016/10/24 by Saad.Nader
#commonui Exposed a flag to reflector to not show actions for an activtable panel if we don't want them exposed.
Change 3172341 on 2016/10/24 by Mark.Satterthwaite
Fix FORT-31526 by setting appropriate defaults for FEditorCompositingParameters when the feature isn't being used, as Metal still requires something be bound for the values. This all stems from Fortnite using GizmoMaterial somehow when whacking Llamas to reveal the cards contained within - I suspect the 'real' fix is not to use an Editor material in the game client...
#jira FORT-31526
Change 3172304 on 2016/10/24 by James.Longstreet
#fortnite #jira FORT-31090 Add setting to configure whether the virtual keyboard sends TextChanged or TextCommitted when complete.
Add SlateSettings to project settings, for settings that need to be accessed from Slate -- the Slate module doesn't depend on Engine, so it can't access UserInterfaceSettings or InputSettings.
Default to TextChanged in Fortnite.
Change 3171630 on 2016/10/24 by Saul.Abreu
#fortnite
Added API export to Common List View.
Added support to Common List View for changing selection modes.
Added delegate to Common List View to support hook-ups on creation of new list item widgets.
Improved Common List View handling of item widgets that are buttons - no need to handle manually hooking up the list item clicked callback to the button.
Change 3171474 on 2016/10/22 by Saul.Abreu
#fortnite
New numeric text block.
Change 3171463 on 2016/10/22 by Saad.Nader
#commonui
Added the common action widget which can visualize the input of an activatable panel or button.
Added the common activatable panel reflector widget so we can build a bar widget which can visualize the actions an activatable panel have registered to handle.
Cleaned up the input manager's handling of pushing and poping activatable panels
Updated widget switcher to completely push or pop tabs on or off the stack so that the stack is clean of any items not in the current tab.
Updated common ui context to expose API blueprint.
Updated input action data to make better sense in common ui types
Added a viewport client to redirect input for the common ui test bed.
Added a completion delegate for listeners such as a button in a activatable panel reflector widget.
Added test harness for activatable panel, activatable panel reflector, action widget
Change 3170868 on 2016/10/21 by Jeff.Campeau
AutoSDK props included earlier
Change 3170663 on 2016/10/21 by Mark.Satterthwaite
Further changes to finally fix the underlying cause of FORT-25473 and all future potential instances: SetStreamSource overrides the stride from the vertex declaration and MetalRHI wasn't properly considering what to do with Stride=0, which should disabling vertex attribute stepping. This also requires fixing some gotcha's in the StateCache.
#jira FORT-25473
Change 3170020 on 2016/10/20 by Bob.Tellez
#UE4 Render scale was off by one when setting via buckets in the editor widget.
Change 3169764 on 2016/10/20 by Mark.Satterthwaite
Fixed automatic conversion of G8_sRGB into RGBA8_sRGB required for Mac Metal, which fixes FORT-27627.
#jira FORT-27627
Change 3169631 on 2016/10/20 by Mark.Satterthwaite
Fix a potential crash due to unnecessary reinitialisation of the MetalRenderPipelineDesc mutex.
Change 3169614 on 2016/10/20 by Mark.Satterthwaite
Fix FORT-25473 caused by incorrect handling of vertex attributes in Metal: FParticleSpriteVertexFactory specifies the dynamic particle parameter attribute (VA 5) with a non-zero stride, which implies vertex or instance stepping - but for the P_Rocket_ColdMist_FXV effect only a single float4 is provided with the intent that this be constant for all instances. Other APIs may implicitly wrap the VA read back around but Metal does not and simply reads garbage off the end of the buffer - potentially this could even cause a GPU crash. MetalRHI now detects when the buffer bound to an attribute can't support more than one instance and if needed updates the vertex declaration to make such attributes constant.
#jira FORT-25473
Change 3169163 on 2016/10/20 by Fred.Kimberley
Added UIProxyActor. This is intended as a single proxy actor to replace the existing, class specific, proxy actors.
Change 3168732 on 2016/10/20 by Saul.Abreu
Exposed style references in UCommonTextBlock. Allows widgets to look at the styles on the CDO.
Change 3168713 on 2016/10/20 by Saul.Abreu
Fixed unconditional inclusion of Developer module headers (settings module) in client builds from Common UI module.
Change 3168659 on 2016/10/20 by Saul.Abreu
Created and exposed SetMinDesiredWidth on UTextBlock, following the example set by other setters in the class.
Change 3168658 on 2016/10/20 by Saul.Abreu
The Common UI plugin now has a settings object which will appear in the project settings window. It exposes setting default styles for both CommonTextBlock and CommonButton in the Game config file.
Change 3167632 on 2016/10/19 by John.Pollard
Fix FN replay scrubbing issues
* Solution for net startup actors that need to be "rolled back" during scrubbing if they've been modified
* Solution for when net startup actors should be deleted past checkpoints
* Added version support to load older replays that don't save out deleted net startup actors in checkpoints
Change 3166065 on 2016/10/18 by Saad.Nader
#commonui renaming UCommonActivatableManager to UCommonInputManager, added ability to change input method for desktop and console.
Change 3166049 on 2016/10/18 by Lukasz.Furman
added navmesh exploration helpers in FortNavMesh
#fortnite
Change 3165085 on 2016/10/17 by Saad.Nader
#blueprintcontext fixed log output for created blueprint context
Change 3163115 on 2016/10/14 by James.Hopkin
Prevented variable combo box clipping long type names in blueprint details panel
[UE-19710]
Change 3162629 on 2016/10/13 by Saul.Abreu
#fortnite
#jira FORT-31489
Ported Paragon's tile view widget over to the Common UI Plugin as Common Tile View. Added exemplar/test case in Common UI testbed.
Change 3162624 on 2016/10/13 by Saul.Abreu
Improved "Create Event" node with text showing the function signature in a friendly manner.
Change 3162114 on 2016/10/13 by Guillaume.Abadie
Implements r.EarlyZPassOnlyMaterialMasking.
Fortnite grass/trees is using masked material. However masked materials are doing clip in early z pass and base pass, both preventing the pixel shader from using the early depth test. This CL execute material's mask opacity only in the early z pass to keep early depth test on expensive mask material's base pass pixel shader.
Change 3161479 on 2016/10/13 by Saad.Nader
#commonui Updated Common button to be able to handle a bound common input action by causing the button to get clicked.
Updated Activatable panel to ignore input if it is not activated
Added helper functions to common widget switcher for activating/deactivating the active widget if it is a activatable panel.
Change 3161092 on 2016/10/13 by Saul.Abreu
#fortnite
Common Tab List widget now exposes access to its linked switcher as well as overridable events before and after the linked switcher is set. OnCreateNewTab can now be implemented in native code or blueprints. Buttons added as tabs in the tab list will now have their selectabilty and toggleability set as necessary.
Change 3160762 on 2016/10/12 by Billy.Bramer
- Make UAbilitySystemComponent::AreAbilityTagsBlocked virtual so games can provide a custom implementation
Change 3160736 on 2016/10/12 by Lukasz.Furman
fixed some gameplay debugger's categories not rendering correctly in simulate mode
#fortnite
Change 3160417 on 2016/10/12 by Mark.Satterthwaite
Disable DistanceField AO & Shadowing support on Intel GPUs under Metal - there are driver bugs that prevent them from working currently.
#jira FORT-31268
Change 3160314 on 2016/10/12 by Michael.Trepka
Fixed incorrect rect initialization in Mac GetDisplayMetrics
Change 3160309 on 2016/10/12 by Lukasz.Furman
pass on gameplay debugger in Simulate in Editor mode
copy of CL 3160014
#ue4
Change 3159892 on 2016/10/12 by John.Abercrombie
Fixed the Blackboard component pausing but never being unpaused if we ended up restarting the Behavior Tree instead of continuing
#ue4
Change 3159630 on 2016/10/12 by Jamie.Dale
Fixed an issue where async and non-async loading could result in the package being given a different name
Async loading would always use the non-localized name (which is correct), but non-async loading would sometimes use the localized name (which is incorrect); now they both do the same thing.
Change 3159249 on 2016/10/11 by Jonathan.Lindquist
fixing a potential uv bug related to their names
Change 3159145 on 2016/10/11 by Lukasz.Furman
fixed behavior tree task restart conditions
#ue4
Change 3158846 on 2016/10/11 by John.Pollard
Add ability to override network async loading for replays
Change 3158551 on 2016/10/11 by Saad.Nader
#commonui remove checks for common tab list widget when set listening for input occurs.
Change 3157727 on 2016/10/10 by Saul.Abreu
#fortnite
Common button style now has minimum width and minimum height properties and common button will use the maximum of its own and the style's minimums.
Change 3157364 on 2016/10/10 by Jamie.Dale
Split localized package redirection out of FCoreDelegates::PackageNameResolvers
They're different enough in behavior that the delegate resolution was breaking the localized package resolution by resolving in too many places and causing the localized package to be loaded with its real localized name as well as the fake non-localized name.
#jira FORT-31207
Change 3156616 on 2016/10/10 by Lukasz.Furman
added more failsafes to crowd simulation crash
#jira FORT-27847
Change 3155092 on 2016/10/07 by Chris.Gagnon
SlateApplication
- Added more control over where navigation originates from with the ENavigationSource enumeration piped in through the FReply
- Added custom handling support for the navigation responce using the FCustomNavigationHandler
Fortnite
- Added Input Preprocessor for generating navigation events and handling the "virtual cursor" position
- Added the Input mode switching support for gamepad <-> keyboard (Currently disabled)
Change 3154721 on 2016/10/07 by Lukasz.Furman
automation fix for AI tests with multiple spawn sets
copy of CL# 3154035
#jira FORT-31106
Change 3154466 on 2016/10/07 by Saul.Abreu
#fortnite
Additional logging and checking to help diagnose cause of current build breakage, possibly related to blueprint context OR unrelated but coincidental and related to game data or homebase manager.
Change 3154349 on 2016/10/06 by Saul.Abreu
#fortnite
Relocate BP context and common UI plugins to Engine (NotForLicensees).
Change 3152396 on 2016/10/05 by Lukasz.Furman
fixed RECAST_ASYNC_REBUILDING define being ignored by navmesh generator
#ue4
Change 3152390 on 2016/10/05 by Lukasz.Furman
including AgentRadius in area modifier bounds in layer's intersection test
fixes modifier cuts at tile boundary
#jira FORT-31051
Change 3151999 on 2016/10/05 by Lukasz.Furman
added vlogs for applying and removing gameplay effects
#jira FORT-30982
Change 3150947 on 2016/10/04 by Bob.Tellez
#UE4 Fix to find the title.json file in the correct game folder.
Change 3149775 on 2016/10/03 by Bob.Tellez
#UE4 Added property editor code support for doubles.
Change 3148729 on 2016/10/03 by Lukasz.Furman
fixed memory corruption in DemoNetDriver
#fortnite
Change 3146148 on 2016/09/29 by Bob.Tellez
#UE4 Fixed a case where the LastRecordedHittestIndex would remain zero, causing the widget path to get truncated and result in the mainframe window when determining if you should spawn a tooltip, causing us to try to create a tooltip outside of our tooltip presenter widget, causing a new window to be created and a crash to happen on consoles.
#JIRA FORT-30378
Change 3146016 on 2016/09/29 by Daniel.Broder
Added BlueprintGameplayTagLibrary function "Get All Actors of Class Matching Query".
It uses TActorIterator to find only all actors derived from the specified class and then further winnows them by whether they match a GameplayTagQuery. If any actor does NOT implement IGameplayTagAssetInterface, the function will log ONCE a warning that the class in question doesn't implement the required interface to be able to check for matching tags. (NOTE: This function can be extremely expensive if there are a large number of actors of the class requested, so be cautious using it.
It can be used at initialization time to find a specific subset of actors to act on (for example).
#UE4 #ReleaseNote
Change 3145827 on 2016/09/29 by Lukasz.Furman
added sanity checks to EQS tick
#jira FORT-30755
Change 3145520 on 2016/09/29 by Chad.Garyet
changing notifications to require there be a type to verify the user exists
#jira FORT-30754
Change 3145428 on 2016/09/29 by Bob.Tellez
#UE4 Made plugin loaded log statements verbose.
Change 3145229 on 2016/09/29 by Bob.Tellez
#UE4 Fix for only running the first test on commandline
Change 3142730 on 2016/09/27 by Bob.Tellez
#UE4 Removing needless scope on a virtual function call that made it seem static and made UpdateResolutionQuality protected so it can be called from subclasses that may be procedurally determining DesiredScreenWidth and DesiredScreenHeight
Change 3142632 on 2016/09/27 by Saul.Abreu
#fortnite
Improved data table row struct post-data-import method with more context provided through parameters. Used to fixup homebase node display names to have stable keys generated from the row name.
Change 3140907 on 2016/09/26 by Bob.Tellez
#UE4 Allowing movie files to be renamed to match platform requirements
Change 3140399 on 2016/09/26 by Lukasz.Furman
fixed uninitialized configs of gameplay debugger
#jira FORT-30439
Change 3138880 on 2016/09/23 by Fred.Kimberley
Added source tag requirements to conditional gameplay effects.
#jira FORT-29772
Change 3138262 on 2016/09/23 by Chad.Garyet
Integrating codesign fix into Fortnite/Main
Change 3137164 on 2016/09/22 by Mark.Satterthwaite
Add stats to track exactly how many command buffers are allocated and committed each frame to work out why Fortnite on AMD is hanging, which turns out to be because each texture update/reallocation ends up in its own command-buffer. This needs to be rethought to pack these into fewer command buffers with the same synchronisation requirements to minimise command-buffer splits but for now we'll just make the default sufficiently large that we shouldn't see the hang until the work is done. Also ensure that command-buffer failure is always fatal - there is no way to recover or continue if a command-buffer fails.
#jira FORT-30377
Change 3136720 on 2016/09/22 by Rob.Cannaday
Fix crash in FCurlHttpRequest::DebugCallback
+ Specify the string length to FString's constructor as the result from StringCast is not null terminated if the string's length is specified (instead of assuming null termination).
#jira OGS-428
Change 3136391 on 2016/09/22 by Lukasz.Furman
fixed crowd path section switch rejecting navlinks at end of path
#jira FORT-30400, FORT-30402
Change 3136295 on 2016/09/22 by Lukasz.Furman
fixed navlinks not connecting to navmesh correctly in "snap to cheapest area" mode,
adjusted scoring in navmesh projection - findNearestPoly2D
#jira FORT-30358
Change 3136033 on 2016/09/22 by Mark.Satterthwaite
To fix the Fortnite login screen force Nvidia Macs to use the set*Bytes API for small buffer updates even on El Capitan. We can't do this globally as Intel didn't implement these functions until macOS Sierra.
Fix GPU selection code in MetalRHI to confirm everything is working.
#jira FORT-30385
Change 3135237 on 2016/09/21 by Mark.Satterthwaite
Metal validation layer fix: under Metal if there are no reads from the vertex stage-in buffers we should use the Empty vertex declaration, not the filter declaration, otherwise we have to bind a redundant vertex stream buffer to silence the validation layer.
Change 3135177 on 2016/09/21 by Rob.Cannaday
Demote "Missing party state during exit" log from warning to display, as order of operations cause this to always be triggered when voluntarily leaving a party
#jira FORT-22575
Change 3135176 on 2016/09/21 by Rob.Cannaday
When returning to front-end, re-evaluate pending party joins that were in the waiting for beacon reservation state.
#jira FORT-27737
Change 3135174 on 2016/09/21 by Mark.Satterthwaite
- Copy MetalRHI & MetalShaderFormat from Dev-Rendering CL #3132772
Provides significant performance improvements on CPU due to improved vertex declaration handling & much reduced GPU heap fragmentation + more stats.
Definitely fixes:
#jira FORT-29430
Change 3135169 on 2016/09/21 by Mark.Satterthwaite
Correct Metal texture creation for AVF media framework - we can't provide a render-targetable version of the texture without blitting. The native texture we get is a GPU copy that can be made CPU accessible (i.e. it is not tiled).
Change 3135157 on 2016/09/21 by Mark.Satterthwaite
Fix one cause of Metal crashes loading into a zone - the PlanarReflection shader code needs to always set the IsStereoParameter so that the shader can perform the if-test without causing an invalid GPU access.
#jira FORT-30061
Change 3135136 on 2016/09/21 by Bob.Tellez
#UE4 Added GetPackageDependenciesForManifestGenerator delegate for games to be able to determine package dependencies however they deem fit.
Change 3135132 on 2016/09/21 by Bob.Tellez
#UE4 Better final cook platform path creation. WindowsClient was incorrectly forming a path to WindowsNoEditor when looking for chunk manifests
Change 3134313 on 2016/09/21 by Lukasz.Furman
attempt to fix crash in navmesh generation
#jira FORT-30340
Change 3134091 on 2016/09/21 by Rob.Cannaday
Fix crash in lib curl debug callback because the string parameter provided by libcurl is not null terminated
#jira OGS-428
Change 3133949 on 2016/09/21 by Lukasz.Furman
crowd agents will use shorter path corridor when one of two last polys are navlink
(corridor part switch happens with 2 or less polys left, we don't want to switch while on navlink)
#jira FORT-29880
Change 3133219 on 2016/09/20 by Lukasz.Furman
fixed broken navlink's "snap to cheapest area" mode
#fortnite
Change 3133087 on 2016/09/20 by Saul.Abreu
Updated comments on FARFilter to more explicitly express interactions between class filtering settings.
Change 3132990 on 2016/09/20 by Saul.Abreu
#fortnite
Overhaul of asset crawling localizable text gathering commandlet. Added feature for filtering processed assets based on membership in a collection.
Change 3132627 on 2016/09/20 by Bob.Tellez
#Fortnite Added XLoc language ID for for zh-CN
Change 3132616 on 2016/09/20 by Lukasz.Furman
added tolerance to navmesh project point 2D query
added overrides for accessing projection with tolerance during navwalking height checks, should be replaced with navdata flags later on
#jira FORT-29474
Change 3130819 on 2016/09/19 by Ben.Marsh
UBT: Read additional configuration settings for BuildConfiguration and UEBuildConfiguration from the engine config settings. Allows setting project-specific config values.
Change 3130639 on 2016/09/19 by Lukasz.Furman
pass on crowd simulation
- husks should move faster through funnels now
- husks can clip each other a bit more often :(
#fortnite
Change 3130625 on 2016/09/19 by Bob.Tellez
#UE4 Added an ensure to further track down invalid usage of playerinput
#JIRA FORT-30183
Change 3128884 on 2016/09/16 by Ben.Salem
Repair nightly FTest runs. FTests are now namespaced differently as of new main merge, and had to uncomment a load-bearing wait that exists to enable the way we run our nightlies (nullrhi w/ execcmds) to start the test properly.
Change 3128874 on 2016/09/16 by Daniel.Lamb
Testing to see if memory changes have injured fortnite cook times.
Change 3127175 on 2016/09/15 by John.Abercrombie
GameplayCueInterface's TagToFunctionMap is now keyed by FObjectKey of a UClass, rather than using the UClass as the key
- Since UClass-es can be unloaded at run-time, and then loaded again later in a different spot in memory, this is a better solution
Clear out the TagToFunctionMap whenever we cleanup a world
Move the TagToFunctionMap into a namespace
#jira FORT-29194 - Crash during Fight the Storm Defense
Change 3126840 on 2016/09/15 by Bob.Tellez
#UE4 Added a hack to aid in the conversion from the "USA" and "Poland" region names to "NA" and "EU"
Change 3125944 on 2016/09/14 by Billy.Bramer
- Fix for FJsonObjectWrapper incorrectly exporting to JSON in a string representation instead of an object representation now that it has an implementation of export text
Change 3125764 on 2016/09/14 by Saul.Abreu
Change to enum and struct registration so that their packages are all created before either set gets to run their registration logic.
Change 3125719 on 2016/09/14 by Bob.Tellez
#UE4 Windows in nullrhi do not have OS handles and not initializing you parent window causes a crash when you start PIE (needed for headless automation testing)
Change 3125504 on 2016/09/14 by jonathan.lindquist
adding a comment to the exclude wpo offsets input
Change 3124203 on 2016/09/13 by Bob.Tellez
Temporarily removing IOS.Automation.csproj dependency on MobileDeviceInterface since it is causing warnings in UGS right now.
Change 3124192 on 2016/09/13 by Tim.Tillotson
Fix bad format string in FLinkerLoad::VerifyImport
Warning:
[2016.09.13-18.49.05:928][927]LogText:Warning: Failed to parse argument "ImportClass" as a number (using "0" as a fallback). Please check your format string for
errors: ": Failed import for {ImportClass}".
Change 3124083 on 2016/09/13 by Bob.Tellez
#UE4 Re-disabling EQFilter for all machines. This is a temporary solution until a more efficient method is found that does not cause machines to lag.
Change 3123783 on 2016/09/13 by Jonathan.Lindquist
Subtacting 1 from the VAT tools output texture file name uv number to match unreals 0-based system.
Change 3122223 on 2016/09/12 by Jonathan.Lindquist
Adding optional uv controls for the texture based animations
Change 3122220 on 2016/09/12 by jonathan.lindquist
adding an optional uv input for the Vertex animation toolset
Change 3122070 on 2016/09/12 by John.Abercrombie
Added nav links to corner walls, rather than depending on a nav area to traverse the low edge of the corner
Made crowd folowing component use the velocity while traversing a link, except if we're falling
AIs will not update their paths while following a nav link
Lowered the step height of all AIs from 90 to 72
#jira FORT-29786 - Husks can move over the balcony wall on floor structures.
Change 3121098 on 2016/09/12 by Chris.Wood
Increased Linux timeout when waiting for CRC to complete.
[UE-30259] - Some server crashes are missing from crashreporter database
#jira UE-30259
Change 3120694 on 2016/09/12 by Saul.Abreu
#fortnite
Refactored CMS reader to support URLs with protocols (http, https, and file). URIs (URL sans protocol) will no longer work, but we can add in smart fallback logic later, as this is only in Fortnite currently and the only CMS data available currently is via local file. Console command will handle URLs using double quotes, since the colon trips up existing console command parsing logic (it seems).
Change 3120686 on 2016/09/11 by Saul.Abreu
#fortnite
Deleting erroneous config files in EpicCMS plugin.
Change 3120659 on 2016/09/11 by Saul.Abreu
Added support to widget carousel for getting a callback when the active widget changes. (Not sure who the original author was, but the oldest tracked revision codereview'd Justin Sargent.)
Change 3120658 on 2016/09/11 by Saul.Abreu
Fixed UMG grid panel to properly set the padding on the slots it creates.
Change 3118466 on 2016/09/08 by Bob.Tellez
#UE4 There is now an option to exclude all UMG widgets and slots from dedicated server builds. Set bLoadWidgetsOnDedicatedServer=false for this behavior
Change 3118149 on 2016/09/08 by Bob.Tellez
#UE4 Dont cook non-native CDO references that are excluded for your target
Change 3117604 on 2016/09/08 by John.Abercrombie
FortGameModeFTesting no longer spawns a pawn
Added automated test setting to FortGameMode so we can avoid waiting for a pawn before removing the loading screen
Made the FunctionalTest set the view target to the Observation Point if we don't have a pawn, note that this only works on Player Controllers that aren't Debug Camera Controllers so we don't annoy any user who's moving around
Change 3116964 on 2016/09/07 by Bob.Tellez
#Fortnite We are now building crashreportclient for linux instead of using the stale binary in P4
Change 3116284 on 2016/09/07 by Tim.Tillotson
#fortnite Add support for quest objectives that track player ability activation.
As part of this also:
+Added a bWasCancelled parameter to GameplayAbility::EndAbility. This allows us to determine if an ability was ended prematurely.
+Added a OnAbilitySucceeded delegate for determining when an ability was successfully ended.
Some additional improvements thanks to code review feedback from Fred.Kimberley.
After discussing with Matt Hancy we decided to keep the OnAbilityCompleted delegate for now. We may be able to deprecate and remove it in the future if we rewrite all the existing abilities that use it.
Change 3116039 on 2016/09/07 by John.Abercrombie
Fix crash when you change the blueprint of a class referenced by a gameplay cue between PIE runs
[CL 3215544 by Bob Tellez in Main branch]
2016-11-30 14:12:57 -05:00
|
|
|
void FWebImageCache::PreUnload()
|
|
|
|
|
{
|
|
|
|
|
for (const TSharedRef<FWebImage>& WebImage : StrongRefCache)
|
|
|
|
|
{
|
|
|
|
|
WebImage->CancelDownload();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
Copying //UE4/Dev-Main to //UE4/Main (Source: //Portal/Main/Engine @ 4247640)
#rb none
#lockdown Nick.Penwarden
============================
MAJOR FEATURES & CHANGES
============================
Change 4247640 by Daniel.Lamb
BuildPatchTool: PackageChunks: Fixed issue with filenames not being set for chunkdbs in particular cases where the chunkdbs were small.
Change 4247246 by Leigh.Swift
BuildPatchTool: Adding support to BPT PackageChunks to filter by tagsets, and also split chunkdb output by them too.
Change 4173518 by Wes.Fudala
WebBrowser: Adding support to enable allowing net security expirations.
Change 4102451 by Leigh.Swift
BuildPatchTool: PackageChunks: Adding tool mode JSON output for listing created chunkdb files.
Change 4099951 by Leigh.Swift
BuildPatchTool: PackageChunks: Adding PrevManifestFile commandline support to BPT PackageChunks mode, allowing us to generate chunkdbs that only cover data required to perform an update.
Change 4051406 by Leigh.Swift
BuildPatchServices: Update default number of simultaneous downloads for an installer to 16 which is now well proven in the wild.
Change 4036807 by Leigh.Swift
BuildPatchServices: Added new message type for receiving updates about which files have been touched by the installation.
BuildPatchServices: Cloud enumeration is now threaded to improve speed.
Change 4036477 by Richard.Fawcett
Thirdparty: AWSSDK: Update AWS SDK to version 3.3 as speculative fix for object is used after being disposed error.
Confirmed this exception is being raised from within the AWS SDK, and _not_ in Epic code.
Advice by Amazon on AWS forums for people experiencing this exception is always to update to the latest version of the SDK in the first instance.
Change 3922493 by Justin.Sargent
Runtime: Added shortcircuit support to the ExpressionParser. More documentation to come.
AgreementExpressionEvaluator has been updated to use the shortcircuit logic so it now processes expressions lef to right as expected in all cases.
AgreementExpressionEvaluator was also updated to perform evaluation as a two pass system. The tow pass solution prevents over prompting eulas in certain scenarios where the expression would ultimately resolve true without them.
Change 3983713 by Barnabas.McManners
BuildPatchServices: Fix for verification logging error counts for unique runs. Solved the issue by using an external cache of the errors encountered each run to deduct from the total. Reporting only the delta.
Change 3966915 by Wes.Fudala
WebBrowser: CEF: Potential fix for a rare issue encountered when we attempting to release resources outside of the game thread.
Change 3955168 by Justin.Sargent
BuildPatchServices: Updated primary messaging of overall install status to now display Updating when patching an existing installation rather than Installing.
Change 3954610 by Leigh.Swift
BuildPatchServices: Fixing issue with Cloud Chunk Source which would erroneously conclude that it needed to re-download a chunk due to external system failure.
There is now an explicit concept of 'lost chunk' which is tracked and bubbled up by the system errors that cause the loss in the first place, so that each source knows exactly when it should be required to retrieve a chunk that it had already retrieved previously. Being explicit, these lost chunks can also now contribute to the total download required stat.
Also fixing some tracking that was missing to update the total download required stat if a local Install Chunk Source failed to load data from the files on disk and so these chunks needed to be additionally downloaded.
Change 3947928 by Chad.Garyet
UAT: Changing commandutils to attempt to find the Win8.1sdk signtool before the win10 one. There's currently a bug related to vs2017/server2012r2/win10sdk signtool that causes it to exit with an undefined error when signing from a service account. Using the win8.1sdk circumvents this issue.
Change 3942776 by Rob.Cannaday
Http: Fix for Mac sending up duplicate header strings
Change 3940306 by Leigh.Swift
BuildPatchServices: Refactor to isolate CoreUObject dependency and be able to compile out usage.
Change 3936655 by Justin.Sargent
Slate: Changed the invalid fontcache ensure in ShapedTextCache from always to only once to reduce ensure spamChange 3917840 by Leigh.Swift
BuildPatchTool: DiffManifests mode now also saves info for New, Removed, Changed, and Unchanged file to the output json file.
Change 3911756 by Justin.Sargent
WebBrowser: SWebBrowserView now ensures that it has a valid pointer to it's parent window in it's onpaint to avoid issues with the first frame being scaled incorrectly due to not being able to access the parent windows dpi scaling.
Change 3906670 by Justin.Sargent
Slate: Change the ShapedTextCache to hold a weakptr to the Slate FontCache instead of a reference. This will allow it to detect if the FontCache has become invalid since it was linked with the ShapedTextCache, thus making it able to avoid crashing.
Change 3889008 by Justin.Sargent
StandaloneRenderer: Made the SlateD3DRenderingPolicy more resilient to graphics device errors.
Change 3886969 by Justin.Sargent
StandaloneRenderer:Changed SlateD3DConstantBuffer to no longer check on a D3DDevice failure and instead soft fail, so the application can go through the process of attempting to re-establish the D3DDevice.
Change 3886960 by Justin.Sargent
WebBrowser: Made CEFWebBrowserWindow more resilient to issues with creating textures.
Change 3855821 by Barnabas.McManners
BuildPatchServices: Added logging of the configuration to the start of all installs.
Change 3839245 by Wes.Fudala
WebBrowser: Adding support for web browser drag regions. These are areas of a page tagged with -webkit-app-region: drag or -webkit-app-region: no-drag. The application can now pass a handler function to the browser to handle window drag events. This handler will be called if the browser detects mouse drag events inside of a tagged drag region.
Change 3835225 by Jacob.Hedges
Slate: Fix for SScrollBarTrack size issue
Change 3824320 by Wes.Fudala
WebBrowser: Fix for reported deadlock in WebBrowserSingleton. Associated with github pull request #4303.
#jira UE-53420 GitHub 4330 : Fixed deadlock in FWebBrowserSingleton
#4303
Change 3811191 by Barnabas.McManners
BuildPatchServices: Expanded MF01-X into MF01-X-X and MF02-X where X is the os error codes
Change 3807662 by Barnabas.McManners
BuildPatchServices: Broke down build verification errors into 4 new cases.
Change 3805698 by Leigh.Swift
BuildPatchServices: Speculative fixes for Unit test crashes / failures.
Change 3804175 by Wes.Fudala
ThirdParty: CEF: Adding browser locale pak files for es-MX, and es-ES as the typical mapping/fallback does not seem functional on mac browser. They are copies of es_419 and es respectively.
Change 3786628 by Leigh.Swift
WebBrowser: Exposing ability to customise tool tip widgets produced from SWebBrowserView.
Change 3775678 by Richard.Fawcett
BuildPatchServices: Allow a Prerequisite install only mode.
Change 3774365 by Justin.Sargent
BuildPatchServices: Updated Build Stat report that is logged after every installation to use FText::AsMemory instead of the UnitConversion logic, and now it outputs multiple unit types for convenience.
Change 3774361 by Justin.Sargent
Http: Remove Pragma: no-cache header from libcurl requests
Change 3774258 by Leigh.Swift
BuildPatchServices: Fix for destructive patch destroy files that contain useful data.
Change 3766156 by Barnabas.McManners
Http: Various lower changes to enable Hardware testing and to enable proxy configuration.
Change 3756723 by Leigh.Swift
BuildPatchServices: Hooking up disk chunk store operation states to the installer statistics.
BuildPatchServices: Memory chunk store statistics fix for booted chunks that have been reloaded.
Change 3756320 by Rob.Cannaday
Http: Add default headers added to every HTTP request.
Change 3741274 by Wes.Fudala
WebBrowser: Release CEF related references prior to CEF shutdown.
Change 3738003 by Leigh.Swift
BuildPatchServices: Fix-ups for install stats when failures are occurring
NumFilesOutdated now only set on first run, so it is not set to the number of files that are retried.
Total downloaded data and total download requirement stats fixed up for runtime as well as final values.
Initial chunk counters now only set for first run.
Moving the GetBytesDownloaded api from cloud source to download service so that it correctly accumulates.
InstallSource was multiply attempting, and counting, recycle failures, throwing that stat out of proportion.
Change 3729851 by Barnabas.McManners
BuildPatchServices: Changed the installer's MoveFile method to default to not retry. We currently only have uses of move file which already handle retry.
Change 3725611 by Leigh.Swift
Core: FText::AsMemory - Fix for numerical edges.
Added unit tests to check all edges up to full uint64 range.
Change 3725127 by Leigh.Swift
BuildPatchServices: ManifestDiff: Correcting string format padding for new data size output uints.
Change 3725126 by Leigh.Swift
Core: FText::AsMemory fix. Shifting (equivalent of divide 2 per shift) does not work for calculating SI units which are base 10.
Change 3721926 by Justin.Sargent
ThirdParty: LibCurl update performed by Simon Tourangeau.
We now have 100MB/sec download speed with libcurl on Win64, compared to 3MB/sec originally
Change 3700670 by Michael.Trepka
SlateReflector: Fixed mouse click highlighting in Widget Reflector's Demo Mode in high DPI
Change 3697526 by Leigh.Swift
BuildPatchServices: Exposing a suite of runtime statistics for BuildPatchInstallers.
Change 3686439 by Leigh.Swift
BuildPatchServices: Stop installers from always logging a shutdown error on destruction. This should only occur if the installer is actually running.
Change 3684747 by Leigh.Swift
BuildPatchTool: Fix file ignore list to parse using platform agnostic method.
Change 3643038 by Michael.Trepka
Core: Don't defer Cocoa calls in FMacWindow Show and Hide to make sure both actions complete before we exit these functions. This solves the problem with the blocks being called after window was destroyed.
Change 3639692 by Michael.Trepka
Fixes for a couple of issues found by address sanitizer
Change 3625568 by Leigh.Swift
BuildPatchServices: Fixing numerical limits problem with double -> uint64 in FStatsCollector::SecondsToCycles().
Change 3617948 by Leigh.Swift
BuildPatchServices: Disk space requirement can now be lower when patching if destructive patch mode is enabled. This mode will delete existing old files once they are not needed.
BuildPatchServices: Adding new installation mode setting on installer config.
BuildPatchServices: If destructive installation mode is enabled, the file constructor will delete old existing files after completing the new one.
BuildPatchServices: Adding missing file path length check for install location to cover situation where staging directory is outside the install directory.
Change 3593632 by Leigh.Swift
BuildPatchServices: Adding additional installation tracking to BuildPatchServices. See Engine/Source/Runtime/Online/BuildPatchServices/Public/Interfaces/IBuildInstaller.h
[CL 4273704 by Leigh Swift in Main branch]
2018-08-09 17:55:56 -04:00
|
|
|
void FWebImageCache::Empty()
|
|
|
|
|
{
|
|
|
|
|
for (const TSharedRef<FWebImage>& WebImage : StrongRefCache)
|
|
|
|
|
{
|
|
|
|
|
WebImage->CancelDownload();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UrlToImageMap.Empty();
|
|
|
|
|
StrongRefCache.Empty();
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-05 14:13:13 -04:00
|
|
|
TSharedRef<const FWebImage> FWebImageCache::Download(const FString& Url, const TOptional<FString>& DefaultImageUrl)
|
2015-02-23 15:58:14 -05:00
|
|
|
{
|
2015-08-05 14:13:13 -04:00
|
|
|
TAttribute<const FSlateBrush*> StandInBrush;
|
|
|
|
|
TOptional<FString> StandInEtag;
|
|
|
|
|
// If the optional DefaultImageUrl is set, use its brush as the stand-in image, falling back to the default brush if not downloaded yet.
|
|
|
|
|
if (DefaultImageUrl.IsSet())
|
|
|
|
|
{
|
|
|
|
|
TSharedRef<const FWebImage> DefaultImage = Download(DefaultImageUrl.GetValue());
|
|
|
|
|
StandInBrush = DefaultImage->Attr();
|
|
|
|
|
|
|
|
|
|
// If already downloaded, the etag will prevent further downloads, if the current URLs contents are identical to the default image.
|
|
|
|
|
StandInEtag = DefaultImage->GetETag();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
StandInBrush = DefaultStandInBrush;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-23 15:58:14 -05:00
|
|
|
// canonicalize URL (we don't currently have code to do this so just treat the URL as opaque)
|
|
|
|
|
const FString& CanonicalUrl = Url;
|
|
|
|
|
|
|
|
|
|
// see if there's a cached copy
|
|
|
|
|
TWeakPtr<FWebImage>* ImageFind = UrlToImageMap.Find(CanonicalUrl);
|
|
|
|
|
TSharedPtr<FWebImage> ImagePtr;
|
|
|
|
|
if (ImageFind != nullptr)
|
|
|
|
|
{
|
|
|
|
|
ImagePtr = ImageFind->Pin();
|
|
|
|
|
if (!ImagePtr.IsValid())
|
|
|
|
|
{
|
|
|
|
|
UrlToImageMap.Remove(CanonicalUrl);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// return any pinned version
|
|
|
|
|
if (ImagePtr.IsValid())
|
|
|
|
|
{
|
|
|
|
|
// if it is done and we failed, and it's being requested again, queue up another try
|
|
|
|
|
if (ImagePtr->DidDownloadFail())
|
|
|
|
|
{
|
2015-08-05 14:13:13 -04:00
|
|
|
ImagePtr->SetStandInBrush(StandInBrush);
|
|
|
|
|
ImagePtr->BeginDownload(ImagePtr->GetUrl(), StandInEtag);
|
2015-02-23 15:58:14 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// return the image ptr
|
|
|
|
|
TSharedRef<FWebImage> ImageRef = ImagePtr.ToSharedRef();
|
|
|
|
|
StrongRefCache.AddUnique(ImageRef);
|
|
|
|
|
return ImageRef;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// make a new one
|
|
|
|
|
TSharedRef<FWebImage> WebImage = MakeShareable(new FWebImage());
|
2015-08-05 14:13:13 -04:00
|
|
|
WebImage->SetStandInBrush(StandInBrush);
|
|
|
|
|
WebImage->BeginDownload(CanonicalUrl, StandInEtag);
|
2015-02-23 15:58:14 -05:00
|
|
|
|
|
|
|
|
// add it to the cache
|
|
|
|
|
StrongRefCache.Add(WebImage);
|
|
|
|
|
UrlToImageMap.Add(CanonicalUrl, WebImage);
|
|
|
|
|
|
|
|
|
|
return WebImage;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FWebImageCache::RelinquishUnusedImages()
|
|
|
|
|
{
|
|
|
|
|
StrongRefCache.Empty();
|
|
|
|
|
for (auto It = UrlToImageMap.CreateConstIterator(); It;)
|
|
|
|
|
{
|
|
|
|
|
if (!It.Value().IsValid())
|
|
|
|
|
{
|
|
|
|
|
auto RemoveMe = It;
|
|
|
|
|
++It;
|
|
|
|
|
UrlToImageMap.Remove(RemoveMe.Key());
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
++It;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|