Hash :
67d8d8c8
Author :
Date :
2024-07-29T13:44:37
WebGL: Reject shaders with infinite loops Bug: chromium:350528343 Change-Id: I1b2fc152cf285b0e69c4c294351c1cf2389cc234 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/5746714 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org> Reviewed-by: Kenneth Russell <kbr@chromium.org> Auto-Submit: Shahbaz Youssefi <syoussefi@chromium.org>
//
// Copyright 2024 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// PruneInfiniteLoops.h: Attempts to remove infinite loops, used with WebGL contexts.
#ifndef COMPILER_TRANSLATOR_TREEOPS_PRUNEINFINITELOOPS_H_
#define COMPILER_TRANSLATOR_TREEOPS_PRUNEINFINITELOOPS_H_
#include "common/angleutils.h"
namespace sh
{
class TCompiler;
class TIntermBlock;
class TSymbolTable;
[[nodiscard]] bool PruneInfiniteLoops(TCompiler *compiler,
TIntermBlock *root,
TSymbolTable *symbolTable,
bool *anyLoopsPruned);
} // namespace sh
#endif // COMPILER_TRANSLATOR_TREEOPS_PRUNEINFINITELOOPS_H_