icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -198,7 +198,18 @@ ClientWebGLContext::ClientWebGLContext(const bool webgl2)
|
|||
: mIsWebGL2(webgl2),
|
||||
mExtLoseContext(new ClientWebGLExtensionLoseContext(*this)) {}
|
||||
|
||||
ClientWebGLContext::~ClientWebGLContext() { RemovePostRefreshObserver(); }
|
||||
static inline void SafeReleaseNotLostData(std::shared_ptr<webgl::NotLostData>& notLost) {
|
||||
if (notLost) {
|
||||
const auto keepAlive = std::move(notLost);
|
||||
keepAlive->extensions = {};
|
||||
keepAlive->state = {};
|
||||
}
|
||||
}
|
||||
|
||||
ClientWebGLContext::~ClientWebGLContext() {
|
||||
RemovePostRefreshObserver();
|
||||
SafeReleaseNotLostData(mNotLost);
|
||||
}
|
||||
|
||||
void ClientWebGLContext::JsWarning(const std::string& utf8) const {
|
||||
nsIGlobalObject* global = nullptr;
|
||||
|
|
@ -4511,6 +4522,14 @@ void ClientWebGLContext::TexImage(uint8_t funcDims, GLenum imageTarget,
|
|||
std::string{"gpuProcessTextureId works only in GPU process."});
|
||||
}
|
||||
} break;
|
||||
case layers::SurfaceDescriptor::TSurfaceDescriptorDXGIYCbCr: {
|
||||
MOZ_ASSERT(desc->image);
|
||||
keepAliveImage = desc->image;
|
||||
} break;
|
||||
case layers::SurfaceDescriptor::TSurfaceDescriptorMacIOSurface: {
|
||||
MOZ_ASSERT(desc->image);
|
||||
keepAliveImage = desc->image;
|
||||
} break;
|
||||
case layers::SurfaceDescriptor::TSurfaceDescriptorGPUVideo: {
|
||||
const auto& inProcess = mNotLost->inProcess;
|
||||
MOZ_ASSERT(desc->image);
|
||||
|
|
@ -7004,11 +7023,7 @@ void ImplCycleCollectionTraverse(
|
|||
}
|
||||
|
||||
void ImplCycleCollectionUnlink(std::shared_ptr<webgl::NotLostData>& field) {
|
||||
if (!field) return;
|
||||
const auto keepAlive = field;
|
||||
keepAlive->extensions = {};
|
||||
keepAlive->state = {};
|
||||
field = nullptr;
|
||||
SafeReleaseNotLostData(field);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue