VirtualBox

Changeset 104786 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 27, 2024 8:42:44 AM (6 months ago)
Author:
vboxsync
Message:

Main: Added a new include VBox/graphics.h to avoid dragging in a lot of other includes not needed in Main. bugref:​10693

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.h

    r104777 r104786  
    7272#endif
    7373
     74#include <VBox/graphics.h> /* For VRAM ranges. */
     75
    7476#include <iprt/list.h>
    7577
     
    7779/** Use VBE bytewise I/O. Only needed for Windows Longhorn/Vista betas and backwards compatibility. */
    7880#define VBE_BYTEWISE_IO
    79 
    80 #ifdef VBOX
    81 /** The default amount of VRAM. */
    82 # define VGA_VRAM_DEFAULT    (_4M)
    83 /** The maximum amount of VRAM. Limited by VBOX_MAX_ALLOC_PAGE_COUNT. */
    84 # define VGA_VRAM_MAX        (256 * _1M)
    85 /** The minimum amount of VRAM. */
    86 # define VGA_VRAM_MIN        (_1M)
    87 #endif
    88 
    8981
    9082/** @name Macros dealing with partial ring-0/raw-mode VRAM mappings.
  • trunk/src/VBox/Devices/Graphics/vmsvga_include/svga_reg.h

    r100690 r104786  
    4141
    4242#include "svga_types.h"
     43
     44#include <VBox/graphics.h> /* For VRAM ranges. */
    4345
    4446/*
     
    22682270 * Size of SVGA device memory such as frame buffer and FIFO.
    22692271 */
    2270 #define SVGA_VRAM_MIN_SIZE             (4 * 640 * 480) /* bytes */
    2271 #define SVGA_VRAM_MIN_SIZE_3D       (16 * 1024 * 1024)
    2272 #define SVGA_VRAM_MAX_SIZE         (128 * 1024 * 1024)
    22732272#define SVGA_MEMORY_SIZE_MAX      (1024 * 1024 * 1024)
    22742273#define SVGA_FIFO_SIZE_MAX           (2 * 1024 * 1024)
  • trunk/src/VBox/Main/Makefile.kmk

    r104783 r104786  
    211211# Unconditionally enable the new semaphore key generation code
    212212VBOX_MAIN_DEFS += VBOX_WITH_NEW_SYS_V_KEYGEN
    213 
    214 # Main graphics include paths. Used by VBoxC and VBoxSVC.
    215 VBOX_MAIN_GRAPHICS_INCS = \
    216         $(PATH_ROOT)/src/VBox/Devices/Graphics/ \
    217         $(if $(VBOX_WITH_VMSVGA),$(PATH_ROOT)/src/VBox/Devices/Graphics/vmsvga_include,) \
    218         $(VBOX_GRAPHICS_INCS)
    219213
    220214VBOX_IDL_FILE.MSCOM    = $(VBOX_PATH_SDK)/bindings/mscom/idl/VirtualBox.idl
     
    573567        $(dir $(VBOX_XML_SCHEMADEFS_H)) \
    574568        $(VBOX_MAIN_APIWRAPPER_INCS) \
    575         $(VBOX_MAIN_GRAPHICS_INCS) \
    576569        . \
     570        $(VBOX_GRAPHICS_INCS)
    577571        VBoxSVC_INCS.win = \
    578572        $(VBoxCOM_0_OUTDIR)
     
    10821076        $(dir $(VBOX_XML_SCHEMADEFS_H)) \
    10831077        $(VBOX_MAIN_APIWRAPPER_DIR)/dtrace \
    1084         $(VBOX_MAIN_GRAPHICS_INCS)
     1078        $(VBOX_GRAPHICS_INCS)
    10851079 VBoxC_INCS.win     = \
    10861080        $(VBoxCOM_0_OUTDIR) \
  • trunk/src/VBox/Main/src-all/PlatformPropertiesImpl.cpp

    r104781 r104786  
    3232#include "Global.h"
    3333
    34 #include "VBox/vmm/pdmcritsect.h"            /* required by DevVGA.h */
    35 #include "VBox/param.h"                      /* Ditto. */
    36 #include "DevVGA.h"
    37 
    3834#include <iprt/cpp/utils.h>
    3935
     36#include <VBox/graphics.h> /* For VRAM ranges. */
    4037#include <VBox/settings.h>
    4138
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette