mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 751602: Compile fixes for NPAPI drawing models. r=bas
This commit is contained in:
parent
4f3ffc956b
commit
11cf7efcd1
@ -69,12 +69,14 @@ class nsIOutputStream;
|
||||
const NPDrawingModel kDefaultDrawingModel = NPDrawingModelSyncWin;
|
||||
#elif defined(MOZ_X11)
|
||||
const NPDrawingModel kDefaultDrawingModel = NPDrawingModelSyncX;
|
||||
#else
|
||||
#elif defined(XP_MACOSX)
|
||||
#ifndef NP_NO_QUICKDRAW
|
||||
const NPDrawingModel kDefaultDrawingModel = NPDrawingModelQuickDraw;
|
||||
#else
|
||||
const NPDrawingModel kDefaultDrawingModel = NPDrawingModelCoreGraphics;
|
||||
#endif
|
||||
#else
|
||||
const NPDrawingModel kDefaultDrawingModel = static_cast<NPDrawingModel>(0);
|
||||
#endif
|
||||
|
||||
class nsNPAPITimer
|
||||
|
@ -421,15 +421,21 @@ PluginInstanceParent::AnswerNPN_SetValue_NPPVpluginDrawingModel(
|
||||
mNotifySink = new NotificationSink(this);
|
||||
|
||||
container->SetCompositionNotifySink(mNotifySink);
|
||||
} else if (drawingModel == NPDrawingModelSyncWin ||
|
||||
#ifdef XP_MACOSX
|
||||
} else if (
|
||||
#if defined(XP_WIN)
|
||||
drawingModel == NPDrawingModelSyncWin
|
||||
#elif defined(XP_MACOSX)
|
||||
#ifndef NP_NO_QUICKDRAW
|
||||
drawingModel == NPDrawingModelQuickDraw ||
|
||||
#endif
|
||||
drawingModel == NPDrawingModelOpenGL ||
|
||||
drawingModel == NPDrawingModelCoreGraphics ||
|
||||
drawingModel == NPDrawingModelCoreGraphics
|
||||
#elif defined(MOZ_X11)
|
||||
drawingModel == NPDrawingModelSyncX
|
||||
#else
|
||||
false
|
||||
#endif
|
||||
drawingModel == NPDrawingModelSyncX) {
|
||||
) {
|
||||
*shmem = null_t();
|
||||
|
||||
ImageContainer *container = GetImageContainer();
|
||||
|
Loading…
Reference in New Issue
Block a user