KASM-6984 Updated copyright information and performed minor code cleanup to remove unused code and improve readability.

This commit is contained in:
El 2025-04-28 23:18:46 +05:00
parent 2237c97a5e
commit f037c3bae1
No known key found for this signature in database
GPG Key ID: EB3F4C9EA29CDE59
2 changed files with 6 additions and 16 deletions

View File

@ -242,6 +242,8 @@ void benchmark(const std::string &path, const std::string &results_file) {
totals[run] = total;
stats[run] = connection.getStats();
vlog.info("JPEG stats: %u ms", stats[run].jpeg_stats.ms);
vlog.info("WebP stats: %u ms", stats[run].webp_stats.ms);
vlog.info("RUN %d. Bytes sent %lu..", run, stats[run].bytes);
}

View File

@ -1,4 +1,6 @@
/* Copyright (C) 2025 Kasm Technologies Corp
/* Copyright 2015 Pierre Ossman <ossman@cendio.se> for Cendio AB
* Copyright (C) 2015 D. R. Commander. All Rights Reserved.
* Copyright (C) 2025 Kasm Technologies Corp
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -31,10 +33,6 @@
#include "SMsgWriter.h"
#include "ffmpeg.h"
namespace rdr {
class FileInStream;
}
static rfb::LogWriter vlog("Benchmarking");
namespace rfb {
@ -100,8 +98,6 @@ namespace rfb {
~MockSConnection() override = default;
void writeUpdate(const UpdateInfo &ui, const PixelBuffer *pb) {
//manager.pruneLosslessRefresh(Region(pb->getRect()));
cache.clear();
manager.clearEncodingTime();
@ -191,7 +187,6 @@ namespace rfb {
~MockCConnection() override = default;
struct stats_t {
EncodeManager::codecstats_t jpeg_stats;
EncodeManager::codecstats_t webp_stats;
@ -240,8 +235,6 @@ namespace rfb {
}
void framebufferUpdateStart() override {
CConnection::framebufferUpdateStart();
updates.clear();
}
@ -249,7 +242,6 @@ namespace rfb {
const PixelBuffer *pb = getFramebuffer();
UpdateInfo ui;
const Region clip(pb->getRect());
updates.add_changed(pb->getRect());
@ -259,10 +251,6 @@ namespace rfb {
}
void dataRect(const Rect &r, int encoding) override {
CConnection::dataRect(r, encoding);
if (encoding != encodingCopyRect) // FIXME
updates.add_changed(Region(r));
}
void setColourMapEntries(int, int, rdr::U16 *) override {