1c0a1d0aab
This only exists to support GlTexture's GetFrame API. It can be moved into GlTexture. PiperOrigin-RevId: 488812896
24 lines
405 B
C++
24 lines
405 B
C++
#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
|