chromium/third_party/mediapipe/src/mediapipe/gpu/gl_texture_view.cc

#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