зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1342450 - Rename MOZ_ENABLE_WEBRENDER to MOZ_BUILD_WEBRENDER. r=rhunt
MozReview-Commit-ID: 3GkmCJJq8et
This commit is contained in:
Родитель
93ec4103b3
Коммит
b215cfd1e1
|
@ -154,7 +154,7 @@ IsAccelAngleSupported(const nsCOMPtr<nsIGfxInfo>& gfxInfo,
|
|||
if (CompositorThreadHolder::IsInCompositorThread()) {
|
||||
// We can only enter here with WebRender, so assert that this is a
|
||||
// WebRender-enabled build.
|
||||
#ifndef MOZ_ENABLE_WEBRENDER
|
||||
#ifndef MOZ_BUILD_WEBRENDER
|
||||
MOZ_ASSERT(false);
|
||||
#endif
|
||||
return true;
|
||||
|
|
|
@ -1579,7 +1579,7 @@ CompositorBridgeParent::AllocPWebRenderBridgeParent(const wr::PipelineId& aPipel
|
|||
TextureFactoryIdentifier* aTextureFactoryIdentifier,
|
||||
uint32_t* aIdNamespace)
|
||||
{
|
||||
#ifndef MOZ_ENABLE_WEBRENDER
|
||||
#ifndef MOZ_BUILD_WEBRENDER
|
||||
// Extra guard since this in the parent process and we don't want a malicious
|
||||
// child process invoking this codepath before it's ready
|
||||
MOZ_RELEASE_ASSERT(false);
|
||||
|
@ -1614,7 +1614,7 @@ CompositorBridgeParent::AllocPWebRenderBridgeParent(const wr::PipelineId& aPipel
|
|||
bool
|
||||
CompositorBridgeParent::DeallocPWebRenderBridgeParent(PWebRenderBridgeParent* aActor)
|
||||
{
|
||||
#ifndef MOZ_ENABLE_WEBRENDER
|
||||
#ifndef MOZ_BUILD_WEBRENDER
|
||||
// Extra guard since this in the parent process and we don't want a malicious
|
||||
// child process invoking this codepath before it's ready
|
||||
MOZ_RELEASE_ASSERT(false);
|
||||
|
|
|
@ -203,7 +203,7 @@ CrossProcessCompositorBridgeParent::AllocPWebRenderBridgeParent(const wr::Pipeli
|
|||
TextureFactoryIdentifier* aTextureFactoryIdentifier,
|
||||
uint32_t *aIdNamespace)
|
||||
{
|
||||
#ifndef MOZ_ENABLE_WEBRENDER
|
||||
#ifndef MOZ_BUILD_WEBRENDER
|
||||
// Extra guard since this in the parent process and we don't want a malicious
|
||||
// child process invoking this codepath before it's ready
|
||||
MOZ_RELEASE_ASSERT(false);
|
||||
|
@ -238,7 +238,7 @@ CrossProcessCompositorBridgeParent::AllocPWebRenderBridgeParent(const wr::Pipeli
|
|||
bool
|
||||
CrossProcessCompositorBridgeParent::DeallocPWebRenderBridgeParent(PWebRenderBridgeParent* aActor)
|
||||
{
|
||||
#ifndef MOZ_ENABLE_WEBRENDER
|
||||
#ifndef MOZ_BUILD_WEBRENDER
|
||||
// Extra guard since this in the parent process and we don't want a malicious
|
||||
// child process invoking this codepath before it's ready
|
||||
MOZ_RELEASE_ASSERT(false);
|
||||
|
|
|
@ -2314,7 +2314,7 @@ gfxPlatform::InitWebRenderConfig()
|
|||
NS_LITERAL_CSTRING("FEATURE_FAILURE_SAFE_MODE"));
|
||||
}
|
||||
|
||||
#ifndef MOZ_ENABLE_WEBRENDER
|
||||
#ifndef MOZ_BUILD_WEBRENDER
|
||||
featureWebRender.ForceDisable(
|
||||
FeatureStatus::Unavailable,
|
||||
"Build doesn't include WebRender",
|
||||
|
|
|
@ -452,7 +452,7 @@ struct WrVecU8 {
|
|||
// an error and causes the build to fail. So for wr_* functions called by
|
||||
// destructors in C++ classes, use WR_DESTRUCTOR_SAFE_FUNC instead, which omits
|
||||
// the unreachable annotation.
|
||||
#ifdef MOZ_ENABLE_WEBRENDER
|
||||
#ifdef MOZ_BUILD_WEBRENDER
|
||||
# define WR_INLINE
|
||||
# define WR_FUNC
|
||||
# define WR_DESTRUCTOR_SAFE_FUNC
|
||||
|
|
|
@ -5639,7 +5639,7 @@ pref("fuzzing.enabled", false);
|
|||
|
||||
// Set advanced layers preferences here.
|
||||
pref("layers.advanced.border-layers", false);
|
||||
#ifdef MOZ_ENABLE_WEBRENDER
|
||||
#ifdef MOZ_BUILD_WEBRENDER
|
||||
pref("layers.advanced.caret-layers", true);
|
||||
#else
|
||||
pref("layers.advanced.caret-layers", false);
|
||||
|
|
|
@ -11,7 +11,7 @@ if CONFIG['MOZ_STYLO']:
|
|||
if CONFIG['MOZ_STYLO_BINDGEN']:
|
||||
features += ['bindgen']
|
||||
|
||||
if CONFIG['MOZ_ENABLE_WEBRENDER']:
|
||||
if CONFIG['MOZ_BUILD_WEBRENDER']:
|
||||
features += ['quantum_render']
|
||||
|
||||
RustLibrary('gkrust-gtest', features, '../..')
|
||||
|
|
|
@ -380,7 +380,7 @@ if CONFIG['COMPILE_ENVIRONMENT']:
|
|||
FINAL_TARGET_FILES += ['!dependentlibs.list', '!dependentlibs.list.gtest']
|
||||
|
||||
# WebRender dependencies
|
||||
if CONFIG['MOZ_ENABLE_WEBRENDER']:
|
||||
if CONFIG['MOZ_BUILD_WEBRENDER']:
|
||||
if CONFIG['OS_ARCH'] == 'Linux':
|
||||
OS_LIBS += [
|
||||
'GL',
|
||||
|
|
|
@ -11,7 +11,7 @@ if CONFIG['MOZ_STYLO']:
|
|||
if CONFIG['MOZ_STYLO_BINDGEN']:
|
||||
features += ['bindgen']
|
||||
|
||||
if CONFIG['MOZ_ENABLE_WEBRENDER']:
|
||||
if CONFIG['MOZ_BUILD_WEBRENDER']:
|
||||
features += ['quantum_render']
|
||||
|
||||
RustLibrary('gkrust', features, '..')
|
||||
|
|
|
@ -695,9 +695,9 @@ set_config('SERVO_TARGET_DIR', servo_target_dir)
|
|||
# WebRender integration
|
||||
option('--enable-webrender', help='Include WebRender')
|
||||
|
||||
set_config('MOZ_ENABLE_WEBRENDER',
|
||||
set_config('MOZ_BUILD_WEBRENDER',
|
||||
depends_if('--enable-webrender')(lambda _: True))
|
||||
set_define('MOZ_ENABLE_WEBRENDER',
|
||||
set_define('MOZ_BUILD_WEBRENDER',
|
||||
depends_if('--enable-webrender')(lambda _: True))
|
||||
|
||||
# Printing
|
||||
|
|
Загрузка…
Ссылка в новой задаче