diff options
Diffstat (limited to 'src/video_core/framebuffer_config.h')
| -rw-r--r-- | src/video_core/framebuffer_config.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/framebuffer_config.h b/src/video_core/framebuffer_config.h index 856f4bd52..6a18b76fb 100644 --- a/src/video_core/framebuffer_config.h +++ b/src/video_core/framebuffer_config.h | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #include "common/math_util.h" | 7 | #include "common/math_util.h" |
| 8 | #include "core/hle/service/nvnflinger/buffer_transform_flags.h" | 8 | #include "core/hle/service/nvnflinger/buffer_transform_flags.h" |
| 9 | #include "core/hle/service/nvnflinger/pixel_format.h" | 9 | #include "core/hle/service/nvnflinger/pixel_format.h" |
| 10 | #include "core/hle/service/nvnflinger/ui/fence.h" | ||
| 10 | 11 | ||
| 11 | namespace Tegra { | 12 | namespace Tegra { |
| 12 | 13 | ||
| @@ -21,7 +22,10 @@ struct FramebufferConfig { | |||
| 21 | u32 stride{}; | 22 | u32 stride{}; |
| 22 | Service::android::PixelFormat pixel_format{}; | 23 | Service::android::PixelFormat pixel_format{}; |
| 23 | Service::android::BufferTransformFlags transform_flags{}; | 24 | Service::android::BufferTransformFlags transform_flags{}; |
| 24 | Common::Rectangle<int> crop_rect; | 25 | Common::Rectangle<int> crop_rect{}; |
| 25 | }; | 26 | }; |
| 26 | 27 | ||
| 28 | Common::Rectangle<f32> NormalizeCrop(const FramebufferConfig& framebuffer, u32 texture_width, | ||
| 29 | u32 texture_height); | ||
| 30 | |||
| 27 | } // namespace Tegra | 31 | } // namespace Tegra |