Home | History | Annotate | Download | only in desktop_capture

Lines Matching refs:frame

54 // DesktopFrame wrapper that draws mouse on a frame and restores original
55 // content before releasing the underlying frame.
58 // Takes ownership of |frame|.
59 DesktopFrameWithCursor(DesktopFrame* frame,
73 DesktopFrameWithCursor::DesktopFrameWithCursor(DesktopFrame* frame,
76 : DesktopFrame(frame->size(), frame->stride(),
77 frame->data(), frame->shared_memory()),
78 original_frame_(frame) {
79 set_dpi(frame->dpi());
80 set_capture_time_ms(frame->capture_time_ms());
81 mutable_updated_region()->Swap(frame->mutable_updated_region());
112 // Restore original content of the frame.
153 void DesktopAndCursorComposer::OnCaptureCompleted(DesktopFrame* frame) {
154 if (frame && cursor_.get() && cursor_state_ == MouseCursorMonitor::INSIDE) {
156 new DesktopFrameWithCursor(frame, *cursor_, cursor_position_);
157 frame = frame_with_cursor;
160 callback_->OnCaptureCompleted(frame);