Kaydet (Commit) 71527a30 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Fix iOS build after f05f4e04

Change-Id: I7b0c737b84f4528a8fba01e2998f525046834b1c
üst 823a328a
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <vcl/sysdata.hxx> #include <vcl/sysdata.hxx>
#include <vcl/metric.hxx> #include <vcl/metric.hxx>
#include <config_cairo_canvas.h> #include <config_cairo_canvas.h>
#include <cairo.h>
#include <salgdi.hxx> #include <salgdi.hxx>
#include <sallayout.hxx> #include <sallayout.hxx>
...@@ -35,6 +34,8 @@ ...@@ -35,6 +34,8 @@
#define SvpSalGraphics AquaSalGraphics #define SvpSalGraphics AquaSalGraphics
#else #else
#include <cairo.h>
//Using formats that match cairo's formats. For android we patch cairo, //Using formats that match cairo's formats. For android we patch cairo,
//which is internal in that case, to swap the rgb components so that //which is internal in that case, to swap the rgb components so that
//cairo then matches the OpenGL GL_RGBA format so we can use it there //cairo then matches the OpenGL GL_RGBA format so we can use it there
......
...@@ -33,7 +33,7 @@ class IosSalFrame; ...@@ -33,7 +33,7 @@ class IosSalFrame;
class IosSalInstance : public SvpSalInstance class IosSalInstance : public SvpSalInstance
{ {
public: public:
IosSalInstance( SalYieldMutex *pMutex ); IosSalInstance( std::unique_ptr<SalYieldMutex> pMutex );
virtual ~IosSalInstance(); virtual ~IosSalInstance();
static IosSalInstance *getInstance(); static IosSalInstance *getInstance();
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "headless/svpdummies.hxx" #include "headless/svpdummies.hxx"
#include "unx/gendata.hxx" #include "unx/gendata.hxx"
#include "quartz/utils.h" #include "quartz/utils.h"
#include <o3tl/make_unique.hxx>
#include <vcl/layout.hxx> #include <vcl/layout.hxx>
#include <vcl/settings.hxx> #include <vcl/settings.hxx>
...@@ -58,8 +59,8 @@ IosSalInstance *IosSalInstance::getInstance() ...@@ -58,8 +59,8 @@ IosSalInstance *IosSalInstance::getInstance()
return static_cast<IosSalInstance *>(pData->m_pInstance); return static_cast<IosSalInstance *>(pData->m_pInstance);
} }
IosSalInstance::IosSalInstance( SalYieldMutex *pMutex ) IosSalInstance::IosSalInstance( std::unique_ptr<SalYieldMutex> pMutex )
: SvpSalInstance( pMutex ) : SvpSalInstance( std::move(pMutex) )
{ {
} }
...@@ -170,7 +171,7 @@ SalData::~SalData() ...@@ -170,7 +171,7 @@ SalData::~SalData()
// This is our main entry point: // This is our main entry point:
SalInstance *CreateSalInstance() SalInstance *CreateSalInstance()
{ {
IosSalInstance* pInstance = new IosSalInstance( new SvpSalYieldMutex() ); IosSalInstance* pInstance = new IosSalInstance( o3tl::make_unique<SvpSalYieldMutex>() );
new IosSalData( pInstance ); new IosSalData( pInstance );
pInstance->AcquireYieldMutex(); pInstance->AcquireYieldMutex();
return pInstance; return pInstance;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment