Skip to content

Commit

Permalink
Format the files
Browse files Browse the repository at this point in the history
Format the file
  • Loading branch information
show50726 committed Dec 9, 2024
1 parent 28a535d commit a195d26
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 3 additions & 2 deletions libs/fgviewer/include/fgviewer/DebugServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ using FrameGraphInfoKey = uint32_t;

struct FrameGraphPassInfo {
utils::CString pass_name;
// TODO: Add struct detail properties
};

struct FrameGraphInfo {
Expand Down Expand Up @@ -69,8 +70,8 @@ class DebugServer {
bool isReady() const { return mServer; }

private:
static FrameGraphInfoKey getKeybyString(const utils::CString& input,
uint32_t seed);
static FrameGraphInfoKey getKeybyString(const utils::CString &input,
uint32_t seed);

CivetServer* mServer;

Expand Down
2 changes: 0 additions & 2 deletions libs/fgviewer/src/ApiHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ auto const& kErrorHeader = DebugServer::kErrorHeader;

} // anonymous

using utils::FixedCapacityVector;

static auto const error = [](int line, std::string const& uri) {
utils::slog.e << "DebugServer: 404 at line " << line << ": " << uri << utils::io::endl;
return false;
Expand Down
10 changes: 5 additions & 5 deletions libs/fgviewer/src/DebugServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ DebugServer::~DebugServer() {
delete mServer;
}

FrameGraphInfoKey DebugServer::getKeybyString(const utils::CString& input,
uint32_t seed){
FrameGraphInfoKey DebugServer::getKeybyString(const utils::CString &input,
uint32_t seed) {
return utils::hash::murmurSlow(reinterpret_cast<uint8_t const*>(
input.c_str()), input.size(), 0);
}

void DebugServer::addView(const utils::CString& name, FrameGraphInfo info) {
void DebugServer::addView(const utils::CString &name, FrameGraphInfo info) {
std::unique_lock<utils::Mutex> lock(mViewsMutex);
const FrameGraphInfoKey key = getKeybyString(name, 0);
mViews.insert({key, info});
Expand All @@ -123,12 +123,12 @@ void DebugServer::removeView(const utils::CString& name) {
std::unique_lock<utils::Mutex> lock(mViewsMutex);
const FrameGraphInfoKey key = getKeybyString(name, 0);
mViews.erase(key);
}
}

void DebugServer::updateView(const utils::CString& name, FrameGraphInfo info) {
std::unique_lock<utils::Mutex> lock(mViewsMutex);
const FrameGraphInfoKey key = getKeybyString(name, 0);
mViews[key] = info;
}
}

} // namespace filament::fgviewer

0 comments on commit a195d26

Please sign in to comment.