Some cleanups (#8558)

* Clean up includes

* Fix the logic
This commit is contained in:
Doris Wu
2025-03-24 09:19:37 -07:00
committed by Powei Feng
parent 26171e7f76
commit 57f6214637
5 changed files with 23 additions and 6 deletions
+8
View File
@@ -17,14 +17,22 @@
#include "ApiHandler.h"
#include <__chrono/duration.h>
#include <fgviewer/DebugServer.h>
#include <fgviewer/JsonWriter.h>
#include <utils/FixedCapacityVector.h>
#include <utils/Log.h>
#include <utils/ostream.h>
#include <CivetServer.h>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <mutex>
#include <string>
namespace filament::fgviewer {
using namespace std::chrono_literals;
+3 -3
View File
@@ -21,15 +21,15 @@
#include <CivetServer.h>
#include <utils/FixedCapacityVector.h>
#include <utils/Hash.h>
#include <utils/Log.h>
#include <utils/Mutex.h>
#include <utils/ostream.h>
#include <mutex>
#include <string>
#include <string_view>
// If set to 0, this serves HTML from a resgen resource. Use 1 only during local development, which
// serves files directly from the source code tree.
#define SERVE_FROM_SOURCE_TREE 0
+5
View File
@@ -16,6 +16,11 @@
#include <fgviewer/FrameGraphInfo.h>
#include <utils/CString.h>
#include <unordered_map>
#include <vector>
namespace filament::fgviewer {
FrameGraphInfo::FrameGraphInfo(utils::CString viewName):
+6 -2
View File
@@ -14,11 +14,15 @@
* limitations under the License.
*/
#include <fgviewer/JsonWriter.h>
#include <fgviewer/FrameGraphInfo.h>
#include <fgviewer/JsonWriter.h>
#include <iomanip>
#include <utils/CString.h>
#include <cstddef>
#include <ostream>
#include <sstream>
#include <vector>
namespace filament::fgviewer {
+1 -1
View File
@@ -448,7 +448,7 @@ class FrameGraphTable extends LitElement {
</span>`
: nothing}
${resource.name}
${hasSubresources && isExpanded ? nothing : html`(${subresourceIds.length})`}
${hasSubresources && !isExpanded ? html`(${subresourceIds.length})` : nothing}
</th>
${this._renderResourceUsage(allPasses, resourceIds, DEFAULT_COLOR)}
</tr>