зеркало из https://github.com/mozilla/pjs.git
Bug 703307 - Fix build/crash in gonk, r=cjones
This commit is contained in:
Родитель
ce931f1fe9
Коммит
aa772423f6
|
@ -614,7 +614,8 @@ WebGLContext::SetDimensions(PRInt32 width, PRInt32 height)
|
|||
|
||||
PRInt32 status;
|
||||
nsCOMPtr<nsIGfxInfo> gfxInfo = do_GetService("@mozilla.org/gfx/info;1");
|
||||
if (mOptions.antialias &&
|
||||
if (mOptions.antialias &&
|
||||
gfxInfo &&
|
||||
NS_SUCCEEDED(gfxInfo->GetFeatureStatus(nsIGfxInfo::FEATURE_WEBGL_MSAA, &status))) {
|
||||
if (status == nsIGfxInfo::FEATURE_NO_INFO || forceMSAA) {
|
||||
PRUint32 msaaLevel = Preferences::GetUint("webgl.msaa-level", 2);
|
||||
|
|
|
@ -66,7 +66,7 @@ CPPSRCS = \
|
|||
SandboxHal.cpp \
|
||||
$(NULL)
|
||||
|
||||
ifeq (Android,$(OS_TARGET))
|
||||
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
|
||||
CPPSRCS += AndroidHal.cpp
|
||||
else ifeq (Linux,$(OS_TARGET))
|
||||
CPPSRCS += LinuxHal.cpp
|
||||
|
|
|
@ -315,7 +315,7 @@ endif
|
|||
|
||||
STATIC_LIBS += thebes gl ycbcr
|
||||
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
|
||||
ifeq ($(OS_TARGET),Android)
|
||||
STATIC_LIBS += profiler
|
||||
endif
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
#define nsAppShell_h
|
||||
|
||||
#include "nsBaseAppShell.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
namespace mozilla {
|
||||
bool ProcessNextEvent();
|
||||
|
|
|
@ -102,7 +102,6 @@ public:
|
|||
virtual nsIntPoint WidgetToScreenOffset();
|
||||
NS_IMETHOD DispatchEvent(nsGUIEvent *aEvent, nsEventStatus &aStatus);
|
||||
NS_IMETHOD CaptureRollupEvents(nsIRollupListener *aListener,
|
||||
nsIMenuRollup *aMenuRollup,
|
||||
bool aDoCapture,
|
||||
bool aConsumeRollupEvent)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче