#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "remoting/client/display/gl_cursor_feedback_texture.h"
#include <cmath>
#include "base/notreached.h"
#include "remoting/client/display/gl_render_layer.h"
namespace remoting {
namespace {
const int kColorRingsCount = …;
const int kFeedbackTexturePixelDiameter = …;
const int kFeedbackTexturePixelRadius = …;
const uint8_t kFeedbackRingColors[kColorRingsCount]
[GlRenderLayer::kBytesPerPixel] = …;
const float kFeedbackRadiusStops[kColorRingsCount] = …;
uint32_t GetColorByRadius(float radius) { … }
void FillFeedbackTexture(uint32_t* texture) { … }
}
const int GlCursorFeedbackTexture::kTextureWidth = …;
GlCursorFeedbackTexture* GlCursorFeedbackTexture::GetInstance() { … }
const std::vector<uint8_t>& GlCursorFeedbackTexture::GetTexture() const { … }
GlCursorFeedbackTexture::GlCursorFeedbackTexture() { … }
GlCursorFeedbackTexture::~GlCursorFeedbackTexture() = default;
}