#0 0x00007ff0923ebbf6 in _xcb_conn_wait () from /tmp/apport_sandbox_Q4yo3t/usr/lib/x86_64-linux-gnu/libxcb.so.1 #1 0x00007ff0923ec31d in _xcb_out_send () from /tmp/apport_sandbox_Q4yo3t/usr/lib/x86_64-linux-gnu/libxcb.so.1 #2 0x00007ff0923ec3a5 in xcb_writev () from /tmp/apport_sandbox_Q4yo3t/usr/lib/x86_64-linux-gnu/libxcb.so.1 #3 0x00007ff099e7b48e in _XSend (dpy=0x562be8f8ad40, data=data@entry=0x0, size=size@entry=0) at ../../src/xcb_io.c:495 [Error: xcb_io.c was not found in source tree] #4 0x00007ff099e7b982 in _XReply (dpy=dpy@entry=0x562be8f8ad40, rep=rep@entry=0x7ffc6bb0a1d0, extra=extra@entry=0, discard=discard@entry=1) at ../../src/xcb_io.c:581 [Error: xcb_io.c was not found in source tree] #5 0x00007ff099e71b8e in XQueryPointer (dpy=0x562be8f8ad40, w=1276, root=root@entry=0x7ffc6bb0a2d0, child=child@entry=0x7ffc6bb0a2d8, root_x=root_x@entry=0x7ffc6bb0a2b4, root_y=root_y@entry=0x7ffc6bb0a2b8, win_x=0x7ffc6bb0a2bc, win_y=0x7ffc6bb0a2c0, mask=0x7ffc6bb0a2c4) at ../../src/QuPntr.c:48 [Error: QuPntr.c was not found in source tree] #6 0x00007ff08646939f in X11SalFrame::Init (this=this@entry=0x562bf03622c0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:513 508: int root_x = 0, root_y = 0, lx, ly; 509: unsigned int mask; 510: XQueryPointer( GetXDisplay(), 511: GetDisplay()->GetRootWindow( m_nXScreen ), 512: &aRoot, &aChild, 513: &root_x, &root_y, &lx, &ly, &mask ); 514: const std::vector< Rectangle >& rScreens = GetDisplay()->GetXineramaScreens(); 515: for(const auto & rScreen : rScreens) 516: if( rScreen.IsInside( Point( root_x, root_y ) ) ) 517: { 518: x = rScreen.Left(); #7 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf03622c0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #8 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf03622c0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #9 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #10 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0361940, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #11 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0361940, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #12 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0361940, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #13 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #14 WorkWindow::ImplInit (this=this@entry=0x562bf0360fb0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #15 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0360fb0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #16 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #17 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #18 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #19 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #20 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #21 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf035eda0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #22 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf035e550, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #23 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0360a90, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #24 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0360a90, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #25 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb0a980, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #26 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #27 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #28 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #29 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #30 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #31 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #32 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #33 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #34 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb0b200: 0, icon_mask=@0x7ffc6bb0b218: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #35 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0357230, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #36 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0357230, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #37 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0357230, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #38 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #39 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf03568b0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #40 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf03568b0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #41 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf03568b0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #42 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #43 WorkWindow::ImplInit (this=this@entry=0x562bf0355f20, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #44 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0355f20, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #45 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #46 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #47 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #48 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #49 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #50 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0353d10, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #51 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf03534c0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #52 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0355a00, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #53 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0355a00, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #54 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb0b850, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #55 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #56 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #57 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #58 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #59 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #60 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #61 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #62 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #63 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb0c0d0: 0, icon_mask=@0x7ffc6bb0c0e8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #64 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf034c1a0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #65 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf034c1a0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #66 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf034c1a0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #67 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #68 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf034b820, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #69 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf034b820, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #70 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf034b820, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #71 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #72 WorkWindow::ImplInit (this=this@entry=0x562bf034ae90, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #73 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf034ae90, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #74 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #75 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #76 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #77 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #78 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #79 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0348c80, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #80 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0348430, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #81 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf034a970, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #82 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf034a970, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #83 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb0c720, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #84 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #85 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #86 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #87 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #88 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #89 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #90 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #91 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #92 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb0cfa0: 0, icon_mask=@0x7ffc6bb0cfb8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #93 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0341110, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #94 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0341110, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #95 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0341110, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #96 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #97 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0340790, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #98 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0340790, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #99 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0340790, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #100 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #101 WorkWindow::ImplInit (this=this@entry=0x562bf033fe00, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #102 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf033fe00, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #103 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #104 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #105 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #106 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #107 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #108 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf033dbf0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #109 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf033d3a0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #110 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf033f8e0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #111 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf033f8e0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #112 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb0d5f0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #113 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #114 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #115 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #116 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #117 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #118 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #119 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #120 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #121 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb0de70: 0, icon_mask=@0x7ffc6bb0de88: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #122 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0336080, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #123 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0336080, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #124 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0336080, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #125 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #126 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0335700, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #127 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0335700, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #128 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0335700, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #129 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #130 WorkWindow::ImplInit (this=this@entry=0x562bf0334d70, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #131 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0334d70, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #132 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #133 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #134 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #135 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #136 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #137 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0332b60, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #138 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0332310, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #139 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0334850, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #140 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0334850, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #141 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb0e4c0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #142 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #143 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #144 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #145 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #146 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #147 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #148 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #149 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #150 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb0ed40: 0, icon_mask=@0x7ffc6bb0ed58: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #151 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf032aff0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #152 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf032aff0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #153 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf032aff0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #154 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #155 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf032a670, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #156 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf032a670, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #157 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf032a670, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #158 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #159 WorkWindow::ImplInit (this=this@entry=0x562bf0329ce0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #160 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0329ce0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #161 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #162 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #163 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #164 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #165 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #166 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0327ad0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #167 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0327280, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #168 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf03297c0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #169 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf03297c0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #170 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb0f390, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #171 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #172 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #173 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #174 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #175 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #176 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #177 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #178 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #179 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb0fc10: 0, icon_mask=@0x7ffc6bb0fc28: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #180 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf031ff60, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #181 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf031ff60, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #182 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf031ff60, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #183 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #184 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf031f5e0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #185 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf031f5e0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #186 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf031f5e0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #187 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #188 WorkWindow::ImplInit (this=this@entry=0x562bf031ec50, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #189 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf031ec50, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #190 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #191 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #192 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #193 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #194 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #195 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf031ca40, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #196 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf031c1f0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #197 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf031e730, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #198 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf031e730, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #199 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb10260, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #200 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #201 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #202 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #203 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #204 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #205 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #206 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #207 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #208 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb10ae0: 0, icon_mask=@0x7ffc6bb10af8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #209 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0314ed0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #210 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0314ed0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #211 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0314ed0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #212 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #213 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0314550, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #214 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0314550, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #215 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0314550, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #216 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #217 WorkWindow::ImplInit (this=this@entry=0x562bf0313bc0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #218 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0313bc0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #219 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #220 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #221 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #222 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #223 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #224 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf03119b0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #225 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0311160, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #226 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf03136a0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #227 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf03136a0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #228 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb11130, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #229 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #230 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #231 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #232 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #233 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #234 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #235 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #236 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #237 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb119b0: 0, icon_mask=@0x7ffc6bb119c8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #238 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0309e40, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #239 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0309e40, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #240 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0309e40, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #241 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #242 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf03094c0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #243 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf03094c0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #244 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf03094c0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #245 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #246 WorkWindow::ImplInit (this=this@entry=0x562bf0308b30, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #247 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0308b30, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #248 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #249 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #250 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #251 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #252 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #253 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0306920, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #254 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf03060d0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #255 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0308610, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #256 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0308610, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #257 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb12000, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #258 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #259 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #260 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #261 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #262 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #263 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #264 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #265 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #266 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb12880: 0, icon_mask=@0x7ffc6bb12898: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #267 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf02fedb0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #268 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf02fedb0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #269 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf02fedb0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #270 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #271 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf02fe430, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #272 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf02fe430, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #273 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf02fe430, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #274 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #275 WorkWindow::ImplInit (this=this@entry=0x562bf02fdaa0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #276 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02fdaa0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #277 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #278 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #279 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #280 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #281 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #282 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf02fb890, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #283 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf02fb040, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #284 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf02fd580, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #285 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf02fd580, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #286 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb12ed0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #287 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #288 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #289 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #290 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #291 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #292 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #293 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #294 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #295 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb13750: 0, icon_mask=@0x7ffc6bb13768: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #296 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf02f3d20, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #297 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf02f3d20, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #298 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf02f3d20, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #299 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #300 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf02f33a0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #301 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf02f33a0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #302 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf02f33a0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #303 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #304 WorkWindow::ImplInit (this=this@entry=0x562bf02f2a10, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #305 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02f2a10, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #306 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #307 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #308 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #309 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #310 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #311 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf02f0800, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #312 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf02effb0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #313 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf02f24f0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #314 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf02f24f0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #315 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb13da0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #316 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #317 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #318 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #319 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #320 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #321 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #322 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #323 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #324 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb14620: 0, icon_mask=@0x7ffc6bb14638: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #325 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf02e8c90, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #326 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf02e8c90, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #327 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf02e8c90, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #328 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #329 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf02e8310, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #330 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf02e8310, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #331 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf02e8310, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #332 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #333 WorkWindow::ImplInit (this=this@entry=0x562bf02e7980, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #334 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02e7980, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #335 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #336 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #337 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #338 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #339 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #340 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf02e5770, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #341 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf02e4f20, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #342 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf02e7460, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #343 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf02e7460, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #344 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb14c70, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #345 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #346 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #347 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #348 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #349 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #350 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #351 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #352 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #353 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb154f0: 0, icon_mask=@0x7ffc6bb15508: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #354 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf02ddc00, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #355 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf02ddc00, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #356 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf02ddc00, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #357 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #358 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf02dd280, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #359 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf02dd280, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #360 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf02dd280, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #361 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #362 WorkWindow::ImplInit (this=this@entry=0x562bf02dc8f0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #363 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02dc8f0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #364 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #365 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #366 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #367 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #368 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #369 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf02da6e0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #370 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf02d9e90, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #371 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf02dc3d0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #372 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf02dc3d0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #373 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb15b40, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #374 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #375 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #376 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #377 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #378 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #379 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #380 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #381 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #382 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb163c0: 0, icon_mask=@0x7ffc6bb163d8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #383 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf02d2b70, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #384 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf02d2b70, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #385 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf02d2b70, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #386 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #387 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf02d21f0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #388 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf02d21f0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #389 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf02d21f0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #390 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #391 WorkWindow::ImplInit (this=this@entry=0x562bf02d1860, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #392 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02d1860, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #393 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #394 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #395 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #396 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #397 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #398 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf02cf650, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #399 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf02cee00, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #400 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf02d1340, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #401 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf02d1340, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #402 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb16a10, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #403 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #404 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #405 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #406 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #407 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #408 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #409 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #410 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #411 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb17290: 0, icon_mask=@0x7ffc6bb172a8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #412 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf02c7ae0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #413 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf02c7ae0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #414 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf02c7ae0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #415 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #416 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf02c7160, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #417 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf02c7160, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #418 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf02c7160, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #419 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #420 WorkWindow::ImplInit (this=this@entry=0x562bf02c67d0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #421 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02c67d0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #422 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #423 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #424 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #425 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #426 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #427 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf02c45c0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #428 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf02c3d70, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #429 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf02c62b0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #430 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf02c62b0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #431 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb178e0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #432 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #433 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #434 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #435 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #436 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #437 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #438 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #439 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #440 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb18160: 0, icon_mask=@0x7ffc6bb18178: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #441 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf02bca50, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #442 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf02bca50, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #443 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf02bca50, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #444 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #445 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf02bc0d0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #446 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf02bc0d0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #447 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf02bc0d0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #448 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #449 WorkWindow::ImplInit (this=this@entry=0x562bf02bb740, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #450 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02bb740, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #451 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #452 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #453 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #454 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #455 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #456 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf02b9530, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #457 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf02b8ce0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #458 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf02bb220, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #459 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf02bb220, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #460 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb187b0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #461 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #462 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #463 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #464 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #465 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #466 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #467 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #468 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #469 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb19030: 0, icon_mask=@0x7ffc6bb19048: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #470 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf02b19c0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #471 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf02b19c0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #472 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf02b19c0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #473 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #474 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf02b1040, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #475 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf02b1040, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #476 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf02b1040, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #477 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #478 WorkWindow::ImplInit (this=this@entry=0x562bf02b06b0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #479 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02b06b0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #480 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #481 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #482 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #483 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #484 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #485 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf02ae4a0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #486 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf02adc50, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #487 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf02b0190, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #488 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf02b0190, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #489 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb19680, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #490 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #491 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #492 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #493 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #494 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #495 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #496 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #497 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #498 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb19f00: 0, icon_mask=@0x7ffc6bb19f18: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #499 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf02a6930, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #500 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf02a6930, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #501 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf02a6930, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #502 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #503 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf02a5fb0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #504 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf02a5fb0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #505 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf02a5fb0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #506 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #507 WorkWindow::ImplInit (this=this@entry=0x562bf02a5620, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #508 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02a5620, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #509 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #510 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #511 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #512 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #513 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #514 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf02a3410, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #515 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf02a2bc0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #516 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf02a5100, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #517 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf02a5100, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #518 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb1a550, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #519 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #520 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #521 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #522 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #523 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #524 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #525 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #526 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #527 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb1add0: 0, icon_mask=@0x7ffc6bb1ade8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #528 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf029b8a0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #529 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf029b8a0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #530 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf029b8a0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #531 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #532 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf029af20, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #533 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf029af20, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #534 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf029af20, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #535 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #536 WorkWindow::ImplInit (this=this@entry=0x562bf029a590, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #537 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf029a590, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #538 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #539 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #540 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #541 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #542 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #543 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0298380, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #544 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0297b30, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #545 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf029a070, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #546 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf029a070, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #547 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb1b420, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #548 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #549 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #550 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #551 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #552 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #553 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #554 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #555 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #556 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb1bca0: 0, icon_mask=@0x7ffc6bb1bcb8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #557 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0290810, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #558 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0290810, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #559 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0290810, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #560 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #561 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf028fe90, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #562 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf028fe90, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #563 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf028fe90, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #564 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #565 WorkWindow::ImplInit (this=this@entry=0x562bf028f500, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #566 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf028f500, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #567 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #568 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #569 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #570 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #571 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #572 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf028d2f0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #573 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf028caa0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #574 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf028efe0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #575 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf028efe0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #576 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb1c2f0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #577 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #578 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #579 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #580 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #581 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #582 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #583 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #584 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #585 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb1cb70: 0, icon_mask=@0x7ffc6bb1cb88: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #586 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0285780, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #587 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0285780, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #588 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0285780, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #589 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #590 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0284e00, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #591 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0284e00, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #592 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0284e00, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #593 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #594 WorkWindow::ImplInit (this=this@entry=0x562bf0284470, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #595 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0284470, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #596 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #597 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #598 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #599 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #600 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #601 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0282260, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #602 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0281a10, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #603 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0283f50, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #604 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0283f50, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #605 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb1d1c0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #606 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #607 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #608 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #609 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #610 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #611 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #612 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #613 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #614 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb1da40: 0, icon_mask=@0x7ffc6bb1da58: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #615 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf027a6f0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #616 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf027a6f0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #617 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf027a6f0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #618 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #619 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0279d70, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #620 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0279d70, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #621 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0279d70, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #622 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #623 WorkWindow::ImplInit (this=this@entry=0x562bf02793e0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #624 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02793e0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #625 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #626 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #627 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #628 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #629 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #630 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf02771d0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #631 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0276980, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #632 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0278ec0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #633 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0278ec0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #634 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb1e090, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #635 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #636 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #637 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #638 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #639 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #640 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #641 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #642 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #643 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb1e910: 0, icon_mask=@0x7ffc6bb1e928: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #644 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf026f660, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #645 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf026f660, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #646 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf026f660, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #647 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #648 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf026ece0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #649 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf026ece0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #650 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf026ece0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #651 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #652 WorkWindow::ImplInit (this=this@entry=0x562bf026e350, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #653 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf026e350, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #654 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #655 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #656 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #657 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #658 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #659 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf026c140, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #660 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf026b8f0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #661 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf026de30, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #662 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf026de30, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #663 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb1ef60, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #664 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #665 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #666 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #667 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #668 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #669 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #670 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #671 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #672 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb1f7e0: 0, icon_mask=@0x7ffc6bb1f7f8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #673 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf02645d0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #674 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf02645d0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #675 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf02645d0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #676 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #677 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0263c50, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #678 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0263c50, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #679 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0263c50, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #680 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #681 WorkWindow::ImplInit (this=this@entry=0x562bf02632c0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #682 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02632c0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #683 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #684 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #685 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #686 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #687 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #688 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf02610b0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #689 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0260860, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #690 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0262da0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #691 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0262da0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #692 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb1fe30, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #693 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #694 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #695 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #696 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #697 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #698 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #699 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #700 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #701 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb206b0: 0, icon_mask=@0x7ffc6bb206c8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #702 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0259540, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #703 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0259540, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #704 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0259540, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #705 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #706 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0258bc0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #707 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0258bc0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #708 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0258bc0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #709 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #710 WorkWindow::ImplInit (this=this@entry=0x562bf02581f0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #711 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02581f0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #712 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #713 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #714 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #715 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #716 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #717 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0258160, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #718 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0255e60, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #719 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0257d10, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #720 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0257d10, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #721 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb20d00, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #722 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #723 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #724 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #725 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #726 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #727 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #728 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #729 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #730 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb21580: 0, icon_mask=@0x7ffc6bb21598: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #731 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf024e490, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #732 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf024e490, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #733 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf024e490, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #734 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #735 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf024db10, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #736 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf024db10, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #737 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf024db10, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #738 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #739 WorkWindow::ImplInit (this=this@entry=0x562bf024d140, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #740 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf024d140, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #741 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #742 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #743 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #744 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #745 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #746 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf024d0b0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #747 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf024adb0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #748 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf024cc60, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #749 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf024cc60, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #750 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb21bd0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #751 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #752 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #753 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #754 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #755 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #756 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #757 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #758 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #759 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb22450: 0, icon_mask=@0x7ffc6bb22468: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #760 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf02433e0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #761 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf02433e0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #762 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf02433e0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #763 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #764 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0242a60, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #765 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0242a60, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #766 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0242a60, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #767 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #768 WorkWindow::ImplInit (this=this@entry=0x562bf02420d0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #769 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf02420d0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #770 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #771 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #772 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #773 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #774 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #775 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf023fec0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #776 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf023f670, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #777 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0241bb0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #778 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0241bb0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #779 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb22aa0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #780 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #781 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #782 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #783 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #784 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #785 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #786 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #787 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #788 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb23320: 0, icon_mask=@0x7ffc6bb23338: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #789 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0238350, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #790 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0238350, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #791 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0238350, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #792 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #793 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf02379d0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #794 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf02379d0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #795 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf02379d0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #796 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #797 WorkWindow::ImplInit (this=this@entry=0x562bf0237040, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #798 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0237040, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #799 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #800 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #801 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #802 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #803 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #804 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0234e30, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #805 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf02345e0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #806 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0236b20, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #807 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0236b20, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #808 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb23970, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #809 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #810 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #811 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #812 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #813 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #814 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #815 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #816 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #817 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb241f0: 0, icon_mask=@0x7ffc6bb24208: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #818 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf022d2c0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #819 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf022d2c0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #820 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf022d2c0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #821 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #822 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf022c940, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #823 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf022c940, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #824 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf022c940, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #825 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #826 WorkWindow::ImplInit (this=this@entry=0x562bf022bfb0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #827 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf022bfb0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #828 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #829 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #830 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #831 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #832 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #833 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0229da0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #834 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0229550, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #835 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf022ba90, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #836 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf022ba90, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #837 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb24840, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #838 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #839 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #840 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #841 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #842 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #843 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #844 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #845 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #846 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb250c0: 0, icon_mask=@0x7ffc6bb250d8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #847 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0222230, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #848 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0222230, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #849 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0222230, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #850 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #851 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf02218b0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #852 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf02218b0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #853 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf02218b0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #854 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #855 WorkWindow::ImplInit (this=this@entry=0x562bf0220f20, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #856 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0220f20, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #857 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #858 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #859 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #860 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #861 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #862 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf021ed10, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #863 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf021e4c0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #864 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0220a00, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #865 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0220a00, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #866 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb25710, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #867 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #868 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #869 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #870 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #871 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #872 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #873 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #874 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #875 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb25f90: 0, icon_mask=@0x7ffc6bb25fa8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #876 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf02171a0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #877 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf02171a0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #878 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf02171a0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #879 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #880 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0216820, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #881 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0216820, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #882 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0216820, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #883 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #884 WorkWindow::ImplInit (this=this@entry=0x562bf0215e90, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #885 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0215e90, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #886 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #887 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #888 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #889 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #890 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #891 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0213c80, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #892 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0213430, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #893 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0215970, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #894 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0215970, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #895 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb265e0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #896 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #897 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #898 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #899 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #900 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #901 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #902 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #903 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #904 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb26e60: 0, icon_mask=@0x7ffc6bb26e78: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #905 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf020c110, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #906 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf020c110, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #907 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf020c110, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #908 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #909 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf020b790, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #910 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf020b790, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #911 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf020b790, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #912 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #913 WorkWindow::ImplInit (this=this@entry=0x562bf020ae00, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #914 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf020ae00, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #915 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #916 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #917 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #918 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #919 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #920 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0208bf0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #921 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf02083a0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #922 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf020a8e0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #923 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf020a8e0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #924 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb274b0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #925 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #926 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #927 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #928 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #929 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #930 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #931 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #932 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #933 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb27d30: 0, icon_mask=@0x7ffc6bb27d48: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #934 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0201080, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #935 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0201080, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #936 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0201080, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #937 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #938 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0200700, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #939 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0200700, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #940 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0200700, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #941 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #942 WorkWindow::ImplInit (this=this@entry=0x562bf01ffd70, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #943 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf01ffd70, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #944 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #945 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #946 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #947 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #948 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #949 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf01fdb60, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #950 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf01fd310, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #951 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf01ff850, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #952 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf01ff850, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #953 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb28380, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #954 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #955 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #956 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #957 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #958 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #959 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #960 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #961 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #962 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb28c00: 0, icon_mask=@0x7ffc6bb28c18: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #963 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf01f5ff0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #964 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf01f5ff0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #965 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf01f5ff0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #966 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #967 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf01f5670, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #968 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf01f5670, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #969 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf01f5670, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #970 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #971 WorkWindow::ImplInit (this=this@entry=0x562bf01f4ce0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #972 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf01f4ce0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #973 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #974 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #975 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #976 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #977 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #978 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf01f2ad0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #979 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf01f2280, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #980 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf01f47c0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #981 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf01f47c0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #982 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb29250, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #983 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #984 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #985 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #986 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #987 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #988 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #989 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #990 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #991 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb29ad0: 0, icon_mask=@0x7ffc6bb29ae8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #992 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf01eaf60, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #993 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf01eaf60, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #994 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf01eaf60, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #995 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #996 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf01ea5e0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #997 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf01ea5e0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #998 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf01ea5e0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #999 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1000 WorkWindow::ImplInit (this=this@entry=0x562bf01e9c50, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1001 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf01e9c50, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1002 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1003 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1004 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1005 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1006 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1007 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf01e7a40, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1008 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf01e71f0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1009 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf01e9730, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1010 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf01e9730, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1011 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb2a120, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1012 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1013 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1014 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1015 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1016 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1017 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1018 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1019 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1020 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb2a9a0: 0, icon_mask=@0x7ffc6bb2a9b8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1021 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf01dfed0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1022 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf01dfed0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1023 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf01dfed0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1024 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1025 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf01df550, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1026 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf01df550, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1027 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf01df550, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1028 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1029 WorkWindow::ImplInit (this=this@entry=0x562bf01debc0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1030 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf01debc0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1031 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1032 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1033 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1034 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1035 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1036 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf01dc9b0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1037 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf01dc160, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1038 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf01de6a0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1039 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf01de6a0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1040 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb2aff0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1041 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1042 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1043 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1044 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1045 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1046 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1047 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1048 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1049 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb2b870: 0, icon_mask=@0x7ffc6bb2b888: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1050 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf01d4e40, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1051 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf01d4e40, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1052 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf01d4e40, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1053 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1054 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf01d44c0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1055 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf01d44c0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1056 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf01d44c0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1057 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1058 WorkWindow::ImplInit (this=this@entry=0x562bf01d3b30, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1059 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf01d3b30, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1060 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1061 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1062 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1063 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1064 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1065 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf01d1920, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1066 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf01d10d0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1067 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf01d3610, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1068 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf01d3610, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1069 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb2bec0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1070 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1071 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1072 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1073 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1074 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1075 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1076 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1077 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1078 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb2c740: 0, icon_mask=@0x7ffc6bb2c758: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1079 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf01c9db0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1080 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf01c9db0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1081 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf01c9db0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1082 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1083 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf01c9430, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1084 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf01c9430, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1085 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf01c9430, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1086 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1087 WorkWindow::ImplInit (this=this@entry=0x562bf01c8aa0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1088 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf01c8aa0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1089 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1090 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1091 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1092 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1093 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1094 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf01c6890, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1095 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf01c6040, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1096 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf01c8580, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1097 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf01c8580, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1098 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb2cd90, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1099 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1100 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1101 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1102 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1103 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1104 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1105 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1106 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1107 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb2d610: 0, icon_mask=@0x7ffc6bb2d628: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1108 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf01bed20, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1109 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf01bed20, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1110 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf01bed20, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1111 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1112 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf01be3a0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1113 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf01be3a0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1114 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf01be3a0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1115 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1116 WorkWindow::ImplInit (this=this@entry=0x562bf01bda10, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1117 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf01bda10, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1118 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1119 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1120 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1121 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1122 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1123 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf01bb800, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1124 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf01bafb0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1125 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf01bd4f0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1126 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf01bd4f0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1127 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb2dc60, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1128 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1129 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1130 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1131 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1132 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1133 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1134 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1135 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1136 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb2e4e0: 0, icon_mask=@0x7ffc6bb2e4f8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1137 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf01b3c90, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1138 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf01b3c90, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1139 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf01b3c90, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1140 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1141 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf01b3310, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1142 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf01b3310, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1143 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf01b3310, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1144 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1145 WorkWindow::ImplInit (this=this@entry=0x562bf01b2980, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1146 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf01b2980, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1147 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1148 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1149 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1150 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1151 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1152 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf01b0770, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1153 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf01aff20, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1154 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf01b2460, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1155 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf01b2460, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1156 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb2eb30, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1157 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1158 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1159 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1160 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1161 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1162 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1163 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1164 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1165 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb2f3b0: 0, icon_mask=@0x7ffc6bb2f3c8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1166 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf01a8c00, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1167 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf01a8c00, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1168 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf01a8c00, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1169 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1170 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf01a8280, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1171 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf01a8280, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1172 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf01a8280, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1173 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1174 WorkWindow::ImplInit (this=this@entry=0x562bf01a78f0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1175 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf01a78f0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1176 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1177 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1178 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1179 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1180 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1181 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf01a56e0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1182 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf01a4e90, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1183 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf01a73d0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1184 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf01a73d0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1185 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb2fa00, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1186 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1187 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1188 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1189 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1190 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1191 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1192 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1193 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1194 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb30280: 0, icon_mask=@0x7ffc6bb30298: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1195 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf019db70, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1196 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf019db70, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1197 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf019db70, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1198 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1199 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf019d1f0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1200 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf019d1f0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1201 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf019d1f0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1202 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1203 WorkWindow::ImplInit (this=this@entry=0x562bf019c860, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1204 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf019c860, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1205 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1206 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1207 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1208 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1209 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1210 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf019a650, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1211 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0199e00, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1212 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf019c340, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1213 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf019c340, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1214 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb308d0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1215 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1216 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1217 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1218 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1219 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1220 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1221 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1222 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1223 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb31150: 0, icon_mask=@0x7ffc6bb31168: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1224 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0192ae0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1225 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0192ae0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1226 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0192ae0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1227 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1228 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0192160, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1229 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0192160, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1230 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0192160, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1231 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1232 WorkWindow::ImplInit (this=this@entry=0x562bf01917d0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1233 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf01917d0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1234 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1235 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1236 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1237 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1238 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1239 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf018f5c0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1240 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf018ed70, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1241 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf01912b0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1242 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf01912b0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1243 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb317a0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1244 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1245 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1246 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1247 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1248 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1249 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1250 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1251 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1252 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb32020: 0, icon_mask=@0x7ffc6bb32038: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1253 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0187a50, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1254 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0187a50, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1255 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0187a50, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1256 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1257 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf01870d0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1258 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf01870d0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1259 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf01870d0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1260 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1261 WorkWindow::ImplInit (this=this@entry=0x562bf0186740, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1262 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0186740, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1263 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1264 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1265 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1266 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1267 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1268 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0184530, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1269 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0183ce0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1270 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0186220, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1271 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0186220, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1272 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb32670, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1273 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1274 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1275 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1276 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1277 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1278 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1279 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1280 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1281 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb32ef0: 0, icon_mask=@0x7ffc6bb32f08: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1282 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf017c9c0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1283 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf017c9c0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1284 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf017c9c0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1285 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1286 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf017c040, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1287 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf017c040, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1288 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf017c040, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1289 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1290 WorkWindow::ImplInit (this=this@entry=0x562bf017b6b0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1291 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf017b6b0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1292 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1293 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1294 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1295 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1296 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1297 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf01794a0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1298 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0178c50, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1299 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf017b190, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1300 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf017b190, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1301 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb33540, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1302 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1303 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1304 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1305 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1306 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1307 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1308 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1309 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1310 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb33dc0: 0, icon_mask=@0x7ffc6bb33dd8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1311 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0171930, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1312 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0171930, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1313 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0171930, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1314 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1315 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0170fb0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1316 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0170fb0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1317 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0170fb0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1318 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1319 WorkWindow::ImplInit (this=this@entry=0x562bf0170620, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1320 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0170620, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1321 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1322 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1323 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1324 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1325 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1326 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf016e410, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1327 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf016dbc0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1328 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0170100, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1329 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0170100, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1330 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb34410, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1331 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1332 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1333 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1334 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1335 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1336 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1337 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1338 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1339 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb34c90: 0, icon_mask=@0x7ffc6bb34ca8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1340 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf01668a0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1341 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf01668a0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1342 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf01668a0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1343 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1344 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0165f20, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1345 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0165f20, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1346 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0165f20, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1347 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1348 WorkWindow::ImplInit (this=this@entry=0x562bf0165590, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1349 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0165590, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1350 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1351 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1352 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1353 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1354 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1355 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0163380, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1356 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0162b30, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1357 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0165070, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1358 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0165070, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1359 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb352e0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1360 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1361 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1362 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1363 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1364 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1365 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1366 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1367 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1368 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb35b60: 0, icon_mask=@0x7ffc6bb35b78: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1369 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf015b810, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1370 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf015b810, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1371 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf015b810, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1372 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1373 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf015ae90, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1374 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf015ae90, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1375 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf015ae90, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1376 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1377 WorkWindow::ImplInit (this=this@entry=0x562bf015a500, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1378 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf015a500, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1379 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1380 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1381 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1382 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1383 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1384 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf01582f0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1385 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0157aa0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1386 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0159fe0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1387 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0159fe0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1388 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb361b0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1389 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1390 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1391 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1392 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1393 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1394 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1395 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1396 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1397 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb36a30: 0, icon_mask=@0x7ffc6bb36a48: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1398 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0150780, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1399 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0150780, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1400 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0150780, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1401 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1402 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf014fe00, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1403 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf014fe00, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1404 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf014fe00, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1405 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1406 WorkWindow::ImplInit (this=this@entry=0x562bf014f470, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1407 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf014f470, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1408 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1409 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1410 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1411 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1412 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1413 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf014d260, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1414 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf014ca10, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1415 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf014ef50, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1416 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf014ef50, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1417 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb37080, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1418 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1419 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1420 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1421 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1422 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1423 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1424 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1425 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1426 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb37900: 0, icon_mask=@0x7ffc6bb37918: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1427 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf01456f0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1428 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf01456f0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1429 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf01456f0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1430 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1431 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0144d70, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1432 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0144d70, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1433 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0144d70, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1434 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1435 WorkWindow::ImplInit (this=this@entry=0x562bf01443e0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1436 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf01443e0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1437 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1438 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1439 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1440 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1441 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1442 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf01421d0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1443 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0141980, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1444 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0143ec0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1445 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0143ec0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1446 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb37f50, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1447 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1448 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1449 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1450 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1451 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1452 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1453 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1454 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1455 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb387d0: 0, icon_mask=@0x7ffc6bb387e8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1456 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf013a660, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1457 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf013a660, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1458 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf013a660, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1459 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1460 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0139ce0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1461 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0139ce0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1462 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0139ce0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1463 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1464 WorkWindow::ImplInit (this=this@entry=0x562bf0139350, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1465 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0139350, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1466 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1467 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1468 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1469 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1470 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1471 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0137140, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1472 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf01368f0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1473 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0138e30, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1474 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0138e30, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1475 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb38e20, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1476 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1477 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1478 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1479 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1480 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1481 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1482 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1483 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1484 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb396a0: 0, icon_mask=@0x7ffc6bb396b8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1485 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf012f5d0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1486 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf012f5d0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1487 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf012f5d0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1488 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1489 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf012ec50, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1490 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf012ec50, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1491 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf012ec50, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1492 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1493 WorkWindow::ImplInit (this=this@entry=0x562bf012e2c0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1494 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf012e2c0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1495 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1496 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1497 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1498 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1499 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1500 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf012c0b0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1501 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf012b860, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1502 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf012dda0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1503 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf012dda0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1504 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb39cf0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1505 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1506 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1507 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1508 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1509 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1510 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1511 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1512 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1513 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb3a570: 0, icon_mask=@0x7ffc6bb3a588: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1514 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0124540, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1515 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0124540, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1516 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0124540, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1517 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1518 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0123bc0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1519 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0123bc0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1520 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0123bc0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1521 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1522 WorkWindow::ImplInit (this=this@entry=0x562bf0123230, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1523 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0123230, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1524 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1525 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1526 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1527 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1528 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1529 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0121020, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1530 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf01207d0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1531 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0122d10, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1532 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0122d10, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1533 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb3abc0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1534 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1535 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1536 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1537 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1538 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1539 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1540 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1541 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1542 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb3b440: 0, icon_mask=@0x7ffc6bb3b458: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1543 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf01194b0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1544 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf01194b0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1545 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf01194b0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1546 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1547 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0118b30, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1548 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0118b30, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1549 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0118b30, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1550 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1551 WorkWindow::ImplInit (this=this@entry=0x562bf01181a0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1552 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf01181a0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1553 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1554 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1555 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1556 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1557 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1558 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0115f90, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1559 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0115740, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1560 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0117c80, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1561 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0117c80, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1562 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb3ba90, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1563 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1564 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1565 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1566 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1567 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1568 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1569 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1570 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1571 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb3c310: 0, icon_mask=@0x7ffc6bb3c328: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1572 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf010e420, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1573 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf010e420, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1574 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf010e420, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1575 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1576 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf010daa0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1577 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf010daa0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1578 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf010daa0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1579 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1580 WorkWindow::ImplInit (this=this@entry=0x562bf010d110, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1581 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf010d110, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1582 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1583 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1584 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1585 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1586 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1587 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf010af00, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1588 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf010a6b0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1589 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf010cbf0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1590 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf010cbf0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1591 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb3c960, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1592 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1593 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1594 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1595 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1596 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1597 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1598 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1599 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1600 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb3d1e0: 0, icon_mask=@0x7ffc6bb3d1f8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1601 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0103390, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1602 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0103390, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1603 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0103390, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1604 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1605 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0102a10, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1606 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0102a10, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1607 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0102a10, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1608 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1609 WorkWindow::ImplInit (this=this@entry=0x562bf0102080, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1610 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0102080, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1611 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1612 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1613 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1614 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1615 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1616 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf00ffe70, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1617 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf00ff620, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1618 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0101b60, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1619 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0101b60, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1620 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb3d830, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1621 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1622 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1623 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1624 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1625 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1626 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1627 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1628 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1629 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb3e0b0: 0, icon_mask=@0x7ffc6bb3e0c8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1630 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf00f8300, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1631 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf00f8300, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1632 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf00f8300, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1633 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1634 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf00f7980, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1635 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf00f7980, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1636 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf00f7980, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1637 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1638 WorkWindow::ImplInit (this=this@entry=0x562bf00f6ff0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1639 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf00f6ff0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1640 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1641 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1642 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1643 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1644 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1645 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf00f4de0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1646 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf00f4590, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1647 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf00f6ad0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1648 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf00f6ad0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1649 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb3e700, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1650 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1651 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1652 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1653 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1654 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1655 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1656 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1657 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1658 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb3ef80: 0, icon_mask=@0x7ffc6bb3ef98: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1659 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf00ed270, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1660 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf00ed270, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1661 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf00ed270, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1662 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1663 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf00ec8f0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1664 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf00ec8f0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1665 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf00ec8f0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1666 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1667 WorkWindow::ImplInit (this=this@entry=0x562bf00ebf60, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1668 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf00ebf60, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1669 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1670 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1671 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1672 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1673 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1674 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf00e9d50, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1675 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf00e9500, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1676 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf00eba40, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1677 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf00eba40, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1678 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb3f5d0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1679 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1680 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1681 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1682 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1683 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1684 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1685 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1686 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1687 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb3fe50: 0, icon_mask=@0x7ffc6bb3fe68: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1688 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf00e21e0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1689 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf00e21e0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1690 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf00e21e0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1691 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1692 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf00e1860, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1693 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf00e1860, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1694 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf00e1860, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1695 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1696 WorkWindow::ImplInit (this=this@entry=0x562bf00e0ed0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1697 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf00e0ed0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1698 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1699 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1700 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1701 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1702 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1703 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf00decc0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1704 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf00de470, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1705 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf00e09b0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1706 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf00e09b0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1707 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb404a0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1708 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1709 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1710 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1711 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1712 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1713 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1714 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1715 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1716 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb40d20: 0, icon_mask=@0x7ffc6bb40d38: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1717 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf00d7150, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1718 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf00d7150, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1719 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf00d7150, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1720 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1721 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf00d67d0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1722 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf00d67d0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1723 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf00d67d0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1724 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1725 WorkWindow::ImplInit (this=this@entry=0x562bf00d5e40, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1726 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf00d5e40, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1727 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1728 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1729 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1730 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1731 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1732 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf00d3c30, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1733 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf00d33e0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1734 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf00d5920, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1735 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf00d5920, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1736 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb41370, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1737 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1738 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1739 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1740 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1741 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1742 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1743 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1744 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1745 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb41bf0: 0, icon_mask=@0x7ffc6bb41c08: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1746 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf00cc0c0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1747 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf00cc0c0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1748 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf00cc0c0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1749 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1750 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf00cb740, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1751 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf00cb740, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1752 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf00cb740, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1753 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1754 WorkWindow::ImplInit (this=this@entry=0x562bf00cadb0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1755 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf00cadb0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1756 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1757 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1758 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1759 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1760 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1761 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf00c8ba0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1762 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf00c8350, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1763 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf00ca890, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1764 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf00ca890, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1765 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb42240, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1766 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1767 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1768 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1769 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1770 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1771 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1772 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1773 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1774 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb42ac0: 0, icon_mask=@0x7ffc6bb42ad8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1775 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf00c1030, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1776 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf00c1030, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1777 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf00c1030, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1778 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1779 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf00c06b0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1780 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf00c06b0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1781 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf00c06b0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1782 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1783 WorkWindow::ImplInit (this=this@entry=0x562bf00bfd20, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1784 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf00bfd20, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1785 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1786 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1787 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1788 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1789 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1790 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf00bdb10, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1791 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf00bd2c0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1792 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf00bf800, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1793 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf00bf800, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1794 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb43110, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1795 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1796 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1797 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1798 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1799 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1800 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1801 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1802 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1803 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb43990: 0, icon_mask=@0x7ffc6bb439a8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1804 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf00b5fa0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1805 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf00b5fa0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1806 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf00b5fa0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1807 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1808 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf00b5620, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1809 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf00b5620, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1810 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf00b5620, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1811 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1812 WorkWindow::ImplInit (this=this@entry=0x562bf00b4c90, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1813 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf00b4c90, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1814 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1815 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1816 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1817 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1818 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1819 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf00b2a80, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1820 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf00b2230, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1821 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf00b4770, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1822 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf00b4770, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1823 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb43fe0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1824 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1825 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1826 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1827 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1828 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1829 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1830 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1831 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1832 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb44860: 0, icon_mask=@0x7ffc6bb44878: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1833 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf00aaf10, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1834 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf00aaf10, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1835 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf00aaf10, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1836 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1837 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf00aa590, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1838 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf00aa590, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1839 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf00aa590, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1840 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1841 WorkWindow::ImplInit (this=this@entry=0x562bf00a9c00, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1842 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf00a9c00, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1843 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1844 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1845 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1846 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1847 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1848 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf00a79f0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1849 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf00a71a0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1850 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf00a96e0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1851 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf00a96e0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1852 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb44eb0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1853 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1854 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1855 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1856 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1857 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1858 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1859 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1860 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1861 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb45730: 0, icon_mask=@0x7ffc6bb45748: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1862 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf009fe80, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1863 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf009fe80, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1864 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf009fe80, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1865 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1866 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf009f500, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1867 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf009f500, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1868 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf009f500, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1869 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1870 WorkWindow::ImplInit (this=this@entry=0x562bf009eb70, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1871 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf009eb70, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1872 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1873 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1874 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1875 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1876 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1877 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf009c960, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1878 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf009c110, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1879 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf009e650, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1880 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf009e650, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1881 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb45d80, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1882 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1883 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1884 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1885 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1886 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1887 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1888 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1889 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1890 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb46600: 0, icon_mask=@0x7ffc6bb46618: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1891 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0094df0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1892 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0094df0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1893 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0094df0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1894 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1895 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf0094470, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1896 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf0094470, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1897 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf0094470, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1898 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1899 WorkWindow::ImplInit (this=this@entry=0x562bf0093ae0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1900 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0093ae0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1901 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1902 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1903 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1904 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1905 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1906 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf00918d0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1907 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0091080, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1908 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf00935c0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1909 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf00935c0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1910 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb46c50, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1911 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1912 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1913 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1914 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1915 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1916 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1917 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1918 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1919 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb474d0: 0, icon_mask=@0x7ffc6bb474e8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1920 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0089d60, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1921 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0089d60, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1922 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0089d60, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1923 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1924 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf00893e0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1925 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf00893e0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1926 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf00893e0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1927 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1928 WorkWindow::ImplInit (this=this@entry=0x562bf0088a50, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1929 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0088a50, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1930 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1931 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1932 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1933 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1934 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1935 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0086840, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1936 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf0085ff0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1937 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0088530, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1938 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0088530, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1939 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb47b20, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1940 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1941 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1942 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1943 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1944 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1945 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1946 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1947 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1948 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb483a0: 0, icon_mask=@0x7ffc6bb483b8: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1949 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf007ecd0, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1950 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf007ecd0, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1951 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf007ecd0, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1952 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1953 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf007e350, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1954 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf007e350, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1955 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf007e350, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1956 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1957 WorkWindow::ImplInit (this=this@entry=0x562bf007d9c0, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1958 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf007d9c0, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1959 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1960 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1961 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1962 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1963 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1964 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf007b7b0, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1965 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf007af60, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1966 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf007d4a0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1967 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf007d4a0, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1968 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb489f0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1969 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1970 ImplImageTree::findImage (this=this@entry=0x562bea34c690, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: } #1971 0x00007ff09ef6cd22 in ImplImageTree::doLoadImage (this=this@entry=0x562bea34c690, rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:360 355: 356: bool bFound = false; 357: 358: try 359: { 360: bFound = findImage(paths, rParameters); 361: } 362: catch (css::uno::RuntimeException&) 363: { 364: throw; 365: } #1972 0x00007ff09ef6d074 in ImplImageTree::loadImage (this=0x562bea34c690, name=..., style=..., rBitmap=..., localized=localized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImplImageTree.cxx:282 277: while (!aStyle.isEmpty()) 278: { 279: try 280: { 281: ImageRequestParameters aParameters(name, aStyle, rBitmap, localized, eFlags); 282: if (doLoadImage(aParameters)) 283: return true; 284: } 285: catch (css::uno::RuntimeException &) 286: {} 287: #1973 0x00007ff09ef6904c in ImageTree::loadImage (this=, rName=..., rStyle=..., rBitmap=..., bLocalized=bLocalized@entry=true, eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/image/ImageTree.cxx:37 32: 33: bool ImageTree::loadImage(OUString const & rName, OUString const & rStyle, 34: BitmapEx & rBitmap, bool bLocalized, 35: const ImageLoadFlags eFlags) 36: { 37: return mpImplImageTree->loadImage(rName, rStyle, rBitmap, bLocalized, eFlags); 38: } 39: 40: bool ImageTree::loadDefaultImage(OUString const & rStyle, BitmapEx& rBitmap, 41: const ImageLoadFlags eFlags) 42: { #1974 0x00007ff09ef632ef in vcl::bitmap::loadFromName (rFileName=..., eFlags=eFlags@entry=IgnoreScalingFactor) at ./vcl/source/bitmap/BitmapTools.cxx:45 40: { 41: BitmapEx aBitmapEx; 42: 43: OUString aIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme(); 44: 45: ImageTree::get().loadImage(rFileName, aIconTheme, aBitmapEx, true, eFlags); 46: 47: return aBitmapEx; 48: } 49: 50: BitmapEx loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags) #1975 0x00007ff09ef633bc in vcl::bitmap::loadFromResource (rResId=..., eFlags=) at ./vcl/source/bitmap/BitmapTools.cxx:60 55: pResMgr->ReadLong(); 56: pResMgr->ReadLong(); 57: 58: const OUString aFileName(pResMgr->ReadString()); 59: 60: return loadFromName(aFileName, eFlags); 61: } 62: 63: void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScalingFactor) 64: { 65: uno::Reference xContext(comphelper::getProcessComponentContext()); #1976 0x00007ff0864679ca in CreateNetWmAppIcon (netwm_icon=..., nIcon=1) at ./vcl/unx/generic/window/salframe.cxx:215 210: nIconSizeOffset = SV_ICON_SIZE32_START; 211: else 212: nIconSizeOffset = SV_ICON_SIZE16_START; 213: 214: BitmapEx aIcon = vcl::bitmap::loadFromResource(ResId(nIconSizeOffset + nIcon, *ImplGetResMgr()), 215: ImageLoadFlags::IgnoreScalingFactor); 216: 217: if( aIcon.IsEmpty()) 218: continue; 219: Bitmap icon = aIcon.GetBitmap(); 220: AlphaMask mask; #1977 lcl_SelectAppIconPixmap (pDisplay=0x562bea1c6e80, nXScreen=..., nIcon=, iconSize=iconSize@entry=32, icon_pixmap=@0x7ffc6bb49270: 0, icon_mask=@0x7ffc6bb49288: 0, netwm_icon=...) at ./vcl/unx/generic/window/salframe.cxx:260 255: Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) 256: { 257: if( ! ImplGetResMgr() ) 258: return false; 259: 260: CreateNetWmAppIcon( nIcon, netwm_icon ); 261: 262: sal_uInt16 nIconSizeOffset; 263: 264: if( iconSize >= 48 ) 265: nIconSizeOffset = SV_ICON_SIZE48_START; #1978 0x00007ff086468ace in X11SalFrame::Init (this=this@entry=0x562bf0073c40, nSalFrameStyle=nSalFrameStyle@entry=NONE, nXScreen=..., pParentData=pParentData@entry=0x0, bUseGeometry=bUseGeometry@entry=false) at ./vcl/unx/generic/window/salframe.cxx:543 538: try 539: { 540: bOk = lcl_SelectAppIconPixmap( pDisplay_, m_nXScreen, 541: mnIconID != 1 ? mnIconID : 542: (mpParent ? mpParent->mnIconID : 1), 32, 543: Hints.icon_pixmap, Hints.icon_mask, netwm_icon ); 544: } 545: catch( css::uno::Exception& ) 546: { 547: // can happen - no ucb during early startup 548: } #1979 0x00007ff0864698a8 in X11SalFrame::X11SalFrame (this=0x562bf0073c40, pParent=, nSalFrameStyle=NONE, pSystemParent=0x0) at ./vcl/unx/generic/window/salframe.cxx:829 824: m_nMaxClipRect = 0; 825: 826: if( mpParent ) 827: mpParent->maChildren.push_back( this ); 828: 829: Init( nSalFrameStyle, GetDisplay()->GetDefaultXScreen(), pSystemParent ); 830: } 831: 832: X11SalFrame::~X11SalFrame() 833: { 834: notifyDelete(); #1980 0x00007ff088b66fab in KDESalFrame::KDESalFrame (this=0x562bf0073c40, pParent=, nState=) at ./vcl/unx/kde4/KDESalFrame.cxx:52 47: 48: #include 49: 50: 51: KDESalFrame::KDESalFrame( SalFrame* pParent, SalFrameStyleFlags nState ) : 52: X11SalFrame( pParent, nState ) 53: { 54: } 55: 56: void KDESalFrame::Show( bool bVisible, bool bNoActivate ) 57: { #1981 0x00007ff088b6bce5 in KDESalInstance::CreateFrame (this=, pParent=0x0, nState=NONE) at ./vcl/unx/kde4/KDESalInstance.cxx:42 37: pSVData->maAppData.mpToolkitName = new OUString("kde4"); 38: } 39: 40: SalFrame* KDESalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nState ) 41: { 42: return new KDESalFrame( pParent, nState ); 43: } 44: 45: uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker( 46: const uno::Reference< uno::XComponentContext >& xMSF ) 47: { #1982 0x00007ff09ed92bb8 in vcl::Window::ImplInit (this=this@entry=0x562bf00732c0, pParent=, nStyle=274877906944, pSystemParentData=) at ./vcl/source/window/window.cxx:1011 1006: pParentFrame = pParent->mpWindowImpl->mpFrame; 1007: SalFrame* pFrame; 1008: if ( pSystemParentData ) 1009: pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG ); 1010: else 1011: pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle ); 1012: if ( !pFrame ) 1013: { 1014: // do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario) 1015: throw RuntimeException( 1016: "Could not create system window!", #1983 0x00007ff09ecce1b2 in ImplBorderWindow::ImplInit (this=0x562bf00732c0, pParent=, nStyle=, nTypeStyle=, pSystemParentData=) at ./vcl/source/window/brdwin.cxx:1755 1750: if ( nTypeStyle & BorderWindowStyle::Float ) 1751: mbFloatWindow = true; 1752: else 1753: mbFloatWindow = false; 1754: 1755: Window::ImplInit( pParent, nStyle, pSystemParentData ); 1756: SetBackground(); 1757: SetTextFillColor(); 1758: 1759: mpMenuBarWindow = nullptr; 1760: mnMinWidth = 0; #1984 0x00007ff09ecd15c2 in ImplBorderWindow::ImplBorderWindow (this=0x562bf00732c0, pParent=0x0, pSystemParentData=0x0, nStyle=274877906944, nTypeStyle=Frame, __in_chrg=, __vtt_parm=) at ./vcl/source/window/brdwin.cxx:1787 1782: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, 1783: SystemParentData* pSystemParentData, 1784: WinBits nStyle, BorderWindowStyle nTypeStyle 1785: ) : Window( WINDOW_BORDERWINDOW ) 1786: { 1787: ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData ); 1788: } 1789: 1790: ImplBorderWindow::ImplBorderWindow( vcl::Window* pParent, WinBits nStyle , 1791: BorderWindowStyle nTypeStyle ) : 1792: Window( WINDOW_BORDERWINDOW ) #1985 0x00007ff09ed9b808 in VclPtrInstance (this=) at ./include/vcl/vclptr.hxx:275 270: template 271: class VclPtrInstance : public VclPtr 272: { 273: public: 274: template VclPtrInstance(Arg &&... arg) 275: : VclPtr( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ) 276: { 277: } 278: 279: /** 280: * Override and disallow this, to prevent people accidentally calling it and actually #1986 WorkWindow::ImplInit (this=this@entry=0x562bf0072930, pParent=pParent@entry=0x0, nStyle=nStyle@entry=274877906944, pSystemParentData=pSystemParentData@entry=0x0) at ./vcl/source/window/wrkwin.cxx:52 47: { 48: BorderWindowStyle nFrameStyle = BorderWindowStyle::Frame; 49: if ( nStyle & WB_APP ) 50: nFrameStyle |= BorderWindowStyle::App; 51: 52: VclPtrInstance pBorderWin( pParent, pSystemParentData, nStyle, nFrameStyle ); 53: Window::ImplInit( pBorderWin, nStyle & (WB_3DLOOK | WB_CLIPCHILDREN | WB_DIALOGCONTROL | WB_SYSTEMFLOATWIN), nullptr ); 54: pBorderWin->mpWindowImpl->mpClientWindow = this; 55: pBorderWin->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder ); 56: mpWindowImpl->mpBorderWindow = pBorderWin; 57: #1987 0x00007ff09ed9be0b in WorkWindow::WorkWindow (this=0x562bf0072930, pParent=0x0, nStyle=274877906944, __in_chrg=, __vtt_parm=) at ./vcl/source/window/wrkwin.cxx:95 90: 91: WorkWindow::WorkWindow( vcl::Window* pParent, WinBits nStyle ) : 92: SystemWindow( WINDOW_WORKWINDOW ) 93: { 94: ImplInitWorkWindowData(); 95: ImplInit( pParent, nStyle ); 96: } 97: 98: WorkWindow::WorkWindow( vcl::Window* pParent, const css::uno::Any& aSystemWorkWindowToken, WinBits nStyle ) : 99: SystemWindow( WINDOW_WORKWINDOW ) 100: { #1988 0x00007ff09ef9c417 in Create () at ./include/vcl/vclptr.hxx:125 120: * 121: * @tparam reference_type must be a subclass of vcl::Window 122: */ 123: template static VclPtr< reference_type > Create(Arg &&... arg) 124: { 125: return VclPtr< reference_type >( new reference_type(std::forward(arg)...), SAL_NO_ACQUIRE ); 126: } 127: 128: /** Probably most common used: handle->someBodyOp(). 129: */ 130: inline reference_type * operator->() const #1989 ImplGetDefaultContextWindow () at ./vcl/source/app/svdata.cxx:147 142: SolarMutexGuard aGuard; 143: 144: if ( !pSVData->mpDefaultWin && !pSVData->mbDeInit ) 145: { 146: SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" ); 147: pSVData->mpDefaultWin = VclPtr::Create( nullptr, WB_DEFAULTWIN ); 148: pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" ); 149: 150: #if HAVE_FEATURE_OPENGL 151: // Add a reference to the default context so it never gets deleted 152: rtl::Reference pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext(); #1990 0x00007ff09f0af22b in OpenGLContext::getVCLContext (bMakeIfNecessary=bMakeIfNecessary@entry=true) at ./vcl/source/opengl/OpenGLContext.cxx:512 507: } 508: rtl::Reference xContext; 509: if( !pContext && bMakeIfNecessary ) 510: { 511: // create our magic fallback window context. 512: xContext = ImplGetDefaultContextWindow()->GetGraphics()->GetOpenGLContext(); 513: assert(xContext.is()); 514: } 515: else 516: xContext = pContext; 517: #1991 0x00007ff09f0af2e1 in OpenGLContext::makeVCLCurrent () at ./vcl/source/opengl/OpenGLContext.cxx:531 526: * ie. not reset underneath us, and is setup for VCL usage - ideally 527: * not swapping context at all. 528: */ 529: void OpenGLContext::makeVCLCurrent() 530: { 531: getVCLContext(); 532: } 533: 534: void OpenGLContext::registerAsCurrent() 535: { 536: ImplSVData* pSVData = ImplGetSVData(); #1992 0x00007ff09f0b216a in OpenGLVCLContextZone::OpenGLVCLContextZone (this=) at ./vcl/source/opengl/OpenGLHelper.cxx:976 971: gWatchdogTimings.setRelax(true); 972: } 973: 974: OpenGLVCLContextZone::OpenGLVCLContextZone() 975: { 976: OpenGLContext::makeVCLCurrent(); 977: } 978: 979: bool OpenGLHelper::isVCLOpenGLEnabled() 980: { 981: /** #1993 0x00007ff09f093021 in OpenGLSalBitmap::Create (this=0x562bf0070720, rSize=..., nBits=, rBitmapPalette=...) at ./vcl/opengl/salbmp.cxx:148 143: catch (const std::bad_alloc&) 144: { 145: pDIB = nullptr; 146: } 147: 148: if( pDIB ) 149: { 150: const sal_uInt16 nColors = ( nBitCount <= 8 ) ? ( 1 << nBitCount ) : 0; 151: 152: pDIB->mnFormat = ScanlineFormat::NONE; 153: #1994 0x00007ff09ee69e1e in Bitmap::Bitmap (this=0x562bf006fed0, rSizePixel=..., nBitCount=, pPal=) at ./vcl/source/gdi/bitmap.cxx:120 115: { 116: std::vector aExpected 117: { 118: constBackgroundColor, constBackgroundColor, 119: COL_YELLOW, constFillColor, COL_YELLOW, constFillColor, constFillColor 120: }; 121: return checkRectangles(rBitmap, aExpected); 122: } 123: 124: TestResult OutputDeviceTestBitmap::checkTransformedBitmap(Bitmap& rBitmap) 125: { #1995 0x00007ff09ef24cf1 in vcl::PNGReaderImpl::ImplReadHeader (this=this@entry=0x562bf0072410, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:668 663: mpScanPrior = new (std::nothrow) sal_uInt8[ mnScansize ]; 664: 665: if ( !mpInflateInBuf || !mpScanPrior ) 666: return false; 667: 668: mpBmp = new Bitmap( maTargetSize, mnTargetDepth ); 669: mpAcc = mpBmp->AcquireWriteAccess(); 670: if( !mpAcc ) 671: return false; 672: 673: if ( mbAlphaChannel ) #1996 0x00007ff09ef27358 in vcl::PNGReaderImpl::GetBitmapEx (this=0x562bf0072410, rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:346 341: 342: // first chunk must be IDHR 343: if( mbStatus && ReadNextChunk() ) 344: { 345: if (mnChunkType == PNGCHUNK_IHDR) 346: mbStatus = ImplReadHeader( rPreviewSizeHint ); 347: else 348: mbStatus = false; 349: } 350: 351: // parse the remaining chunks #1997 0x00007ff09ef273f0 in vcl::PNGReader::Read (this=this@entry=0x7ffc6bb498c0, i_rPreviewSizeHint=...) at ./vcl/source/gdi/pngread.cxx:1683 1678: { 1679: } 1680: 1681: BitmapEx PNGReader::Read( const Size& i_rPreviewSizeHint ) 1682: { 1683: return mpImpl->GetBitmapEx( i_rPreviewSizeHint ); 1684: } 1685: 1686: const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const 1687: { 1688: return mpImpl->GetAllChunks(); #1998 0x00007ff09ef6bc6c in loadImageFromStream (rParameters=..., rPath=..., xStream=...) at ./vcl/source/image/ImplImageTree.cxx:163 158: 159: if (rPath.endsWith(".png")) 160: { 161: vcl::PNGReader aPNGReader(*xStream); 162: aPNGReader.SetIgnoreGammaChunk(true); 163: rParameters.mrBitmap = aPNGReader.Read(); 164: } 165: else if (rPath.endsWith(".svg")) 166: { 167: vcl::bitmap::loadFromSvg(*xStream.get(), rPath, rParameters.mrBitmap, aScalePercentage / 100.0); 168: if (bConvertToDarkTheme) #1999 ImplImageTree::findImage (this=, paths=..., rParameters=...) at ./vcl/source/image/ImplImageTree.cxx:460 455: css::uno::Reference aStream; 456: bool ok = rNameAccess->getByName(rPath) >>= aStream; 457: assert(ok); 458: (void)ok; // prevent unused warning in release build 459: 460: loadImageFromStream(wrapStream(aStream), rPath, rParameters); 461: return true; 462: } 463: } 464: return false; 465: }