VirtualBox

Ignore:
Timestamp:
Jun 5, 2014 7:35:49 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94189
Message:

VBoxHeadless: Framebuffer implementation is not needed anymore.

Location:
trunk/src/VBox/Frontends/VBoxHeadless
Files:
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/Makefile.kmk

    r51504 r51542  
    4646VBoxHeadless_DEFS      += $(if $(VBOX_WITH_VPX),VBOX_WITH_VPX,)
    4747VBoxHeadless_SOURCES    = VBoxHeadless.cpp
    48 VBoxHeadless_SOURCES  += Framebuffer.cpp
    4948ifdef VBOX_WITH_GUEST_PROPS
    5049 VBoxHeadless_DEFS     += VBOX_WITH_GUEST_PROPS
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r51505 r51542  
    55
    66/*
    7  * Copyright (C) 2006-2012 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    5353#include <signal.h>
    5454#endif
    55 
    56 #include "Framebuffer.h"
    57 
    58 #include "NullFramebuffer.h"
    5955
    6056////////////////////////////////////////////////////////////////////////////////
     
    635631static CComModule _Module;
    636632#endif
    637 
    638 ComPtr<IDisplay> display;
    639633
    640634/**
     
    966960        CHECK_ERROR_BREAK(console, COMGETTER(Machine)(machine.asOutParam()));
    967961
     962        ComPtr<IDisplay> display;
    968963        CHECK_ERROR_BREAK(console, COMGETTER(Display)(display.asOutParam()));
    969964
     
    978973        }
    979974#endif /* defined(VBOX_WITH_VPX) */
    980         ULONG cMonitors = 1;
    981         machine->COMGETTER(MonitorCount)(&cMonitors);
    982 
    983         unsigned uScreenId;
    984         for (uScreenId = 0; uScreenId < cMonitors; uScreenId++)
    985         {
    986             VRDPFramebuffer *pVRDPFramebuffer = new VRDPFramebuffer();
    987             if (!pVRDPFramebuffer)
    988             {
    989                 RTPrintf("Error: could not create framebuffer object %d\n", uScreenId);
    990                 break;
    991             }
    992             pVRDPFramebuffer->AddRef();
    993             display->AttachFramebuffer(uScreenId, pVRDPFramebuffer);
    994         }
    995         if (uScreenId < cMonitors)
    996         {
    997             break;
    998         }
    999 
    1000         // fill in remaining slots with null framebuffers
    1001         for (uScreenId = 0; uScreenId < cMonitors; uScreenId++)
    1002         {
    1003             ComPtr<IFramebuffer> fb;
    1004             HRESULT hrc2 = display->QueryFramebuffer(uScreenId,
    1005                                                      fb.asOutParam());
    1006             if (hrc2 == S_OK && fb.isNull())
    1007             {
    1008                 NullFB *pNullFB =  new NullFB();
    1009                 pNullFB->AddRef();
    1010                 pNullFB->init();
    1011                 display->AttachFramebuffer(uScreenId, pNullFB);
    1012             }
    1013         }
    1014975
    1015976        /* get the machine debugger (isn't necessarily available) */
     
    12791240    while (0);
    12801241
    1281     display.setNull();
    1282 
    12831242    /*
    12841243     * Get the machine state.
     
    14051364}
    14061365#endif /* !VBOX_WITH_HARDENING */
    1407 
    1408 #ifdef VBOX_WITH_XPCOM
    1409 NS_DECL_CLASSINFO(NullFB)
    1410 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(NullFB, IFramebuffer)
    1411 #endif
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