зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1519636 - Reformat recent changes to the Google coding style r=andi
Updated with clang-format version 11.0.1 (taskcluster-B6bdwSKDRF-luRQWXBuzpA) # ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D102084
This commit is contained in:
Родитель
bdb0945c63
Коммит
912aeb9ab5
|
@ -4035,7 +4035,7 @@ void ClientWebGLContext::TexImage(uint8_t funcDims, GLenum imageTarget,
|
|||
EnqueueError(LOCAL_GL_INVALID_OPERATION,
|
||||
"Non-DOM-Element uploads with alpha-premult"
|
||||
" or y-flip do not support subrect selection.");
|
||||
scopedArr.Reset(); // (For the hazard analysis) Done with the data.
|
||||
scopedArr.Reset(); // (For the hazard analysis) Done with the data.
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -4090,7 +4090,7 @@ void ClientWebGLContext::TexImage(uint8_t funcDims, GLenum imageTarget,
|
|||
|
||||
Run<RPROC(TexImage)>(static_cast<uint32_t>(level), respecFormat,
|
||||
CastUvec3(offset), pi, std::move(*desc));
|
||||
scopedArr.Reset(); // (For the hazard analysis) Done with the data.
|
||||
scopedArr.Reset(); // (For the hazard analysis) Done with the data.
|
||||
}
|
||||
|
||||
void ClientWebGLContext::CompressedTexImage(bool sub, uint8_t funcDims,
|
||||
|
|
|
@ -895,8 +895,8 @@ already_AddRefed<ImageBitmap> ImageBitmap::CreateInternal(
|
|||
array.Reset();
|
||||
|
||||
if (NS_IsMainThread()) {
|
||||
data = CreateImageFromRawData(imageSize, imageStride, FORMAT,
|
||||
fixedData, dataLength, aCropRect);
|
||||
data = CreateImageFromRawData(imageSize, imageStride, FORMAT, fixedData,
|
||||
dataLength, aCropRect);
|
||||
} else {
|
||||
RefPtr<CreateImageFromRawDataInMainThreadSyncTask> task =
|
||||
new CreateImageFromRawDataInMainThreadSyncTask(
|
||||
|
|
|
@ -265,10 +265,9 @@ void CubebDeviceEnumerator::EnumerateAudioDevices(
|
|||
// Bug 1660391: we can't use fluent here yet to get localized strings, so
|
||||
// those are hard-coded en_US strings for now.
|
||||
RefPtr<AudioDeviceInfo> info = new AudioDeviceInfo(
|
||||
nullptr, name, u""_ns, u""_ns,
|
||||
type, CUBEB_DEVICE_STATE_ENABLED, CUBEB_DEVICE_PREF_ALL,
|
||||
CUBEB_DEVICE_FMT_ALL, CUBEB_DEVICE_FMT_S16NE, channels, 44100, 44100,
|
||||
44100, 441, 128);
|
||||
nullptr, name, u""_ns, u""_ns, type, CUBEB_DEVICE_STATE_ENABLED,
|
||||
CUBEB_DEVICE_PREF_ALL, CUBEB_DEVICE_FMT_ALL, CUBEB_DEVICE_FMT_S16NE,
|
||||
channels, 44100, 44100, 44100, 441, 128);
|
||||
devices.AppendElement(info);
|
||||
}
|
||||
#else
|
||||
|
|
|
@ -680,10 +680,10 @@ const DrawBlitProg* GLBlitHelper::CreateDrawBlitProg(
|
|||
// -----------------------------------------------------------------------------
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
static RefPtr<MacIOSurface> LookupSurface(const layers::SurfaceDescriptorMacIOSurface& sd) {
|
||||
return MacIOSurface::LookupSurface(
|
||||
sd.surfaceId(), sd.scaleFactor(),
|
||||
!sd.isOpaque(), sd.yUVColorSpace());
|
||||
static RefPtr<MacIOSurface> LookupSurface(
|
||||
const layers::SurfaceDescriptorMacIOSurface& sd) {
|
||||
return MacIOSurface::LookupSurface(sd.surfaceId(), sd.scaleFactor(),
|
||||
!sd.isOpaque(), sd.yUVColorSpace());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -271,10 +271,10 @@ void js::CheckTracedThing(JSTracer* trc, const T& thing) {
|
|||
}
|
||||
|
||||
namespace js {
|
||||
#define IMPL_CHECK_TRACED_THING(_, type, _1, _2) \
|
||||
template void CheckTracedThing<type>(JSTracer*, type*);
|
||||
# define IMPL_CHECK_TRACED_THING(_, type, _1, _2) \
|
||||
template void CheckTracedThing<type>(JSTracer*, type*);
|
||||
JS_FOR_EACH_TRACEKIND(IMPL_CHECK_TRACED_THING);
|
||||
#undef IMPL_CHECK_TRACED_THING
|
||||
# undef IMPL_CHECK_TRACED_THING
|
||||
} // namespace js
|
||||
|
||||
#endif
|
||||
|
|
|
@ -876,9 +876,8 @@ void js::Nursery::printCollectionProfile(JS::GCReason reason,
|
|||
TimeDuration ts = collectionStartTime() - stats().creationTime();
|
||||
|
||||
fprintf(stderr, "MinorGC: %12p %10.6f %-20.20s %4.1f%% %5zu %5zu %6" PRIu32,
|
||||
runtime(),
|
||||
ts.ToSeconds(), JS::ExplainGCReason(reason), promotionRate * 100,
|
||||
previousGC.nurseryCapacity / 1024,
|
||||
runtime(), ts.ToSeconds(), JS::ExplainGCReason(reason),
|
||||
promotionRate * 100, previousGC.nurseryCapacity / 1024,
|
||||
capacity() / 1024,
|
||||
stats().getStat(gcstats::STAT_STRINGS_DEDUPLICATED));
|
||||
|
||||
|
@ -888,7 +887,8 @@ void js::Nursery::printCollectionProfile(JS::GCReason reason,
|
|||
// static
|
||||
void js::Nursery::printProfileHeader() {
|
||||
fprintf(stderr,
|
||||
"MinorGC: Runtime Timestamp Reason PRate OldSz NewSz Dedup");
|
||||
"MinorGC: Runtime Timestamp Reason PRate OldSz "
|
||||
"NewSz Dedup");
|
||||
#define PRINT_HEADER(name, text) fprintf(stderr, " %6s", text);
|
||||
FOR_EACH_NURSERY_PROFILE_TIME(PRINT_HEADER)
|
||||
#undef PRINT_HEADER
|
||||
|
@ -906,7 +906,8 @@ void js::Nursery::printProfileDurations(const ProfileDurations& times) {
|
|||
void js::Nursery::printTotalProfileTimes() {
|
||||
if (enableProfiling_) {
|
||||
fprintf(stderr,
|
||||
"MinorGC TOTALS: %7" PRIu64 " collections: %16" PRIu64,
|
||||
"MinorGC TOTALS: %7" PRIu64
|
||||
" collections: %16" PRIu64,
|
||||
gc->stringStats.deduplicatedStrings, gc->minorGCCount());
|
||||
printProfileDurations(totalDurations_);
|
||||
}
|
||||
|
|
|
@ -1078,7 +1078,6 @@ void LIRGenerator::visitSignExtendInt64(MSignExtendInt64* ins) {
|
|||
ins);
|
||||
}
|
||||
|
||||
|
||||
void LIRGenerator::visitWasmBitselectSimd128(MWasmBitselectSimd128* ins) {
|
||||
MOZ_CRASH("bitselect NYI");
|
||||
}
|
||||
|
|
|
@ -832,7 +832,6 @@ void LIRGenerator::visitSignExtendInt64(MSignExtendInt64* ins) {
|
|||
ins);
|
||||
}
|
||||
|
||||
|
||||
void LIRGenerator::visitWasmBitselectSimd128(MWasmBitselectSimd128* ins) {
|
||||
MOZ_CRASH("bitselect NYI");
|
||||
}
|
||||
|
|
|
@ -1031,4 +1031,4 @@ void LIRGeneratorShared::ReportShuffleSpecialization(const Shuffle& s) {
|
|||
}
|
||||
# endif // DEBUG
|
||||
|
||||
#endif // ENABLE_WASM_SIMD
|
||||
#endif // ENABLE_WASM_SIMD
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include "mozilla/Utf8.h" // mozilla::Utf8Unit
|
||||
|
||||
#include "gc/GCEnum.h" // js::gc::ZealMode
|
||||
#include "gc/GCEnum.h" // js::gc::ZealMode
|
||||
#include "js/CompilationAndEvaluation.h" // JS::Evaluate
|
||||
#include "js/SourceText.h" // JS::Source{Ownership,Text}
|
||||
#include "jsapi-tests/tests.h"
|
||||
|
|
|
@ -177,8 +177,7 @@ JS_FRIEND_API void* JS_GetArrayBufferViewData(JSObject* obj,
|
|||
|
||||
JS_FRIEND_API uint8_t* JS_GetArrayBufferViewFixedData(JSObject* obj,
|
||||
uint8_t* buffer,
|
||||
size_t bufSize)
|
||||
{
|
||||
size_t bufSize) {
|
||||
ArrayBufferViewObject* view = obj->maybeUnwrapAs<ArrayBufferViewObject>();
|
||||
if (!view) {
|
||||
return nullptr;
|
||||
|
@ -196,7 +195,7 @@ JS_FRIEND_API uint8_t* JS_GetArrayBufferViewFixedData(JSObject* obj,
|
|||
if (ta->hasInlineElements()) {
|
||||
size_t bytes = ta->byteLength().get();
|
||||
if (bytes > bufSize) {
|
||||
return nullptr; // Does not fit.
|
||||
return nullptr; // Does not fit.
|
||||
}
|
||||
memcpy(buffer, view->dataPointerUnshared(), bytes);
|
||||
return buffer;
|
||||
|
|
|
@ -2279,7 +2279,8 @@ void ReflowInput::InitConstraints(
|
|||
|
||||
const bool isBlockLevel =
|
||||
(mStyleDisplay->DisplayOutside() == StyleDisplayOutside::Block ||
|
||||
mStyleDisplay->DisplayOutside() == StyleDisplayOutside::TableCaption ||
|
||||
mStyleDisplay->DisplayOutside() ==
|
||||
StyleDisplayOutside::TableCaption ||
|
||||
mFrame->IsTableFrame()) &&
|
||||
// XXX abs.pos. continuations treated like blocks, see comment in
|
||||
// the else-if condition above.
|
||||
|
|
|
@ -4467,11 +4467,10 @@ void nsFlexContainerFrame::Reflow(nsPresContext* aPresContext,
|
|||
// Check if we may need a next-in-flow. If so, we'll need to skip block-end
|
||||
// border and padding.
|
||||
const LogicalSize availableSizeForItems =
|
||||
ComputeAvailableSizeForItems(aReflowInput, borderPadding);
|
||||
ComputeAvailableSizeForItems(aReflowInput, borderPadding);
|
||||
mayNeedNextInFlow = effectiveContentBSize > availableSizeForItems.BSize(wm);
|
||||
if (mayNeedNextInFlow &&
|
||||
aReflowInput.mStyleBorder->mBoxDecorationBreak ==
|
||||
StyleBoxDecorationBreak::Slice) {
|
||||
if (mayNeedNextInFlow && aReflowInput.mStyleBorder->mBoxDecorationBreak ==
|
||||
StyleBoxDecorationBreak::Slice) {
|
||||
borderPadding.BEnd(wm) = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1655,8 +1655,7 @@ void GfxInfoBase::DescribeFeatures(JSContext* aCx, JS::Handle<JSObject*> aObj) {
|
|||
gfxConfig::GetFeature(gfx::Feature::OPENGL_COMPOSITING);
|
||||
InitFeatureObject(aCx, aObj, "openglCompositing", openglCompositing, &obj);
|
||||
|
||||
gfx::FeatureState& omtp =
|
||||
gfxConfig::GetFeature(gfx::Feature::OMTP);
|
||||
gfx::FeatureState& omtp = gfxConfig::GetFeature(gfx::Feature::OMTP);
|
||||
InitFeatureObject(aCx, aObj, "omtp", omtp, &obj);
|
||||
|
||||
// Only include AL if the platform attempted to use it.
|
||||
|
|
Загрузка…
Ссылка в новой задаче