mediapipe/mediapipe/gpu/gl_texture_view.cc

24 lines
405 B
C++
Raw Normal View History

#include "mediapipe/gpu/gl_texture_view.h"
namespace mediapipe {
void GlTextureView::Release() {
DoneWriting();
if (detach_) detach_(*this);
detach_ = nullptr;
gl_context_ = nullptr;
plane_ = 0;
name_ = 0;
width_ = 0;
height_ = 0;
}
void GlTextureView::DoneWriting() const {
if (done_writing_) {
done_writing_(*this);
done_writing_ = nullptr;
}
}
} // namespace mediapipe