Bug 703307 - Fix build/crash in gonk, r=cjones

This commit is contained in:
Michael Wu 2011-11-22 11:51:51 -08:00
Родитель 0ea3999a91
Коммит 95e746a177
5 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -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)
{