Project import generated by Copybara.

GitOrigin-RevId: 73d686c40057684f8bfaca285368bf1813f9fc26
This commit is contained in:
MediaPipe Team
2022-03-21 12:12:39 -07:00
committed by jqtang
parent e6c19885c6
commit cc6a2f7af6
266 changed files with 3658 additions and 1681 deletions
+8
View File
@@ -3,6 +3,7 @@
namespace mediapipe {
void GlTextureView::Release() {
DoneWriting();
if (detach_) detach_(*this);
detach_ = nullptr;
gl_context_ = nullptr;
@@ -13,4 +14,11 @@ void GlTextureView::Release() {
height_ = 0;
}
void GlTextureView::DoneWriting() const {
if (done_writing_) {
done_writing_(*this);
done_writing_ = nullptr;
}
}
} // namespace mediapipe