diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-11 14:10:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-11 14:10:55 -0400 |
commit | d64303d185f86901d0f587faf0e9a65d8497169c (patch) | |
tree | 27e105a3534a2a92d2ea6468dab723cc156118fa /src/video_core/gpu.h | |
parent | b8b9f41b6b3488de84877d34453ca6a0338aeeaf (diff) | |
parent | 20c2928c2b157b8a322a128732cd00cabbfa9d6d (diff) |
Merge pull request #1016 from lioncash/video
video_core: Get rid of global variable g_toggle_framelimit_enabled
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r-- | src/video_core/gpu.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 0164c747a..b57312b3b 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -6,7 +6,6 @@ #include <memory> #include <unordered_map> -#include <vector> #include "common/common_types.h" #include "core/hle/service/nvflinger/buffer_queue.h" #include "video_core/memory_manager.h" @@ -72,14 +71,7 @@ struct FramebufferConfig { /** * Returns the number of bytes per pixel. */ - static u32 BytesPerPixel(PixelFormat format) { - switch (format) { - case PixelFormat::ABGR8: - return 4; - } - - UNREACHABLE(); - } + static u32 BytesPerPixel(PixelFormat format); VAddr address; u32 offset; |