Backed out changeset bbb39655cf71 (bug 1605934) for build bustage in widget/gtk/mozwayland/mozwayland.c
This commit is contained in:
@@ -990,7 +990,8 @@ struct MessageManagerReferentCount {
|
|||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
namespace mozilla::dom {
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
|
||||||
class MessageManagerReporter final : public nsIMemoryReporter {
|
class MessageManagerReporter final : public nsIMemoryReporter {
|
||||||
~MessageManagerReporter() = default;
|
~MessageManagerReporter() = default;
|
||||||
@@ -1124,7 +1125,8 @@ MessageManagerReporter::CollectReports(nsIHandleReportCallback* aHandleReport,
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::dom
|
} // namespace dom
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
already_AddRefed<ChromeMessageBroadcaster>
|
already_AddRefed<ChromeMessageBroadcaster>
|
||||||
nsFrameMessageManager::GetGlobalMessageManager() {
|
nsFrameMessageManager::GetGlobalMessageManager() {
|
||||||
|
|||||||
@@ -13,7 +13,8 @@
|
|||||||
#include "nsTextFragmentImpl.h"
|
#include "nsTextFragmentImpl.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
namespace mozilla::SSE2 {
|
namespace mozilla {
|
||||||
|
namespace SSE2 {
|
||||||
|
|
||||||
static inline bool is_zero(__m128i x) {
|
static inline bool is_zero(__m128i x) {
|
||||||
return _mm_movemask_epi8(_mm_cmpeq_epi8(x, _mm_setzero_si128())) == 0xffff;
|
return _mm_movemask_epi8(_mm_cmpeq_epi8(x, _mm_setzero_si128())) == 0xffff;
|
||||||
@@ -63,4 +64,5 @@ int32_t FirstNon8Bit(const char16_t* str, const char16_t* end) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::SSE2
|
} // namespace SSE2
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -25,7 +25,9 @@
|
|||||||
NS_LITERAL_STRING("dischargingtimechange")
|
NS_LITERAL_STRING("dischargingtimechange")
|
||||||
#define CHARGINGTIMECHANGE_EVENT_NAME NS_LITERAL_STRING("chargingtimechange")
|
#define CHARGINGTIMECHANGE_EVENT_NAME NS_LITERAL_STRING("chargingtimechange")
|
||||||
|
|
||||||
namespace mozilla::dom::battery {
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
namespace battery {
|
||||||
|
|
||||||
BatteryManager::BatteryManager(nsPIDOMWindowInner* aWindow)
|
BatteryManager::BatteryManager(nsPIDOMWindowInner* aWindow)
|
||||||
: DOMEventTargetHelper(aWindow),
|
: DOMEventTargetHelper(aWindow),
|
||||||
@@ -181,4 +183,6 @@ void BatteryManager::Notify(const hal::BatteryInformation& aBatteryInfo) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::dom::battery
|
} // namespace battery
|
||||||
|
} // namespace dom
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -13,7 +13,8 @@
|
|||||||
using namespace mozilla::layers;
|
using namespace mozilla::layers;
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
namespace mozilla::dom {
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
|
||||||
static ImageBitmapFormat GetImageBitmapFormatFromSurfaceFromat(
|
static ImageBitmapFormat GetImageBitmapFormatFromSurfaceFromat(
|
||||||
SurfaceFormat aSurfaceFormat) {
|
SurfaceFormat aSurfaceFormat) {
|
||||||
@@ -199,4 +200,5 @@ uint32_t ImageUtils::GetBufferLength() const {
|
|||||||
return mImpl->GetBufferLength();
|
return mImpl->GetBufferLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::dom
|
} // namespace dom
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
#include "mozilla/dom/GeolocationPositionBinding.h"
|
#include "mozilla/dom/GeolocationPositionBinding.h"
|
||||||
#include "mozilla/dom/GeolocationCoordinatesBinding.h"
|
#include "mozilla/dom/GeolocationCoordinatesBinding.h"
|
||||||
|
|
||||||
namespace mozilla::dom {
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
|
||||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(GeolocationCoordinates, mPosition)
|
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(GeolocationCoordinates, mPosition)
|
||||||
NS_IMPL_CYCLE_COLLECTING_ADDREF(GeolocationCoordinates)
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(GeolocationCoordinates)
|
||||||
@@ -64,4 +65,5 @@ GENERATE_COORDS_WRAPPED_GETTER_NULLABLE(Speed)
|
|||||||
#undef GENERATE_COORDS_WRAPPED_GETTER
|
#undef GENERATE_COORDS_WRAPPED_GETTER
|
||||||
#undef GENERATE_COORDS_WRAPPED_GETTER_NULLABLE
|
#undef GENERATE_COORDS_WRAPPED_GETTER_NULLABLE
|
||||||
|
|
||||||
} // namespace mozilla::dom
|
} // namespace dom
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -142,7 +142,8 @@ nsGeoPosition::GetCoords(nsIDOMGeoPositionCoords** aCoords) {
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace mozilla::dom {
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
|
||||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(GeolocationPosition, mParent,
|
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(GeolocationPosition, mParent,
|
||||||
mCoordinates)
|
mCoordinates)
|
||||||
@@ -185,4 +186,5 @@ uint64_t GeolocationPosition::Timestamp() const {
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::dom
|
} // namespace dom
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
#include "mozilla/CycleCollectedJSContext.h" // for nsAutoMicroTask
|
#include "mozilla/CycleCollectedJSContext.h" // for nsAutoMicroTask
|
||||||
#include "Geolocation.h"
|
#include "Geolocation.h"
|
||||||
|
|
||||||
namespace mozilla::dom {
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
|
||||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(GeolocationPositionError, mParent)
|
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(GeolocationPositionError, mParent)
|
||||||
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(GeolocationPositionError, AddRef)
|
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(GeolocationPositionError, AddRef)
|
||||||
@@ -63,4 +64,5 @@ void GeolocationPositionError::NotifyCallback(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::dom
|
} // namespace dom
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -19,7 +19,8 @@
|
|||||||
#include "nsObjectLoadingContent.h"
|
#include "nsObjectLoadingContent.h"
|
||||||
#include "GeckoProfiler.h"
|
#include "GeckoProfiler.h"
|
||||||
|
|
||||||
namespace mozilla::dom {
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
|
||||||
class PluginDocument final : public MediaDocument, public nsIPluginDocument {
|
class PluginDocument final : public MediaDocument, public nsIPluginDocument {
|
||||||
public:
|
public:
|
||||||
@@ -257,7 +258,8 @@ PluginDocument::Print() {
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::dom
|
} // namespace dom
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
nsresult NS_NewPluginDocument(mozilla::dom::Document** aResult) {
|
nsresult NS_NewPluginDocument(mozilla::dom::Document** aResult) {
|
||||||
auto* doc = new mozilla::dom::PluginDocument();
|
auto* doc = new mozilla::dom::PluginDocument();
|
||||||
|
|||||||
@@ -141,7 +141,8 @@ namespace mozilla {
|
|||||||
MOZ_TYPE_SPECIFIC_SCOPED_POINTER_TEMPLATE(ScopedPRFileDesc, PRFileDesc,
|
MOZ_TYPE_SPECIFIC_SCOPED_POINTER_TEMPLATE(ScopedPRFileDesc, PRFileDesc,
|
||||||
PR_Close);
|
PR_Close);
|
||||||
|
|
||||||
namespace dom::indexedDB {
|
namespace dom {
|
||||||
|
namespace indexedDB {
|
||||||
|
|
||||||
using namespace mozilla::dom::quota;
|
using namespace mozilla::dom::quota;
|
||||||
using namespace mozilla::ipc;
|
using namespace mozilla::ipc;
|
||||||
@@ -27675,7 +27676,8 @@ nsresult FileHelper::SyncCopy(nsIInputStream* aInputStream,
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace dom::indexedDB
|
} // namespace indexedDB
|
||||||
|
} // namespace dom
|
||||||
} // namespace mozilla
|
} // namespace mozilla
|
||||||
|
|
||||||
#undef IDB_MOBILE
|
#undef IDB_MOBILE
|
||||||
|
|||||||
@@ -27,7 +27,9 @@
|
|||||||
#include "unicode/ucol.h"
|
#include "unicode/ucol.h"
|
||||||
#include "xpcpublic.h"
|
#include "xpcpublic.h"
|
||||||
|
|
||||||
namespace mozilla::dom::indexedDB {
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
namespace indexedDB {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Here's how we encode keys:
|
Here's how we encode keys:
|
||||||
@@ -885,4 +887,6 @@ nsresult Key::SetFromSource(T* aSource, uint32_t aIndex) {
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::dom::indexedDB
|
} // namespace indexedDB
|
||||||
|
} // namespace dom
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -456,7 +456,9 @@ void PopException() {
|
|||||||
// Static callbacks that get routed back through the new C++ API
|
// Static callbacks that get routed back through the new C++ API
|
||||||
//
|
//
|
||||||
|
|
||||||
namespace mozilla::plugins::parent {
|
namespace mozilla {
|
||||||
|
namespace plugins {
|
||||||
|
namespace parent {
|
||||||
|
|
||||||
NPError _geturl(NPP npp, const char* relativeURL, const char* target) {
|
NPError _geturl(NPP npp, const char* relativeURL, const char* target) {
|
||||||
if (!NS_IsMainThread()) {
|
if (!NS_IsMainThread()) {
|
||||||
@@ -1881,4 +1883,6 @@ void _setcurrentasyncsurface(NPP instance, NPAsyncSurface* surface,
|
|||||||
inst->SetCurrentAsyncSurface(surface, changed);
|
inst->SetCurrentAsyncSurface(surface, changed);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::plugins::parent
|
} /* namespace parent */
|
||||||
|
} /* namespace plugins */
|
||||||
|
} /* namespace mozilla */
|
||||||
|
|||||||
@@ -154,7 +154,8 @@ static bool IsTypeInList(const nsCString& aMimeType, nsCString aTypeList) {
|
|||||||
return FindInReadable(commaSeparated, start, end);
|
return FindInReadable(commaSeparated, start, end);
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace mozilla::plugins {
|
namespace mozilla {
|
||||||
|
namespace plugins {
|
||||||
class BlocklistPromiseHandler final
|
class BlocklistPromiseHandler final
|
||||||
: public mozilla::dom::PromiseNativeHandler {
|
: public mozilla::dom::PromiseNativeHandler {
|
||||||
public:
|
public:
|
||||||
@@ -259,7 +260,8 @@ NS_IMPL_ISUPPORTS0(BlocklistPromiseHandler)
|
|||||||
bool BlocklistPromiseHandler::sPluginBlocklistStatesChangedSinceLastWrite =
|
bool BlocklistPromiseHandler::sPluginBlocklistStatesChangedSinceLastWrite =
|
||||||
false;
|
false;
|
||||||
uint32_t BlocklistPromiseHandler::sPendingBlocklistStateRequests = 0;
|
uint32_t BlocklistPromiseHandler::sPendingBlocklistStateRequests = 0;
|
||||||
} // namespace mozilla::plugins
|
} // namespace plugins
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
nsPluginHost::nsPluginHost()
|
nsPluginHost::nsPluginHost()
|
||||||
: mPluginsLoaded(false),
|
: mPluginsLoaded(false),
|
||||||
|
|||||||
@@ -77,7 +77,8 @@ nsresult NS_NewPrototypeDocumentContentSink(nsIContentSink** aResult,
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace mozilla::dom {
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
|
||||||
PrototypeDocumentContentSink::PrototypeDocumentContentSink()
|
PrototypeDocumentContentSink::PrototypeDocumentContentSink()
|
||||||
: mNextSrcLoadWaiter(nullptr),
|
: mNextSrcLoadWaiter(nullptr),
|
||||||
@@ -1079,4 +1080,5 @@ nsresult PrototypeDocumentContentSink::AddAttributes(
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::dom
|
} // namespace dom
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
MOZ_ALWAYS_INLINE
|
MOZ_ALWAYS_INLINE
|
||||||
__m128i Divide(__m128i aValues, __m128i aDivisor) {
|
__m128i Divide(__m128i aValues, __m128i aDivisor) {
|
||||||
@@ -342,4 +343,5 @@ void AlphaBoxBlur::BoxBlur_SSE2(uint8_t* aData, int32_t aLeftLobe,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -13,7 +13,8 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "mozilla/Vector.h"
|
#include "mozilla/Vector.h"
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
ConvolutionFilter::ConvolutionFilter()
|
ConvolutionFilter::ConvolutionFilter()
|
||||||
: mFilter(MakeUnique<SkConvolutionFilter1D>()) {}
|
: mFilter(MakeUnique<SkConvolutionFilter1D>()) {}
|
||||||
@@ -162,4 +163,5 @@ bool ConvolutionFilter::ComputeResizeFilter(ResizeMethod aResizeMethod,
|
|||||||
return mFilter->maxFilter() > 0 && mFilter->numValues() == aDstSize;
|
return mFilter->maxFilter() > 0 && mFilter->numValues() == aDstSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -42,7 +42,8 @@
|
|||||||
# include "ScaledFontDWrite.h"
|
# include "ScaledFontDWrite.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
class GradientStopsSkia : public GradientStops {
|
class GradientStopsSkia : public GradientStops {
|
||||||
public:
|
public:
|
||||||
@@ -1884,4 +1885,5 @@ void DrawTargetSkia::MarkChanged() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -202,7 +202,8 @@ void mozilla_UnlockFTLibrary(FT_Library aFTLibrary) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
#ifdef MOZ_ENABLE_FREETYPE
|
#ifdef MOZ_ENABLE_FREETYPE
|
||||||
FT_Library Factory::mFTLibrary = nullptr;
|
FT_Library Factory::mFTLibrary = nullptr;
|
||||||
@@ -1377,4 +1378,5 @@ void LogWStr(const wchar_t* aWStr, std::stringstream& aOut) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ static_assert(
|
|||||||
false, "If this file is built, FilterProcessing.h should know about it!");
|
false, "If this file is built, FilterProcessing.h should know about it!");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
void FilterProcessing::ExtractAlpha_SSE2(const IntSize& size,
|
void FilterProcessing::ExtractAlpha_SSE2(const IntSize& size,
|
||||||
uint8_t* sourceData,
|
uint8_t* sourceData,
|
||||||
@@ -123,4 +124,5 @@ FilterProcessing::ApplyArithmeticCombine_SSE2(DataSourceSurface* aInput1,
|
|||||||
aInput1, aInput2, aK1, aK2, aK3, aK4);
|
aInput1, aInput2, aK1, aK2, aK3, aK4);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -134,7 +134,8 @@ MOZ_ALWAYS_INLINE uint32_t Avg2(uint32_t a, uint32_t b) {
|
|||||||
return ((sum & mask) >> 1) + carry;
|
return ((sum & mask) >> 1) + carry;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
void ImageHalfScaler::HalfImage2D_SSE2(uint8_t* aSource, int32_t aSourceStride,
|
void ImageHalfScaler::HalfImage2D_SSE2(uint8_t* aSource, int32_t aSourceStride,
|
||||||
const IntSize& aSourceSize,
|
const IntSize& aSourceSize,
|
||||||
@@ -330,4 +331,5 @@ void ImageHalfScaler::HalfImageHorizontal_SSE2(uint8_t* aSource,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -15,7 +15,8 @@
|
|||||||
|
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
InlineTranslator::InlineTranslator() : mFontContext(nullptr) {}
|
InlineTranslator::InlineTranslator() : mFontContext(nullptr) {}
|
||||||
|
|
||||||
@@ -109,4 +110,5 @@ already_AddRefed<DrawTarget> InlineTranslator::CreateDrawTarget(
|
|||||||
return drawTarget.forget();
|
return drawTarget.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
#include "JobScheduler.h"
|
#include "JobScheduler.h"
|
||||||
#include "mozilla/gfx/Logging.h"
|
#include "mozilla/gfx/Logging.h"
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
void* ThreadCallback(void* threadData);
|
void* ThreadCallback(void* threadData);
|
||||||
|
|
||||||
@@ -152,4 +153,5 @@ void EventObject::Wait() {
|
|||||||
mCond.Wait(&mMutex);
|
mCond.Wait(&mMutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
#include "UnscaledFontFreeType.h"
|
#include "UnscaledFontFreeType.h"
|
||||||
#include "Logging.h"
|
#include "Logging.h"
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
NativeFontResourceFreeType::NativeFontResourceFreeType(
|
NativeFontResourceFreeType::NativeFontResourceFreeType(
|
||||||
UniquePtr<uint8_t[]>&& aFontData, uint32_t aDataLength,
|
UniquePtr<uint8_t[]>&& aFontData, uint32_t aDataLength,
|
||||||
@@ -89,4 +90,5 @@ NativeFontResourceFontconfig::Create(uint8_t* aFontData, uint32_t aDataLength,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -11,7 +11,8 @@
|
|||||||
#include "HelpersSkia.h"
|
#include "HelpersSkia.h"
|
||||||
#include "PathHelpers.h"
|
#include "PathHelpers.h"
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
PathBuilderSkia::PathBuilderSkia(const Matrix& aTransform, const SkPath& aPath,
|
PathBuilderSkia::PathBuilderSkia(const Matrix& aTransform, const SkPath& aPath,
|
||||||
FillRule aFillRule)
|
FillRule aFillRule)
|
||||||
@@ -202,4 +203,5 @@ void PathSkia::StreamToSink(PathSink* aSink) const {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
#include FT_LCD_FILTER_H
|
#include FT_LCD_FILTER_H
|
||||||
#include FT_MULTIPLE_MASTERS_H
|
#include FT_MULTIPLE_MASTERS_H
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
ScaledFontFontconfig::ScaledFontFontconfig(
|
ScaledFontFontconfig::ScaledFontFontconfig(
|
||||||
RefPtr<SharedFTFace>&& aFace, FcPattern* aPattern,
|
RefPtr<SharedFTFace>&& aFace, FcPattern* aPattern,
|
||||||
@@ -520,4 +521,5 @@ already_AddRefed<UnscaledFont> UnscaledFontFontconfig::CreateFromFontDescriptor(
|
|||||||
return unscaledFont.forget();
|
return unscaledFont.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
#include "skia/include/core/SkData.h"
|
#include "skia/include/core/SkData.h"
|
||||||
#include "mozilla/CheckedInt.h"
|
#include "mozilla/CheckedInt.h"
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
SourceSurfaceSkia::SourceSurfaceSkia()
|
SourceSurfaceSkia::SourceSurfaceSkia()
|
||||||
: mFormat(SurfaceFormat::UNKNOWN),
|
: mFormat(SurfaceFormat::UNKNOWN),
|
||||||
@@ -170,4 +171,5 @@ void SourceSurfaceSkia::DrawTargetWillChange() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
#include <tmmintrin.h>
|
#include <tmmintrin.h>
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
template <bool aSwapRB>
|
template <bool aSwapRB>
|
||||||
void UnpackRowRGB24_SSSE3(const uint8_t* aSrc, uint8_t* aDst, int32_t aLength);
|
void UnpackRowRGB24_SSSE3(const uint8_t* aSrc, uint8_t* aDst, int32_t aLength);
|
||||||
@@ -80,4 +81,5 @@ void UnpackRowRGB24_AVX2(const uint8_t* aSrc, uint8_t* aDst, int32_t aLength) {
|
|||||||
template void UnpackRowRGB24_AVX2<false>(const uint8_t*, uint8_t*, int32_t);
|
template void UnpackRowRGB24_AVX2<false>(const uint8_t*, uint8_t*, int32_t);
|
||||||
template void UnpackRowRGB24_AVX2<true>(const uint8_t*, uint8_t*, int32_t);
|
template void UnpackRowRGB24_AVX2<true>(const uint8_t*, uint8_t*, int32_t);
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
|
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
// Load 1-3 pixels into a 4 pixel vector.
|
// Load 1-3 pixels into a 4 pixel vector.
|
||||||
static MOZ_ALWAYS_INLINE __m128i LoadRemainder_SSE2(const uint8_t* aSrc,
|
static MOZ_ALWAYS_INLINE __m128i LoadRemainder_SSE2(const uint8_t* aSrc,
|
||||||
@@ -371,4 +372,5 @@ template void Swizzle_SSE2<true, false>(const uint8_t*, int32_t, uint8_t*,
|
|||||||
template void Swizzle_SSE2<true, true>(const uint8_t*, int32_t, uint8_t*,
|
template void Swizzle_SSE2<true, true>(const uint8_t*, int32_t, uint8_t*,
|
||||||
int32_t, IntSize);
|
int32_t, IntSize);
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
#include <tmmintrin.h>
|
#include <tmmintrin.h>
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
template <bool aSwapRB>
|
template <bool aSwapRB>
|
||||||
void UnpackRowRGB24(const uint8_t* aSrc, uint8_t* aDst, int32_t aLength);
|
void UnpackRowRGB24(const uint8_t* aSrc, uint8_t* aDst, int32_t aLength);
|
||||||
@@ -62,4 +63,5 @@ void UnpackRowRGB24_SSSE3(const uint8_t* aSrc, uint8_t* aDst, int32_t aLength) {
|
|||||||
template void UnpackRowRGB24_SSSE3<false>(const uint8_t*, uint8_t*, int32_t);
|
template void UnpackRowRGB24_SSSE3<false>(const uint8_t*, uint8_t*, int32_t);
|
||||||
template void UnpackRowRGB24_SSSE3<true>(const uint8_t*, uint8_t*, int32_t);
|
template void UnpackRowRGB24_SSSE3<true>(const uint8_t*, uint8_t*, int32_t);
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -20,7 +20,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
bool UnscaledFontFreeType::GetFontFileData(FontFileDataOutput aDataCallback,
|
bool UnscaledFontFreeType::GetFontFileData(FontFileDataOutput aDataCallback,
|
||||||
void* aBaton) {
|
void* aBaton) {
|
||||||
@@ -190,4 +191,5 @@ void UnscaledFontFreeType::ApplyVariationsToFace(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -46,7 +46,8 @@
|
|||||||
# include "gfxPlatformGtk.h"
|
# include "gfxPlatformGtk.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::gl {
|
namespace mozilla {
|
||||||
|
namespace gl {
|
||||||
|
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
using namespace mozilla::widget;
|
using namespace mozilla::widget;
|
||||||
@@ -1051,4 +1052,5 @@ GLContext* GLContextProviderGLX::GetGlobalContext() {
|
|||||||
/*static*/
|
/*static*/
|
||||||
void GLContextProviderGLX::Shutdown() {}
|
void GLContextProviderGLX::Shutdown() {}
|
||||||
|
|
||||||
} // namespace mozilla::gl
|
} /* namespace gl */
|
||||||
|
} /* namespace mozilla */
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
|
|
||||||
#include "GLContextProvider.h"
|
#include "GLContextProvider.h"
|
||||||
|
|
||||||
namespace mozilla::gl {
|
namespace mozilla {
|
||||||
|
namespace gl {
|
||||||
|
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
using namespace mozilla::widget;
|
using namespace mozilla::widget;
|
||||||
@@ -80,4 +81,5 @@ void GLContextProviderWayland::Shutdown() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gl
|
} /* namespace gl */
|
||||||
|
} /* namespace mozilla */
|
||||||
|
|||||||
@@ -34,7 +34,8 @@
|
|||||||
# include "SharedSurfaceGLX.h"
|
# include "SharedSurfaceGLX.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::gl {
|
namespace mozilla {
|
||||||
|
namespace gl {
|
||||||
|
|
||||||
using gfx::SurfaceFormat;
|
using gfx::SurfaceFormat;
|
||||||
|
|
||||||
@@ -769,4 +770,5 @@ void ReadBuffer::SetReadBuffer(GLenum userMode) const {
|
|||||||
mGL->fReadBuffer(internalMode);
|
mGL->fReadBuffer(internalMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gl
|
} /* namespace gl */
|
||||||
|
} /* namespace mozilla */
|
||||||
|
|||||||
@@ -16,7 +16,8 @@
|
|||||||
#include "mozilla/layers/TextureForwarder.h"
|
#include "mozilla/layers/TextureForwarder.h"
|
||||||
#include "mozilla/X11Util.h"
|
#include "mozilla/X11Util.h"
|
||||||
|
|
||||||
namespace mozilla::gl {
|
namespace mozilla {
|
||||||
|
namespace gl {
|
||||||
|
|
||||||
/* static */
|
/* static */
|
||||||
UniquePtr<SharedSurface_GLXDrawable> SharedSurface_GLXDrawable::Create(
|
UniquePtr<SharedSurface_GLXDrawable> SharedSurface_GLXDrawable::Create(
|
||||||
@@ -118,4 +119,5 @@ UniquePtr<SharedSurface> SurfaceFactory_GLXDrawable::CreateShared(
|
|||||||
mAllocator->IsSameProcess());
|
mAllocator->IsSameProcess());
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gl
|
} // namespace gl
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -73,7 +73,8 @@
|
|||||||
# include "mozilla/SandboxTestingChild.h"
|
# include "mozilla/SandboxTestingChild.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
using namespace ipc;
|
using namespace ipc;
|
||||||
using namespace layers;
|
using namespace layers;
|
||||||
@@ -586,4 +587,5 @@ void GPUParent::ActorDestroy(ActorDestroyReason aWhy) {
|
|||||||
XRE_ShutdownChildProcess();
|
XRE_ShutdownChildProcess();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -40,7 +40,8 @@
|
|||||||
# include "mozilla/layers/D3D11YCbCrImage.h"
|
# include "mozilla/layers/D3D11YCbCrImage.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::layers {
|
namespace mozilla {
|
||||||
|
namespace layers {
|
||||||
|
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
using namespace mozilla::ipc;
|
using namespace mozilla::ipc;
|
||||||
@@ -799,4 +800,5 @@ ImageContainer::ProducerID ImageContainer::AllocateProducerID() {
|
|||||||
return ++sProducerID;
|
return ++sProducerID;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::layers
|
} // namespace layers
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -20,7 +20,8 @@
|
|||||||
|
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
namespace mozilla::layers {
|
namespace mozilla {
|
||||||
|
namespace layers {
|
||||||
|
|
||||||
class BasicImageLayer : public ImageLayer, public BasicImplData {
|
class BasicImageLayer : public ImageLayer, public BasicImplData {
|
||||||
public:
|
public:
|
||||||
@@ -105,4 +106,5 @@ already_AddRefed<ImageLayer> BasicLayerManager::CreateImageLayer() {
|
|||||||
return layer.forget();
|
return layer.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::layers
|
} // namespace layers
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
using namespace mozilla;
|
using namespace mozilla;
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
namespace mozilla::layers {
|
namespace mozilla {
|
||||||
|
namespace layers {
|
||||||
|
|
||||||
X11TextureData::X11TextureData(gfx::IntSize aSize, gfx::SurfaceFormat aFormat,
|
X11TextureData::X11TextureData(gfx::IntSize aSize, gfx::SurfaceFormat aFormat,
|
||||||
bool aClientDeallocation, bool aIsCrossProcess,
|
bool aClientDeallocation, bool aIsCrossProcess,
|
||||||
@@ -136,4 +137,5 @@ X11TextureData* X11TextureData::Create(gfx::IntSize aSize,
|
|||||||
return texture;
|
return texture;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::layers
|
} // namespace layers
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
#include "gfxXlibSurface.h"
|
#include "gfxXlibSurface.h"
|
||||||
#include "gfx2DGlue.h"
|
#include "gfx2DGlue.h"
|
||||||
|
|
||||||
namespace mozilla::layers {
|
namespace mozilla {
|
||||||
|
namespace layers {
|
||||||
|
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
@@ -45,4 +46,5 @@ SurfaceFormat X11TextureSourceBasic::ContentTypeToSurfaceFormat(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::layers
|
} // namespace layers
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -70,7 +70,8 @@
|
|||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::layers {
|
namespace mozilla {
|
||||||
|
namespace layers {
|
||||||
|
|
||||||
using namespace mozilla::ipc;
|
using namespace mozilla::ipc;
|
||||||
using namespace mozilla::gl;
|
using namespace mozilla::gl;
|
||||||
@@ -1906,4 +1907,5 @@ bool MappedYCbCrChannelData::CopyInto(MappedYCbCrChannelData& aDst) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::layers
|
} // namespace layers
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
#include "gfxPlatform.h"
|
#include "gfxPlatform.h"
|
||||||
#include "gfxXlibSurface.h"
|
#include "gfxXlibSurface.h"
|
||||||
|
|
||||||
namespace mozilla::layers {
|
namespace mozilla {
|
||||||
|
namespace layers {
|
||||||
|
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
@@ -100,4 +101,5 @@ already_AddRefed<gfx::DataSourceSurface> X11TextureHost::GetAsSurface() {
|
|||||||
return surf->GetDataSurface();
|
return surf->GetDataSurface();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::layers
|
} // namespace layers
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
#include "mozilla/widget/WaylandDMABufSurface.h"
|
#include "mozilla/widget/WaylandDMABufSurface.h"
|
||||||
#include "gfxPlatform.h"
|
#include "gfxPlatform.h"
|
||||||
|
|
||||||
namespace mozilla::layers {
|
namespace mozilla {
|
||||||
|
namespace layers {
|
||||||
|
|
||||||
using namespace gfx;
|
using namespace gfx;
|
||||||
|
|
||||||
@@ -102,4 +103,5 @@ bool WaylandDMABUFTextureData::UpdateFromSurface(gfx::SourceSurface* aSurface) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::layers
|
} // namespace layers
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -11,7 +11,8 @@
|
|||||||
#include "mozilla/webrender/WebRenderAPI.h"
|
#include "mozilla/webrender/WebRenderAPI.h"
|
||||||
#include "GLContextEGL.h"
|
#include "GLContextEGL.h"
|
||||||
|
|
||||||
namespace mozilla::layers {
|
namespace mozilla {
|
||||||
|
namespace layers {
|
||||||
|
|
||||||
WaylandDMABUFTextureHostOGL::WaylandDMABUFTextureHostOGL(
|
WaylandDMABUFTextureHostOGL::WaylandDMABUFTextureHostOGL(
|
||||||
TextureFlags aFlags, const SurfaceDescriptor& aDesc)
|
TextureFlags aFlags, const SurfaceDescriptor& aDesc)
|
||||||
@@ -134,4 +135,5 @@ void WaylandDMABUFTextureHostOGL::PushDisplayItems(
|
|||||||
!(mFlags & TextureFlags::NON_PREMULTIPLIED));
|
!(mFlags & TextureFlags::NON_PREMULTIPLIED));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::layers
|
} // namespace layers
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
#include "gfx2DGlue.h"
|
#include "gfx2DGlue.h"
|
||||||
#include "GLContext.h"
|
#include "GLContext.h"
|
||||||
|
|
||||||
namespace mozilla::layers {
|
namespace mozilla {
|
||||||
|
namespace layers {
|
||||||
|
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
@@ -86,4 +87,5 @@ SurfaceFormat X11TextureSourceOGL::ContentTypeToSurfaceFormat(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::layers
|
} // namespace layers
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -15,7 +15,8 @@
|
|||||||
# include "mozilla/layers/TextureHostOGL.h"
|
# include "mozilla/layers/TextureHostOGL.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::layers {
|
namespace mozilla {
|
||||||
|
namespace layers {
|
||||||
|
|
||||||
WebRenderTextureHost::WebRenderTextureHost(
|
WebRenderTextureHost::WebRenderTextureHost(
|
||||||
const SurfaceDescriptor& aDesc, TextureFlags aFlags, TextureHost* aTexture,
|
const SurfaceDescriptor& aDesc, TextureFlags aFlags, TextureHost* aTexture,
|
||||||
@@ -229,4 +230,5 @@ bool WebRenderTextureHost::NeedsYFlip() const {
|
|||||||
return yFlip;
|
return yFlip;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::layers
|
} // namespace layers
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -23,7 +23,8 @@
|
|||||||
// RFC: https://tools.ietf.org/html/rfc2911#section-4.1.2
|
// RFC: https://tools.ietf.org/html/rfc2911#section-4.1.2
|
||||||
#define IPP_JOB_NAME_LIMIT_LENGTH 255
|
#define IPP_JOB_NAME_LIMIT_LENGTH 255
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
PrintTarget::PrintTarget(cairo_surface_t* aCairoSurface, const IntSize& aSize)
|
PrintTarget::PrintTarget(cairo_surface_t* aCairoSurface, const IntSize& aSize)
|
||||||
: mCairoSurface(aCairoSurface),
|
: mCairoSurface(aCairoSurface),
|
||||||
@@ -201,4 +202,5 @@ void PrintTarget::RegisterPageDoneCallback(PageDoneCallback&& aCallback) {
|
|||||||
|
|
||||||
void PrintTarget::UnregisterPageDoneCallback() { mPageDoneCallback = nullptr; }
|
void PrintTarget::UnregisterPageDoneCallback() { mPageDoneCallback = nullptr; }
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
#include "cairo.h"
|
#include "cairo.h"
|
||||||
#include "cairo-pdf.h"
|
#include "cairo-pdf.h"
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
static cairo_status_t write_func(void* closure, const unsigned char* data,
|
static cairo_status_t write_func(void* closure, const unsigned char* data,
|
||||||
unsigned int length) {
|
unsigned int length) {
|
||||||
@@ -68,4 +69,5 @@ void PrintTargetPDF::Finish() {
|
|||||||
mStream->Close();
|
mStream->Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
#include "cairo.h"
|
#include "cairo.h"
|
||||||
#include "cairo-ps.h"
|
#include "cairo-ps.h"
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
static cairo_status_t write_func(void* closure, const unsigned char* data,
|
static cairo_status_t write_func(void* closure, const unsigned char* data,
|
||||||
unsigned int length) {
|
unsigned int length) {
|
||||||
@@ -93,4 +94,5 @@ void PrintTargetPS::Finish() {
|
|||||||
mStream->Close();
|
mStream->Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
#include "nsString.h"
|
#include "nsString.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
PrintTargetSkPDF::PrintTargetSkPDF(const IntSize& aSize,
|
PrintTargetSkPDF::PrintTargetSkPDF(const IntSize& aSize,
|
||||||
UniquePtr<SkWStream> aStream)
|
UniquePtr<SkWStream> aStream)
|
||||||
@@ -123,4 +124,5 @@ already_AddRefed<DrawTarget> PrintTargetSkPDF::GetReferenceDrawTarget() {
|
|||||||
return do_AddRef(mRefDT);
|
return do_AddRef(mRefDT);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
#include "gfxPlatform.h"
|
#include "gfxPlatform.h"
|
||||||
#include "mozilla/gfx/Logging.h"
|
#include "mozilla/gfx/Logging.h"
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
/* static */
|
/* static */
|
||||||
already_AddRefed<PrintTargetThebes> PrintTargetThebes::CreateOrNull(
|
already_AddRefed<PrintTargetThebes> PrintTargetThebes::CreateOrNull(
|
||||||
@@ -95,4 +96,5 @@ nsresult PrintTargetThebes::EndPage() {
|
|||||||
|
|
||||||
void PrintTargetThebes::Finish() { return mGfxSurface->Finish(); }
|
void PrintTargetThebes::Finish() { return mGfxSurface->Finish(); }
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ using namespace mozilla::gfx;
|
|||||||
using namespace mozilla::layers;
|
using namespace mozilla::layers;
|
||||||
using namespace mozilla::gl;
|
using namespace mozilla::gl;
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When VR content is active, we run the tasks at 1ms
|
* When VR content is active, we run the tasks at 1ms
|
||||||
@@ -1530,4 +1531,5 @@ VRManager::Observe(nsISupports* subject, const char* topic,
|
|||||||
|
|
||||||
NS_IMPL_ISUPPORTS(VRManager, nsIObserver)
|
NS_IMPL_ISUPPORTS(VRManager, nsIObserver)
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
#include "prthread.h"
|
#include "prthread.h"
|
||||||
#include "mozilla/ClearOnShutdown.h"
|
#include "mozilla/ClearOnShutdown.h"
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
static StaticRefPtr<VRPuppetCommandBuffer> sVRPuppetCommandBufferSingleton;
|
static StaticRefPtr<VRPuppetCommandBuffer> sVRPuppetCommandBufferSingleton;
|
||||||
|
|
||||||
@@ -507,4 +508,5 @@ void VRPuppetCommandBuffer::EncodeStruct(nsTArray<uint64_t>& aBuffer,
|
|||||||
purgeBuffer();
|
purgeBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -16,7 +16,8 @@
|
|||||||
#include "mozilla/dom/HTMLCanvasElement.h"
|
#include "mozilla/dom/HTMLCanvasElement.h"
|
||||||
#include "mozilla/layers/SyncObject.h" // for SyncObjectClient
|
#include "mozilla/layers/SyncObject.h" // for SyncObjectClient
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
VRLayerChild::VRLayerChild()
|
VRLayerChild::VRLayerChild()
|
||||||
: mCanvasElement(nullptr), mIPCOpen(false), mLastSubmittedFrameId(0) {
|
: mCanvasElement(nullptr), mIPCOpen(false), mLastSubmittedFrameId(0) {
|
||||||
@@ -139,4 +140,5 @@ void VRLayerChild::ReleaseIPDLReference() {
|
|||||||
Release();
|
Release();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ const uint32_t kVRHapticUpdateInterval = 5;
|
|||||||
|
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
@@ -2363,4 +2364,5 @@ void OpenVRSession::UpdateTelemetry(VRSystemState& aSystemState) {
|
|||||||
aSystemState.displayState.droppedFrameCount = stats.m_nNumReprojectedFrames;
|
aSystemState.displayState.droppedFrameCount = stats.m_nNumReprojectedFrames;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -19,7 +19,8 @@
|
|||||||
|
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
namespace mozilla::gfx {
|
namespace mozilla {
|
||||||
|
namespace gfx {
|
||||||
|
|
||||||
PuppetSession::PuppetSession() : VRSession() {}
|
PuppetSession::PuppetSession() : VRSession() {}
|
||||||
|
|
||||||
@@ -115,4 +116,5 @@ void PuppetSession::StopAllHaptics() {
|
|||||||
VRPuppetCommandBuffer::Get().StopAllHaptics();
|
VRPuppetCommandBuffer::Get().StopAllHaptics();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::gfx
|
} // namespace gfx
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -26,7 +26,8 @@
|
|||||||
# include <android/native_window_jni.h>
|
# include <android/native_window_jni.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::wr {
|
namespace mozilla {
|
||||||
|
namespace wr {
|
||||||
|
|
||||||
/* static */
|
/* static */
|
||||||
UniquePtr<RenderCompositor> RenderCompositorEGL::Create(
|
UniquePtr<RenderCompositor> RenderCompositorEGL::Create(
|
||||||
@@ -119,7 +120,7 @@ bool RenderCompositorEGL::Resume() {
|
|||||||
EGLNativeWindowType window = mWidget->AsAndroid()->GetEGLNativeWindow();
|
EGLNativeWindowType window = mWidget->AsAndroid()->GetEGLNativeWindow();
|
||||||
JNIEnv* const env = jni::GetEnvForThread();
|
JNIEnv* const env = jni::GetEnvForThread();
|
||||||
ANativeWindow* const nativeWindow =
|
ANativeWindow* const nativeWindow =
|
||||||
ANativeWindow_fromSurface(env, reinterpret_cast<jobject>(window));
|
ANativeWindow_fromSurface(env, reinterpret_cast<jobject>(window));
|
||||||
const int32_t width = ANativeWindow_getWidth(nativeWindow);
|
const int32_t width = ANativeWindow_getWidth(nativeWindow);
|
||||||
const int32_t height = ANativeWindow_getHeight(nativeWindow);
|
const int32_t height = ANativeWindow_getHeight(nativeWindow);
|
||||||
mEGLSurfaceSize = LayoutDeviceIntSize(width, height);
|
mEGLSurfaceSize = LayoutDeviceIntSize(width, height);
|
||||||
@@ -175,4 +176,5 @@ LayoutDeviceIntSize RenderCompositorEGL::GetBufferSize() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::wr
|
} // namespace wr
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
#include "mozilla/gfx/Logging.h"
|
#include "mozilla/gfx/Logging.h"
|
||||||
#include "ScopedGLHelpers.h"
|
#include "ScopedGLHelpers.h"
|
||||||
|
|
||||||
namespace mozilla::wr {
|
namespace mozilla {
|
||||||
|
namespace wr {
|
||||||
|
|
||||||
RenderWaylandDMABUFTextureHostOGL::RenderWaylandDMABUFTextureHostOGL(
|
RenderWaylandDMABUFTextureHostOGL::RenderWaylandDMABUFTextureHostOGL(
|
||||||
WaylandDMABufSurface* aSurface)
|
WaylandDMABufSurface* aSurface)
|
||||||
@@ -90,4 +91,5 @@ void RenderWaylandDMABUFTextureHostOGL::DeleteTextureHandle() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::wr
|
} // namespace wr
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ using namespace mozilla::dom;
|
|||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
namespace mozilla::hal {
|
namespace mozilla {
|
||||||
|
namespace hal {
|
||||||
|
|
||||||
static bool sInitialized = false;
|
static bool sInitialized = false;
|
||||||
|
|
||||||
@@ -479,4 +480,5 @@ void Shutdown() {
|
|||||||
sInitialized = false;
|
sInitialized = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::hal
|
} // namespace hal
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -80,7 +80,8 @@ class TestChild final : public mozilla::ipc::PBackgroundTestChild {
|
|||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
namespace mozilla::ipc {
|
namespace mozilla {
|
||||||
|
namespace ipc {
|
||||||
|
|
||||||
using mozilla::dom::UDPSocketChild;
|
using mozilla::dom::UDPSocketChild;
|
||||||
using mozilla::net::PUDPSocketChild;
|
using mozilla::net::PUDPSocketChild;
|
||||||
@@ -756,7 +757,8 @@ PFileDescriptorSetChild* BackgroundChildImpl::SendPFileDescriptorSetConstructor(
|
|||||||
return PBackgroundChild::SendPFileDescriptorSetConstructor(aFD);
|
return PBackgroundChild::SendPFileDescriptorSetConstructor(aFD);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::ipc
|
} // namespace ipc
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
mozilla::ipc::IPCResult TestChild::Recv__delete__(const nsCString& aTestArg) {
|
mozilla::ipc::IPCResult TestChild::Recv__delete__(const nsCString& aTestArg) {
|
||||||
MOZ_RELEASE_ASSERT(aTestArg == mTestArg,
|
MOZ_RELEASE_ASSERT(aTestArg == mTestArg,
|
||||||
|
|||||||
@@ -112,7 +112,8 @@ class TestParent final : public mozilla::ipc::PBackgroundTestParent {
|
|||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
namespace mozilla::ipc {
|
namespace mozilla {
|
||||||
|
namespace ipc {
|
||||||
|
|
||||||
using mozilla::dom::BroadcastChannelParent;
|
using mozilla::dom::BroadcastChannelParent;
|
||||||
using mozilla::dom::ContentParent;
|
using mozilla::dom::ContentParent;
|
||||||
@@ -1304,7 +1305,8 @@ BackgroundParentImpl::SendPFileDescriptorSetConstructor(
|
|||||||
return PBackgroundParent::SendPFileDescriptorSetConstructor(aFD);
|
return PBackgroundParent::SendPFileDescriptorSetConstructor(aFD);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::ipc
|
} // namespace ipc
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
void TestParent::ActorDestroy(ActorDestroyReason aWhy) {
|
void TestParent::ActorDestroy(ActorDestroyReason aWhy) {
|
||||||
mozilla::ipc::AssertIsInMainOrSocketProcess();
|
mozilla::ipc::AssertIsInMainOrSocketProcess();
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
|
|
||||||
#include "FileDescriptorSetChild.h"
|
#include "FileDescriptorSetChild.h"
|
||||||
|
|
||||||
namespace mozilla::ipc {
|
namespace mozilla {
|
||||||
|
namespace ipc {
|
||||||
|
|
||||||
FileDescriptorSetChild::FileDescriptorSetChild(
|
FileDescriptorSetChild::FileDescriptorSetChild(
|
||||||
const FileDescriptor& aFileDescriptor) {
|
const FileDescriptor& aFileDescriptor) {
|
||||||
@@ -29,4 +30,5 @@ mozilla::ipc::IPCResult FileDescriptorSetChild::RecvAddFileDescriptor(
|
|||||||
return IPC_OK();
|
return IPC_OK();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::ipc
|
} // namespace ipc
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
|
|
||||||
#include "FileDescriptorSetParent.h"
|
#include "FileDescriptorSetParent.h"
|
||||||
|
|
||||||
namespace mozilla::ipc {
|
namespace mozilla {
|
||||||
|
namespace ipc {
|
||||||
|
|
||||||
FileDescriptorSetParent::FileDescriptorSetParent(
|
FileDescriptorSetParent::FileDescriptorSetParent(
|
||||||
const FileDescriptor& aFileDescriptor) {
|
const FileDescriptor& aFileDescriptor) {
|
||||||
@@ -31,4 +32,5 @@ mozilla::ipc::IPCResult FileDescriptorSetParent::RecvAddFileDescriptor(
|
|||||||
return IPC_OK();
|
return IPC_OK();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::ipc
|
} // namespace ipc
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace mozilla::jsdebugger {
|
namespace mozilla {
|
||||||
|
namespace jsdebugger {
|
||||||
|
|
||||||
NS_IMPL_ISUPPORTS(JSDebugger, IJSDebugger)
|
NS_IMPL_ISUPPORTS(JSDebugger, IJSDebugger)
|
||||||
|
|
||||||
@@ -68,4 +69,5 @@ JSDebugger::AddClass(JS::Handle<JS::Value> global, JSContext* cx) {
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::jsdebugger
|
} // namespace jsdebugger
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -64,7 +64,8 @@ using mozilla::IsAsciiDigit;
|
|||||||
using JS::AutoCheckCannotGC;
|
using JS::AutoCheckCannotGC;
|
||||||
using JS::AutoStableStringChars;
|
using JS::AutoStableStringChars;
|
||||||
|
|
||||||
namespace js::ctypes {
|
namespace js {
|
||||||
|
namespace ctypes {
|
||||||
|
|
||||||
static bool HasUnpairedSurrogate(const char16_t* chars, size_t nchars,
|
static bool HasUnpairedSurrogate(const char16_t* chars, size_t nchars,
|
||||||
char16_t* unpaired) {
|
char16_t* unpaired) {
|
||||||
@@ -2318,7 +2319,8 @@ static bool GetObjectProperty(JSContext* cx, HandleObject obj,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace js::ctypes
|
} /* namespace ctypes */
|
||||||
|
} /* namespace js */
|
||||||
|
|
||||||
using namespace js;
|
using namespace js;
|
||||||
using namespace js::ctypes;
|
using namespace js::ctypes;
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
|
|
||||||
using JS::AutoStableStringChars;
|
using JS::AutoStableStringChars;
|
||||||
|
|
||||||
namespace js::ctypes {
|
namespace js {
|
||||||
|
namespace ctypes {
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** JSAPI function prototypes
|
** JSAPI function prototypes
|
||||||
@@ -402,4 +403,5 @@ bool Library::Declare(JSContext* cx, unsigned argc, Value* vp) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace js::ctypes
|
} // namespace ctypes
|
||||||
|
} // namespace js
|
||||||
|
|||||||
@@ -33,7 +33,8 @@
|
|||||||
using JS::RegExpFlag;
|
using JS::RegExpFlag;
|
||||||
using JS::RegExpFlags;
|
using JS::RegExpFlags;
|
||||||
|
|
||||||
namespace js::frontend {
|
namespace js {
|
||||||
|
namespace frontend {
|
||||||
|
|
||||||
// Compare a bunch of `uint8_t` values (as returned by the tokenizer_) with
|
// Compare a bunch of `uint8_t` values (as returned by the tokenizer_) with
|
||||||
// a string literal (and ONLY a string literal).
|
// a string literal (and ONLY a string literal).
|
||||||
@@ -5035,4 +5036,5 @@ JS::Result<ParseNode*> BinASTParser<Tok>::parseOptionalStatement(
|
|||||||
template class BinASTParser<BinASTTokenReaderContext>;
|
template class BinASTParser<BinASTTokenReaderContext>;
|
||||||
template class BinASTParser<BinASTTokenReaderMultipart>;
|
template class BinASTParser<BinASTTokenReaderMultipart>;
|
||||||
|
|
||||||
} // namespace js::frontend
|
} // namespace frontend
|
||||||
|
} // namespace js
|
||||||
|
|||||||
@@ -8,11 +8,13 @@
|
|||||||
|
|
||||||
#include "vm/JSContext-inl.h"
|
#include "vm/JSContext-inl.h"
|
||||||
|
|
||||||
namespace js::frontend {
|
namespace js {
|
||||||
|
namespace frontend {
|
||||||
|
|
||||||
BinASTParserBase::BinASTParserBase(JSContext* cx, ParseInfo& parseInfo,
|
BinASTParserBase::BinASTParserBase(JSContext* cx, ParseInfo& parseInfo,
|
||||||
HandleScriptSourceObject sourceObject)
|
HandleScriptSourceObject sourceObject)
|
||||||
: ParserSharedBase(cx, parseInfo, sourceObject,
|
: ParserSharedBase(cx, parseInfo, sourceObject,
|
||||||
ParserSharedBase::Kind::BinASTParser) {}
|
ParserSharedBase::Kind::BinASTParser) {}
|
||||||
|
|
||||||
} // namespace js::frontend
|
} // namespace frontend
|
||||||
|
} // namespace js
|
||||||
|
|||||||
@@ -74,7 +74,8 @@
|
|||||||
//
|
//
|
||||||
// They should be treated lazily (whenever we open a subscope), like bindings.
|
// They should be treated lazily (whenever we open a subscope), like bindings.
|
||||||
|
|
||||||
namespace js::frontend {
|
namespace js {
|
||||||
|
namespace frontend {
|
||||||
|
|
||||||
using UsedNamePtr = UsedNameTracker::UsedNameMap::Ptr;
|
using UsedNamePtr = UsedNameTracker::UsedNameMap::Ptr;
|
||||||
|
|
||||||
@@ -810,4 +811,5 @@ BinASTParserPerTokenizer<Tok>::asFinalParser() const {
|
|||||||
template class BinASTParserPerTokenizer<BinASTTokenReaderContext>;
|
template class BinASTParserPerTokenizer<BinASTTokenReaderContext>;
|
||||||
template class BinASTParserPerTokenizer<BinASTTokenReaderMultipart>;
|
template class BinASTParserPerTokenizer<BinASTTokenReaderMultipart>;
|
||||||
|
|
||||||
} // namespace js::frontend
|
} // namespace frontend
|
||||||
|
} // namespace js
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
#include "js/Utility.h" // js_malloc
|
#include "js/Utility.h" // js_malloc
|
||||||
#include "vm/StringType.h" // JSAtom
|
#include "vm/StringType.h" // JSAtom
|
||||||
|
|
||||||
namespace js::frontend {
|
namespace js {
|
||||||
|
namespace frontend {
|
||||||
|
|
||||||
BinASTSourceMetadata::~BinASTSourceMetadata() {
|
BinASTSourceMetadata::~BinASTSourceMetadata() {
|
||||||
if (isMultipart()) {
|
if (isMultipart()) {
|
||||||
@@ -110,4 +111,6 @@ void BinASTSourceMetadataContext::release() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace js::frontend
|
} // namespace frontend
|
||||||
|
|
||||||
|
} // namespace js
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
#include "frontend/BinAST-macros.h"
|
#include "frontend/BinAST-macros.h"
|
||||||
#include "js/Result.h"
|
#include "js/Result.h"
|
||||||
|
|
||||||
namespace js::frontend {
|
namespace js {
|
||||||
|
namespace frontend {
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
using ErrorResult = mozilla::GenericErrorResult<T>;
|
using ErrorResult = mozilla::GenericErrorResult<T>;
|
||||||
@@ -104,4 +105,5 @@ JS::Result<uint8_t> BinASTTokenReaderBase::readByte() {
|
|||||||
return *current_++;
|
return *current_++;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace js::frontend
|
} // namespace frontend
|
||||||
|
} // namespace js
|
||||||
|
|||||||
@@ -26,7 +26,8 @@
|
|||||||
#include "vm/JSAtom.h" // AtomizeWTF8Chars
|
#include "vm/JSAtom.h" // AtomizeWTF8Chars
|
||||||
#include "vm/JSScript.h" // ScriptSource
|
#include "vm/JSScript.h" // ScriptSource
|
||||||
|
|
||||||
namespace js::frontend {
|
namespace js {
|
||||||
|
namespace frontend {
|
||||||
|
|
||||||
#ifdef BINAST_CX_MAGIC_HEADER // Context 0.1 doesn't implement the planned
|
#ifdef BINAST_CX_MAGIC_HEADER // Context 0.1 doesn't implement the planned
|
||||||
// magic header.
|
// magic header.
|
||||||
@@ -3268,4 +3269,6 @@ mozilla::detail::IntegerRange<size_t> HuffmanLookup::suffixes(
|
|||||||
return mozilla::IntegerRange<size_t>(first, last + 1);
|
return mozilla::IntegerRange<size_t>(first, last + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace js::frontend
|
} // namespace frontend
|
||||||
|
|
||||||
|
} // namespace js
|
||||||
|
|||||||
@@ -20,7 +20,8 @@
|
|||||||
|
|
||||||
#include "js/Result.h"
|
#include "js/Result.h"
|
||||||
|
|
||||||
namespace js::frontend {
|
namespace js {
|
||||||
|
namespace frontend {
|
||||||
|
|
||||||
// The magic header, at the start of every binjs file.
|
// The magic header, at the start of every binjs file.
|
||||||
const char MAGIC_HEADER[] = "BINJS";
|
const char MAGIC_HEADER[] = "BINJS";
|
||||||
@@ -473,4 +474,6 @@ JS::Result<Ok> BinASTTokenReaderMultipart::AutoTaggedTuple::done() {
|
|||||||
return Ok();
|
return Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace js::frontend
|
} // namespace frontend
|
||||||
|
|
||||||
|
} // namespace js
|
||||||
|
|||||||
@@ -79,7 +79,8 @@ using JS::AutoGCRooter;
|
|||||||
using JS::ReadOnlyCompileOptions;
|
using JS::ReadOnlyCompileOptions;
|
||||||
using JS::RegExpFlags;
|
using JS::RegExpFlags;
|
||||||
|
|
||||||
namespace js::frontend {
|
namespace js {
|
||||||
|
namespace frontend {
|
||||||
|
|
||||||
using DeclaredNamePtr = ParseContext::Scope::DeclaredNamePtr;
|
using DeclaredNamePtr = ParseContext::Scope::DeclaredNamePtr;
|
||||||
using AddDeclaredNamePtr = ParseContext::Scope::AddDeclaredNamePtr;
|
using AddDeclaredNamePtr = ParseContext::Scope::AddDeclaredNamePtr;
|
||||||
@@ -10874,4 +10875,5 @@ template class Parser<SyntaxParseHandler, Utf8Unit>;
|
|||||||
template class Parser<FullParseHandler, char16_t>;
|
template class Parser<FullParseHandler, char16_t>;
|
||||||
template class Parser<SyntaxParseHandler, char16_t>;
|
template class Parser<SyntaxParseHandler, char16_t>;
|
||||||
|
|
||||||
} // namespace js::frontend
|
} /* namespace frontend */
|
||||||
|
} /* namespace js */
|
||||||
|
|||||||
@@ -15,7 +15,8 @@
|
|||||||
#include "vm/Realm.h"
|
#include "vm/Realm.h"
|
||||||
#include "vm/Shape.h"
|
#include "vm/Shape.h"
|
||||||
|
|
||||||
namespace js::vtune {
|
namespace js {
|
||||||
|
namespace vtune {
|
||||||
|
|
||||||
// VTune internals are not known to be threadsafe.
|
// VTune internals are not known to be threadsafe.
|
||||||
static Mutex* VTuneMutex = nullptr;
|
static Mutex* VTuneMutex = nullptr;
|
||||||
@@ -160,4 +161,5 @@ void UnmarkBytes(void* bytes, unsigned size) {
|
|||||||
if (ok != 1) printf("[!] VTune Integration: Failed to unload method.\n");
|
if (ok != 1) printf("[!] VTune Integration: Failed to unload method.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace js::vtune
|
} // namespace vtune
|
||||||
|
} // namespace js
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
#include "mozilla/VsyncDispatcher.h"
|
#include "mozilla/VsyncDispatcher.h"
|
||||||
#include "nsThreadUtils.h"
|
#include "nsThreadUtils.h"
|
||||||
|
|
||||||
namespace mozilla::layout {
|
namespace mozilla {
|
||||||
|
namespace layout {
|
||||||
|
|
||||||
VsyncChild::VsyncChild()
|
VsyncChild::VsyncChild()
|
||||||
: mObservingVsync(false),
|
: mObservingVsync(false),
|
||||||
@@ -90,4 +91,5 @@ mozilla::ipc::IPCResult VsyncChild::RecvVsyncRate(const float& aVsyncRate) {
|
|||||||
return IPC_OK();
|
return IPC_OK();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::layout
|
} // namespace layout
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -15,7 +15,8 @@
|
|||||||
|
|
||||||
#include "nr_socket_proxy_config.h"
|
#include "nr_socket_proxy_config.h"
|
||||||
|
|
||||||
namespace mozilla::net {
|
namespace mozilla {
|
||||||
|
namespace net {
|
||||||
|
|
||||||
using std::shared_ptr;
|
using std::shared_ptr;
|
||||||
|
|
||||||
@@ -121,4 +122,5 @@ void WebrtcTCPSocketWrapper::OnConnected(const nsCString& aProxyType) {
|
|||||||
&WebrtcTCPSocketCallback::OnConnected, aProxyType)));
|
&WebrtcTCPSocketCallback::OnConnected, aProxyType)));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::net
|
} // namespace net
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
# include <dlfcn.h>
|
# include <dlfcn.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::recordreplay {
|
namespace mozilla {
|
||||||
|
namespace recordreplay {
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#define FOR_EACH_INTERFACE(Macro) \
|
#define FOR_EACH_INTERFACE(Macro) \
|
||||||
@@ -179,4 +180,5 @@ bool gIsMiddleman;
|
|||||||
|
|
||||||
#undef ENABLE_RECORD_REPLAY
|
#undef ENABLE_RECORD_REPLAY
|
||||||
|
|
||||||
} // namespace mozilla::recordreplay
|
} // namespace recordreplay
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
|
|
||||||
#include "NetworkInfoServiceImpl.h"
|
#include "NetworkInfoServiceImpl.h"
|
||||||
|
|
||||||
namespace mozilla::net {
|
namespace mozilla {
|
||||||
|
namespace net {
|
||||||
|
|
||||||
static nsresult ListInterfaceAddresses(int aFd, const char* aIface,
|
static nsresult ListInterfaceAddresses(int aFd, const char* aIface,
|
||||||
AddrMapType& aAddrMap);
|
AddrMapType& aAddrMap);
|
||||||
@@ -93,4 +94,5 @@ static nsresult ListInterfaceAddresses(int aFd, const char* aInterface,
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::net
|
} // namespace net
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -19,7 +19,8 @@
|
|||||||
# error "Unsupported platform for nsNetworkInfoService! Check moz.build"
|
# error "Unsupported platform for nsNetworkInfoService! Check moz.build"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::net {
|
namespace mozilla {
|
||||||
|
namespace net {
|
||||||
|
|
||||||
NS_IMPL_ISUPPORTS(nsNetworkInfoService, nsINetworkInfoService)
|
NS_IMPL_ISUPPORTS(nsNetworkInfoService, nsINetworkInfoService)
|
||||||
|
|
||||||
@@ -92,4 +93,5 @@ nsresult nsNetworkInfoService::GetHostname(nsIGetHostnameListener* aListener) {
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::net
|
} // namespace net
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -81,7 +81,8 @@ nsresult nsCacheServiceConstructor(nsISupports* aOuter, const nsIID& aIID,
|
|||||||
|
|
||||||
#include "WebSocketChannel.h"
|
#include "WebSocketChannel.h"
|
||||||
#include "WebSocketChannelChild.h"
|
#include "WebSocketChannelChild.h"
|
||||||
namespace mozilla::net {
|
namespace mozilla {
|
||||||
|
namespace net {
|
||||||
static BaseWebSocketChannel* WebSocketChannelConstructor(bool aSecure) {
|
static BaseWebSocketChannel* WebSocketChannelConstructor(bool aSecure) {
|
||||||
if (IsNeckoChild()) {
|
if (IsNeckoChild()) {
|
||||||
return new WebSocketChannelChild(aSecure);
|
return new WebSocketChannelChild(aSecure);
|
||||||
@@ -112,7 +113,8 @@ static BaseWebSocketChannel* WebSocketChannelConstructor(bool aSecure) {
|
|||||||
WEB_SOCKET_HANDLER_CONSTRUCTOR(WebSocketChannel, false)
|
WEB_SOCKET_HANDLER_CONSTRUCTOR(WebSocketChannel, false)
|
||||||
WEB_SOCKET_HANDLER_CONSTRUCTOR(WebSocketSSLChannel, true)
|
WEB_SOCKET_HANDLER_CONSTRUCTOR(WebSocketSSLChannel, true)
|
||||||
#undef WEB_SOCKET_HANDLER_CONSTRUCTOR
|
#undef WEB_SOCKET_HANDLER_CONSTRUCTOR
|
||||||
} // namespace mozilla::net
|
} // namespace net
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,8 @@
|
|||||||
#include "nsServiceManagerUtils.h"
|
#include "nsServiceManagerUtils.h"
|
||||||
#include "nsThreadUtils.h"
|
#include "nsThreadUtils.h"
|
||||||
|
|
||||||
namespace mozilla::net {
|
namespace mozilla {
|
||||||
|
namespace net {
|
||||||
|
|
||||||
AppCacheStorage::AppCacheStorage(nsILoadContextInfo* aInfo,
|
AppCacheStorage::AppCacheStorage(nsILoadContextInfo* aInfo,
|
||||||
nsIApplicationCache* aAppCache)
|
nsIApplicationCache* aAppCache)
|
||||||
@@ -167,4 +168,5 @@ NS_IMETHODIMP AppCacheStorage::GetCacheIndexEntryAttrs(
|
|||||||
return NS_ERROR_NOT_IMPLEMENTED;
|
return NS_ERROR_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::net
|
} // namespace net
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -19,7 +19,8 @@
|
|||||||
#include "nsNetUtil.h"
|
#include "nsNetUtil.h"
|
||||||
#include "nsServiceManagerUtils.h"
|
#include "nsServiceManagerUtils.h"
|
||||||
|
|
||||||
namespace mozilla::net {
|
namespace mozilla {
|
||||||
|
namespace net {
|
||||||
|
|
||||||
NS_IMPL_ISUPPORTS(CacheStorage, nsICacheStorage)
|
NS_IMPL_ISUPPORTS(CacheStorage, nsICacheStorage)
|
||||||
|
|
||||||
@@ -250,4 +251,5 @@ nsresult CacheStorage::ChooseApplicationCache(nsIURI* aURI,
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::net
|
} // namespace net
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -82,7 +82,8 @@ static_assert(
|
|||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace mozilla::net {
|
namespace mozilla {
|
||||||
|
namespace net {
|
||||||
LazyLogModule gHostResolverLog("nsHostResolver");
|
LazyLogModule gHostResolverLog("nsHostResolver");
|
||||||
#define LOG(args) \
|
#define LOG(args) \
|
||||||
MOZ_LOG(mozilla::net::gHostResolverLog, mozilla::LogLevel::Debug, args)
|
MOZ_LOG(mozilla::net::gHostResolverLog, mozilla::LogLevel::Debug, args)
|
||||||
@@ -90,7 +91,8 @@ LazyLogModule gHostResolverLog("nsHostResolver");
|
|||||||
MOZ_LOG(mozilla::net::gHostResolverLog, mozilla::LogLevel::Error, args)
|
MOZ_LOG(mozilla::net::gHostResolverLog, mozilla::LogLevel::Error, args)
|
||||||
#define LOG_ENABLED() \
|
#define LOG_ENABLED() \
|
||||||
MOZ_LOG_TEST(mozilla::net::gHostResolverLog, mozilla::LogLevel::Debug)
|
MOZ_LOG_TEST(mozilla::net::gHostResolverLog, mozilla::LogLevel::Debug)
|
||||||
} // namespace mozilla::net
|
} // namespace net
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,8 @@
|
|||||||
#include "nsIProxiedChannel.h"
|
#include "nsIProxiedChannel.h"
|
||||||
#include "nsIProxyInfo.h"
|
#include "nsIProxyInfo.h"
|
||||||
|
|
||||||
namespace mozilla::net {
|
namespace mozilla {
|
||||||
|
namespace net {
|
||||||
|
|
||||||
#define SUBRESOURCE_AUTH_DIALOG_DISALLOW_ALL 0
|
#define SUBRESOURCE_AUTH_DIALOG_DISALLOW_ALL 0
|
||||||
#define SUBRESOURCE_AUTH_DIALOG_DISALLOW_CROSS_ORIGIN 1
|
#define SUBRESOURCE_AUTH_DIALOG_DISALLOW_CROSS_ORIGIN 1
|
||||||
@@ -1663,4 +1664,5 @@ NS_IMPL_ISUPPORTS(nsHttpChannelAuthProvider, nsICancelable,
|
|||||||
nsIHttpChannelAuthProvider, nsIAuthPromptCallback,
|
nsIHttpChannelAuthProvider, nsIAuthPromptCallback,
|
||||||
nsIHttpAuthenticatorCallback)
|
nsIHttpAuthenticatorCallback)
|
||||||
|
|
||||||
} // namespace mozilla::net
|
} // namespace net
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -132,7 +132,8 @@
|
|||||||
|
|
||||||
using mozilla::dom::Promise;
|
using mozilla::dom::Promise;
|
||||||
|
|
||||||
namespace mozilla::net {
|
namespace mozilla {
|
||||||
|
namespace net {
|
||||||
|
|
||||||
LazyLogModule gHttpLog("nsHttp");
|
LazyLogModule gHttpLog("nsHttp");
|
||||||
|
|
||||||
@@ -293,7 +294,8 @@ nsHttpHandler::nsHttpHandler()
|
|||||||
mNextChannelId(1),
|
mNextChannelId(1),
|
||||||
mLastActiveTabLoadOptimizationLock(
|
mLastActiveTabLoadOptimizationLock(
|
||||||
"nsHttpConnectionMgr::LastActiveTabLoadOptimization"),
|
"nsHttpConnectionMgr::LastActiveTabLoadOptimization"),
|
||||||
mSpdyBlacklistLock("nsHttpHandler::SpdyBlacklist"),
|
mSpdyBlacklistLock(
|
||||||
|
"nsHttpHandler::SpdyBlacklist"),
|
||||||
mThroughCaptivePortal(false) {
|
mThroughCaptivePortal(false) {
|
||||||
LOG(("Creating nsHttpHandler [this=%p].\n", this));
|
LOG(("Creating nsHttpHandler [this=%p].\n", this));
|
||||||
|
|
||||||
@@ -2723,4 +2725,5 @@ nsresult nsHttpHandler::CancelTransaction(HttpTransactionShell* trans,
|
|||||||
return mConnMgr->CancelTransaction(trans, reason);
|
return mConnMgr->CancelTransaction(trans, reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::net
|
} // namespace net
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -35,7 +35,8 @@
|
|||||||
/* a shorter name that better explains what it does */
|
/* a shorter name that better explains what it does */
|
||||||
#define EINTR_RETRY(x) MOZ_TEMP_FAILURE_RETRY(x)
|
#define EINTR_RETRY(x) MOZ_TEMP_FAILURE_RETRY(x)
|
||||||
|
|
||||||
namespace mozilla::net {
|
namespace mozilla {
|
||||||
|
namespace net {
|
||||||
|
|
||||||
// period during which to absorb subsequent network change events, in
|
// period during which to absorb subsequent network change events, in
|
||||||
// milliseconds
|
// milliseconds
|
||||||
@@ -1798,4 +1799,5 @@ void NetlinkService::GetIsLinkUp(bool* aIsUp) {
|
|||||||
*aIsUp = mLinkUp;
|
*aIsUp = mLinkUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::net
|
} // namespace net
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -15,7 +15,8 @@
|
|||||||
#include "mozStorageBindingParamsArray.h"
|
#include "mozStorageBindingParamsArray.h"
|
||||||
#include "Variant.h"
|
#include "Variant.h"
|
||||||
|
|
||||||
namespace mozilla::storage {
|
namespace mozilla {
|
||||||
|
namespace storage {
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
//// Local Helper Objects
|
//// Local Helper Objects
|
||||||
@@ -431,4 +432,5 @@ BindingParams::BindAdoptedBlobByIndex(uint32_t aIndex, uint8_t* aValue,
|
|||||||
return BindByIndex(aIndex, value);
|
return BindByIndex(aIndex, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::storage
|
} // namespace storage
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -70,7 +70,8 @@ mozilla::LazyLogModule gStorageLog("mozStorage");
|
|||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::storage {
|
namespace mozilla {
|
||||||
|
namespace storage {
|
||||||
|
|
||||||
using mozilla::dom::quota::QuotaObject;
|
using mozilla::dom::quota::QuotaObject;
|
||||||
|
|
||||||
@@ -2278,4 +2279,5 @@ Connection::GetQuotaObjects(QuotaObject** aDatabaseQuotaObject,
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::storage
|
} // namespace storage
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
#include "nsZipArchive.h"
|
#include "nsZipArchive.h"
|
||||||
#include "xpc_make_class.h"
|
#include "xpc_make_class.h"
|
||||||
|
|
||||||
namespace mozilla::ctypes {
|
namespace mozilla {
|
||||||
|
namespace ctypes {
|
||||||
|
|
||||||
static char* UnicodeToNative(JSContext* cx, const char16_t* source,
|
static char* UnicodeToNative(JSContext* cx, const char16_t* source,
|
||||||
size_t slen) {
|
size_t slen) {
|
||||||
@@ -97,4 +98,5 @@ Module::Call(nsIXPConnectWrappedNative* wrapper, JSContext* cx, JSObject* obj,
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::ctypes
|
} // namespace ctypes
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
#include "nsNativeCharsetUtils.h"
|
#include "nsNativeCharsetUtils.h"
|
||||||
#include "xpc_make_class.h"
|
#include "xpc_make_class.h"
|
||||||
|
|
||||||
namespace mozilla::reflect {
|
namespace mozilla {
|
||||||
|
namespace reflect {
|
||||||
|
|
||||||
NS_IMPL_ISUPPORTS(Module, nsIXPCScriptable)
|
NS_IMPL_ISUPPORTS(Module, nsIXPCScriptable)
|
||||||
|
|
||||||
@@ -34,4 +35,5 @@ Module::Call(nsIXPConnectWrappedNative* wrapper, JSContext* cx, JSObject* obj,
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::reflect
|
} // namespace reflect
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -49,7 +49,8 @@ static void LogError(JSContext* aCx, const nsCString& aMessage) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace mozilla::telemetry {
|
namespace mozilla {
|
||||||
|
namespace telemetry {
|
||||||
|
|
||||||
class Timer final {
|
class Timer final {
|
||||||
public:
|
public:
|
||||||
@@ -427,4 +428,5 @@ void Stopwatch::SetTestModeEnabled(const dom::GlobalObject& aGlobal,
|
|||||||
Timers::Singleton().SuppressErrors() = aTesting;
|
Timers::Singleton().SuppressErrors() = aTesting;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::telemetry
|
} // namespace telemetry
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -1194,11 +1194,11 @@ static void internal_initFogotype(bool aUseTelemetry) {
|
|||||||
NS_WARNING("Couldn't find pingsender. Bailing on FOGotype");
|
NS_WARNING("Couldn't find pingsender. Bailing on FOGotype");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
# ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
pingsender->Append(NS_LITERAL_STRING("pingsender.exe"));
|
pingsender->Append(NS_LITERAL_STRING("pingsender.exe"));
|
||||||
# else
|
#else
|
||||||
pingsender->Append(NS_LITERAL_STRING("pingsender"));
|
pingsender->Append(NS_LITERAL_STRING("pingsender"));
|
||||||
# endif
|
#endif
|
||||||
nsAutoString pingsenderPath;
|
nsAutoString pingsenderPath;
|
||||||
rv = pingsender->GetPath(pingsenderPath);
|
rv = pingsender->GetPath(pingsenderPath);
|
||||||
if (NS_FAILED(rv)) {
|
if (NS_FAILED(rv)) {
|
||||||
@@ -1986,7 +1986,8 @@ void RecordShutdownEndTimeStamp() {
|
|||||||
// EXTERNALLY VISIBLE FUNCTIONS in mozilla::Telemetry::
|
// EXTERNALLY VISIBLE FUNCTIONS in mozilla::Telemetry::
|
||||||
// These are listed in Telemetry.h
|
// These are listed in Telemetry.h
|
||||||
|
|
||||||
namespace mozilla::Telemetry {
|
namespace mozilla {
|
||||||
|
namespace Telemetry {
|
||||||
|
|
||||||
// The external API for controlling recording state
|
// The external API for controlling recording state
|
||||||
void SetHistogramRecordingEnabled(HistogramID aID, bool aEnabled) {
|
void SetHistogramRecordingEnabled(HistogramID aID, bool aEnabled) {
|
||||||
@@ -2206,7 +2207,8 @@ void RecordOrigin(mozilla::Telemetry::OriginMetricID aId,
|
|||||||
|
|
||||||
void ShutdownTelemetry() { TelemetryImpl::ShutdownTelemetry(); }
|
void ShutdownTelemetry() { TelemetryImpl::ShutdownTelemetry(); }
|
||||||
|
|
||||||
} // namespace mozilla::Telemetry
|
} // namespace Telemetry
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
NS_IMPL_COMPONENT_FACTORY(nsITelemetry) {
|
NS_IMPL_COMPONENT_FACTORY(nsITelemetry) {
|
||||||
return TelemetryImpl::CreateTelemetryInstance().downcast<nsISupports>();
|
return TelemetryImpl::CreateTelemetryInstance().downcast<nsISupports>();
|
||||||
|
|||||||
@@ -18,7 +18,9 @@
|
|||||||
#include "TelemetryProcessData.h"
|
#include "TelemetryProcessData.h"
|
||||||
#include "Telemetry.h"
|
#include "Telemetry.h"
|
||||||
|
|
||||||
namespace mozilla::Telemetry::Common {
|
namespace mozilla {
|
||||||
|
namespace Telemetry {
|
||||||
|
namespace Common {
|
||||||
|
|
||||||
bool IsExpiredVersion(const char* aExpiration) {
|
bool IsExpiredVersion(const char* aExpiration) {
|
||||||
MOZ_ASSERT(aExpiration);
|
MOZ_ASSERT(aExpiration);
|
||||||
@@ -197,4 +199,6 @@ SupportedProduct GetCurrentProduct() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::Telemetry::Common
|
} // namespace Common
|
||||||
|
} // namespace Telemetry
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
#include "js/Array.h" // JS::NewArrayObject
|
#include "js/Array.h" // JS::NewArrayObject
|
||||||
#include "mozilla/HangAnnotations.h"
|
#include "mozilla/HangAnnotations.h"
|
||||||
|
|
||||||
namespace mozilla::Telemetry {
|
namespace mozilla {
|
||||||
|
namespace Telemetry {
|
||||||
|
|
||||||
// The maximum number of chrome hangs stacks that we're keeping.
|
// The maximum number of chrome hangs stacks that we're keeping.
|
||||||
const size_t kMaxChromeStacksKept = 50;
|
const size_t kMaxChromeStacksKept = 50;
|
||||||
@@ -224,4 +225,5 @@ JSObject* CreateJSStackObject(JSContext* cx, const CombinedStacks& stacks) {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::Telemetry
|
} // namespace Telemetry
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -57,7 +57,8 @@ bool IsKeyValid(const nsACString& aKey) {
|
|||||||
|
|
||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
|
||||||
namespace mozilla::Telemetry {
|
namespace mozilla {
|
||||||
|
namespace Telemetry {
|
||||||
|
|
||||||
void KeyedStackCapturer::Capture(const nsACString& aKey) {
|
void KeyedStackCapturer::Capture(const nsACString& aKey) {
|
||||||
MutexAutoLock captureStackMutex(mStackCapturerMutex);
|
MutexAutoLock captureStackMutex(mStackCapturerMutex);
|
||||||
@@ -161,4 +162,5 @@ size_t KeyedStackCapturer::SizeOfExcludingThis(
|
|||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::Telemetry
|
} // namespace Telemetry
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -26,7 +26,8 @@ static bool CompareByIndex(const StackFrame& a, const StackFrame& b) {
|
|||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
namespace mozilla::Telemetry {
|
namespace mozilla {
|
||||||
|
namespace Telemetry {
|
||||||
|
|
||||||
const size_t kMaxChromeStackDepth = 50;
|
const size_t kMaxChromeStackDepth = 50;
|
||||||
|
|
||||||
@@ -185,4 +186,5 @@ ProcessedStack BatchProcessedStackGenerator::GetStackAndModules(
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::Telemetry
|
} // namespace Telemetry
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
#include "core/TelemetryCommon.h"
|
#include "core/TelemetryCommon.h"
|
||||||
#include "js/Array.h" // JS::NewArrayObject
|
#include "js/Array.h" // JS::NewArrayObject
|
||||||
|
|
||||||
namespace mozilla::Telemetry {
|
namespace mozilla {
|
||||||
|
namespace Telemetry {
|
||||||
|
|
||||||
TelemetryIOInterposeObserver::TelemetryIOInterposeObserver(nsIFile* aXreDir)
|
TelemetryIOInterposeObserver::TelemetryIOInterposeObserver(nsIFile* aXreDir)
|
||||||
: mCurStage(STAGE_STARTUP) {
|
: mCurStage(STAGE_STARTUP) {
|
||||||
@@ -175,4 +176,5 @@ size_t TelemetryIOInterposeObserver::SizeOfExcludingThis(
|
|||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::Telemetry
|
} // namespace Telemetry
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -101,7 +101,8 @@ extern mozilla::LazyLogModule gUrlClassifierDbServiceLog;
|
|||||||
#define LOG_ENABLED() \
|
#define LOG_ENABLED() \
|
||||||
MOZ_LOG_TEST(gUrlClassifierDbServiceLog, mozilla::LogLevel::Debug)
|
MOZ_LOG_TEST(gUrlClassifierDbServiceLog, mozilla::LogLevel::Debug)
|
||||||
|
|
||||||
namespace mozilla::safebrowsing {
|
namespace mozilla {
|
||||||
|
namespace safebrowsing {
|
||||||
|
|
||||||
const uint32_t STORE_MAGIC = 0x1231af3b;
|
const uint32_t STORE_MAGIC = 0x1231af3b;
|
||||||
const uint32_t CURRENT_VERSION = 4;
|
const uint32_t CURRENT_VERSION = 4;
|
||||||
@@ -1177,4 +1178,5 @@ ChunkSet& HashStore::SubChunks() {
|
|||||||
return mSubChunks;
|
return mSubChunks;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::safebrowsing
|
} // namespace safebrowsing
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ static mozilla::LazyLogModule gUrlClassifierPrefixSetLog(
|
|||||||
#define LOG_ENABLED() \
|
#define LOG_ENABLED() \
|
||||||
MOZ_LOG_TEST(gUrlClassifierPrefixSetLog, mozilla::LogLevel::Debug)
|
MOZ_LOG_TEST(gUrlClassifierPrefixSetLog, mozilla::LogLevel::Debug)
|
||||||
|
|
||||||
namespace mozilla::safebrowsing {
|
namespace mozilla {
|
||||||
|
namespace safebrowsing {
|
||||||
|
|
||||||
#define PREFIX_SIZE_FIXED 4
|
#define PREFIX_SIZE_FIXED 4
|
||||||
|
|
||||||
@@ -491,4 +492,5 @@ size_t VariableLengthPrefixSet::SizeOfIncludingThis(
|
|||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla::safebrowsing
|
} // namespace safebrowsing
|
||||||
|
} // namespace mozilla
|
||||||
|
|||||||
@@ -3634,14 +3634,16 @@ bool IsWaylandDisabled() {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mozilla::startup {
|
namespace mozilla {
|
||||||
|
namespace startup {
|
||||||
Result<nsCOMPtr<nsIFile>, nsresult> GetIncompleteStartupFile(nsIFile* aProfLD) {
|
Result<nsCOMPtr<nsIFile>, nsresult> GetIncompleteStartupFile(nsIFile* aProfLD) {
|
||||||
nsCOMPtr<nsIFile> crashFile;
|
nsCOMPtr<nsIFile> crashFile;
|
||||||
MOZ_TRY(aProfLD->Clone(getter_AddRefs(crashFile)));
|
MOZ_TRY(aProfLD->Clone(getter_AddRefs(crashFile)));
|
||||||
MOZ_TRY(crashFile->Append(FILE_STARTUP_INCOMPLETE));
|
MOZ_TRY(crashFile->Append(FILE_STARTUP_INCOMPLETE));
|
||||||
return std::move(crashFile);
|
return std::move(crashFile);
|
||||||
}
|
}
|
||||||
} // namespace mozilla::startup
|
} // namespace startup
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
// Check whether the last startup attempt resulted in a crash within the
|
// Check whether the last startup attempt resulted in a crash within the
|
||||||
// last 6 hours.
|
// last 6 hours.
|
||||||
|
|||||||
@@ -248,9 +248,11 @@ const char* XRE_ChildProcessTypeToAnnotation(GeckoProcessType aProcessType) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace mozilla::startup {
|
namespace mozilla {
|
||||||
|
namespace startup {
|
||||||
GeckoProcessType sChildProcessType = GeckoProcessType_Default;
|
GeckoProcessType sChildProcessType = GeckoProcessType_Default;
|
||||||
} // namespace mozilla::startup
|
} // namespace startup
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
#if defined(MOZ_WIDGET_ANDROID)
|
#if defined(MOZ_WIDGET_ANDROID)
|
||||||
void XRE_SetAndroidChildFds(JNIEnv* env, const XRE_AndroidChildFds& fds) {
|
void XRE_SetAndroidChildFds(JNIEnv* env, const XRE_AndroidChildFds& fds) {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user