yuzu/src
Lioncash 3350c0a779 renderer_opengl/gl_global_cache: Replace indexing for assignment with insert_or_assign
The previous code had some minor issues with it, really not a big deal,
but amending it is basically 'free', so I figured, "why not?".

With the standard container maps, when:

map[key] = thing;

is done, this can cause potentially undesirable behavior in certain
scenarios. In particular, if there's no value associated with the key,
then the map constructs a default initialized instance of the value
type.

In this case, since it's a std::shared_ptr (as a type alias) that is
the value type, this will construct a std::shared_pointer, and then
assign over it (with objects that are quite large, or actively heap
allocate this can be extremely undesirable).

We also make the function take the region by value, as we can avoid a
copy (and by extension with std::shared_ptr, a copy causes an atomic
reference count increment), in certain scenarios when ownership isn't a
concern (i.e. when ReserveGlobalRegion is called with an rvalue
reference, then no copy at all occurs). So, it's more-or-less a "free"
gain without many downsides.
2019-03-11 12:20:35 -04:00
..
audio_core audio_core/cubeb_sink: Convert _MSC_VER ifdefs to _WIN32 2019-03-09 18:06:23 -05:00
common Merge pull request #2147 from ReinUsesLisp/texture-clean 2019-03-10 17:28:36 -04:00
core Merge pull request #2207 from lioncash/hwopus 2019-03-10 17:32:39 -04:00
input_common common/math_util: Move contents into the Common namespace 2019-02-27 03:38:39 -05:00
tests kernel/address_arbiter: Pass in system instance to constructor 2019-03-05 15:47:03 -05:00
video_core renderer_opengl/gl_global_cache: Replace indexing for assignment with insert_or_assign 2019-03-11 12:20:35 -04:00
web_service web_service: Remove unnecessary inclusions 2019-03-02 14:58:49 -05:00
yuzu Merge pull request #2196 from DarkLordZach/web-applet-esc 2019-03-07 15:32:32 -05:00
yuzu_cmd yuzu_cmd/config: Replace C casts with static_cast 2019-03-09 03:59:23 -03:00
.clang-format Remove special rules for Windows.h and library includes 2016-09-21 00:16:33 -07:00
CMakeLists.txt Port web_service from Citra 2018-10-02 15:30:48 +02:00