a9c0db4bcb
Accurate per client tracking of wire-id and avoidance of duplicates is vital for good delta application, and is done precisely by the ClientDeltaTracker class. The inaccurate, _oldWireId tracker imperfectly tracked wireids of the last tile per session, and used this integer for the boolean oldWireId used to determine whether to create a delta; in an un-necessarily complex way. Instead we more accurately use the TileCache to determine if we already have a key-frame, and if so use this to encourage Kit to generate a delta if possible. there seems to be a potential race though between the Kit's delta-cache size, and what keyframes we have in the TileCache requiring further investigation, but this is not a new issue. Change-Id: If6cec4c1da31f7b715336c60d1dd6f358e1ef6a4 Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
/*
|
|
* Copyright the Collabora Online contributors.
|
|
*
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
/*
|
|
* Stub missing symbols required for unit tests ...
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include "DocumentBroker.hpp"
|
|
|
|
#include "ClientSession.hpp"
|
|
|
|
void DocumentBroker::assertCorrectThread(const char*, int) const {}
|
|
|
|
void ClientSession::enqueueSendMessage(const std::shared_ptr<Message>& /*data*/) {};
|
|
|
|
ClientSession::~ClientSession() = default;
|
|
|
|
void ClientSession::onDisconnect() {}
|
|
|
|
bool ClientSession::hasQueuedMessages() const { return false; }
|
|
|
|
void ClientSession::writeQueuedMessages(std::size_t) {}
|
|
|
|
void ClientSession::dumpState(std::ostream& /*os*/) {}
|
|
|
|
void ClientSession::setReadOnly(bool) {}
|
|
|
|
bool ClientSession::_handleInput(const char* /*buffer*/, int /*length*/) { return false; }
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|