Home | History | Annotate | Download | only in base

Lines Matching refs:frame

20   // Returns a frame from the pool that matches the specified
21 // parameters or creates a new frame if no suitable frame exists in
22 // the pool. The pool is drained if no matching frame is found.
29 // Shuts down the frame pool and releases all frames in |frames_|.
40 // Called when the frame wrapper gets destroyed.
41 // |frame| is the actual frame that was wrapped and is placed
43 void FrameReleased(const scoped_refptr<VideoFrame>& frame);
67 scoped_refptr<VideoFrame> frame;
69 while (!frame.get() && !frames_.empty()) {
77 frame = pool_frame;
78 frame->set_timestamp(timestamp);
83 if (!frame.get()) {
84 frame = VideoFrame::CreateFrame(
89 frame, frame->visible_rect(), frame->natural_size(),
90 base::Bind(&VideoFramePool::PoolImpl::FrameReleased, this, frame));
100 const scoped_refptr<VideoFrame>& frame) {
105 frames_.push_back(frame);