зеркало из 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;
|
PRInt32 status;
|
||||||
nsCOMPtr<nsIGfxInfo> gfxInfo = do_GetService("@mozilla.org/gfx/info;1");
|
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))) {
|
NS_SUCCEEDED(gfxInfo->GetFeatureStatus(nsIGfxInfo::FEATURE_WEBGL_MSAA, &status))) {
|
||||||
if (status == nsIGfxInfo::FEATURE_NO_INFO || forceMSAA) {
|
if (status == nsIGfxInfo::FEATURE_NO_INFO || forceMSAA) {
|
||||||
PRUint32 msaaLevel = Preferences::GetUint("webgl.msaa-level", 2);
|
PRUint32 msaaLevel = Preferences::GetUint("webgl.msaa-level", 2);
|
||||||
|
|
|
@ -66,7 +66,7 @@ CPPSRCS = \
|
||||||
SandboxHal.cpp \
|
SandboxHal.cpp \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
ifeq (Android,$(OS_TARGET))
|
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
|
||||||
CPPSRCS += AndroidHal.cpp
|
CPPSRCS += AndroidHal.cpp
|
||||||
else ifeq (Linux,$(OS_TARGET))
|
else ifeq (Linux,$(OS_TARGET))
|
||||||
CPPSRCS += LinuxHal.cpp
|
CPPSRCS += LinuxHal.cpp
|
||||||
|
|
|
@ -315,7 +315,7 @@ endif
|
||||||
|
|
||||||
STATIC_LIBS += thebes gl ycbcr
|
STATIC_LIBS += thebes gl ycbcr
|
||||||
|
|
||||||
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
|
ifeq ($(OS_TARGET),Android)
|
||||||
STATIC_LIBS += profiler
|
STATIC_LIBS += profiler
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
#define nsAppShell_h
|
#define nsAppShell_h
|
||||||
|
|
||||||
#include "nsBaseAppShell.h"
|
#include "nsBaseAppShell.h"
|
||||||
|
#include "nsTArray.h"
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
bool ProcessNextEvent();
|
bool ProcessNextEvent();
|
||||||
|
|
|
@ -102,7 +102,6 @@ public:
|
||||||
virtual nsIntPoint WidgetToScreenOffset();
|
virtual nsIntPoint WidgetToScreenOffset();
|
||||||
NS_IMETHOD DispatchEvent(nsGUIEvent *aEvent, nsEventStatus &aStatus);
|
NS_IMETHOD DispatchEvent(nsGUIEvent *aEvent, nsEventStatus &aStatus);
|
||||||
NS_IMETHOD CaptureRollupEvents(nsIRollupListener *aListener,
|
NS_IMETHOD CaptureRollupEvents(nsIRollupListener *aListener,
|
||||||
nsIMenuRollup *aMenuRollup,
|
|
||||||
bool aDoCapture,
|
bool aDoCapture,
|
||||||
bool aConsumeRollupEvent)
|
bool aConsumeRollupEvent)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче