#include "remoting/client/display/gl_desktop.h"
#include "base/check.h"
#include "base/memory/ptr_util.h"
#include "remoting/client/display/canvas.h"
#include "remoting/client/display/gl_math.h"
#include "remoting/client/display/gl_render_layer.h"
#include "remoting/client/display/gl_texture_ids.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_region.h"
namespace remoting {
namespace {
void UpdateDesktopRegion(const webrtc::DesktopFrame& frame,
const webrtc::DesktopRegion& region,
const webrtc::DesktopRect& texture_rect,
GlRenderLayer* layer) { … }
void SetFrameForTexture(const webrtc::DesktopFrame& frame,
GlRenderLayer* layer,
const webrtc::DesktopRect& rect) { … }
}
struct GlDesktop::GlDesktopTextureContainer { … };
GlDesktop::GlDesktop() { … }
GlDesktop::~GlDesktop() { … }
void GlDesktop::SetCanvas(base::WeakPtr<Canvas> canvas) { … }
void GlDesktop::SetVideoFrame(const webrtc::DesktopFrame& frame) { … }
bool GlDesktop::Draw() { … }
int GlDesktop::GetZIndex() { … }
void GlDesktop::ReallocateTextures(const webrtc::DesktopSize& size) { … }
base::WeakPtr<Drawable> GlDesktop::GetWeakPtr() { … }
}