Project import generated by Copybara.
GitOrigin-RevId: 73d686c40057684f8bfaca285368bf1813f9fc26
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user