summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_video_capture_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/ppapi/ppb_video_capture_impl.cc')
-rw-r--r--webkit/plugins/ppapi/ppb_video_capture_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/plugins/ppapi/ppb_video_capture_impl.cc b/webkit/plugins/ppapi/ppb_video_capture_impl.cc
index c112fce..3663853 100644
--- a/webkit/plugins/ppapi/ppb_video_capture_impl.cc
+++ b/webkit/plugins/ppapi/ppb_video_capture_impl.cc
@@ -219,7 +219,7 @@ void PPB_VideoCapture_Impl::OnDeviceInfoReceived(
info.buffer = static_cast<PPB_Buffer_Impl*>(enter.object());
info.data = info.buffer->Map();
if (!info.data) {
- ResourceTracker::Get()->UnrefResource(resources[i]);
+ ResourceTracker::Get()->ReleaseResource(resources[i]);
break;
}
buffers_.push_back(info);
@@ -247,7 +247,7 @@ void PPB_VideoCapture_Impl::ReleaseBuffers() {
ResourceTracker *tracker = ResourceTracker::Get();
for (size_t i = 0; i < buffers_.size(); ++i) {
buffers_[i].buffer->Unmap();
- tracker->UnrefResource(buffers_[i].buffer->GetReferenceNoAddRef());
+ tracker->ReleaseResource(buffers_[i].buffer->pp_resource());
}
buffers_.clear();
}