#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "remoting/client/empty_cursor_filter.h"
#include <stdint.h>
#include <algorithm>
#include "build/build_config.h"
#include "remoting/proto/control.pb.h"
namespace remoting {
protocol::CursorShapeInfo EmptyCursorShape() { … }
bool IsCursorShapeEmpty(const protocol::CursorShapeInfo& cursor_shape) { … }
EmptyCursorFilter::EmptyCursorFilter(protocol::CursorShapeStub* cursor_stub)
: … { … }
EmptyCursorFilter::~EmptyCursorFilter() = default;
namespace {
#if defined(ARCH_CPU_LITTLE_ENDIAN)
const uint32_t kPixelAlphaMask = …;
#else
const uint32_t kPixelAlphaMask = 0x000000ff;
#endif
bool IsVisiblePixel(uint32_t pixel) { … }
bool IsVisibleRow(const uint32_t* begin, const uint32_t* end) { … }
}
void EmptyCursorFilter::SetCursorShape(
const protocol::CursorShapeInfo& cursor_shape) { … }
}