Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1912)

Unified Diff: content/common/gpu/media/exynos_video_decode_accelerator.cc

Issue 16356014: Fix ChromeOS (arm) use of WeakPtr<T>'s operator T* conversion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/gpu/media/omx_video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/exynos_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/exynos_video_decode_accelerator.cc b/content/common/gpu/media/exynos_video_decode_accelerator.cc
index 74e71abb34936b46c2a998ed1b4b8fe40544d8e4..89fa518f02504b0dbfac7ea0cd8bdf2ad869eedf 100644
--- a/content/common/gpu/media/exynos_video_decode_accelerator.cc
+++ b/content/common/gpu/media/exynos_video_decode_accelerator.cc
@@ -1891,7 +1891,7 @@ void ExynosVideoDecodeAccelerator::NotifyError(Error error) {
return;
}
- if (client_) {
+ if (client_.get()) {
client_->NotifyError(error);
client_ptr_factory_.InvalidateWeakPtrs();
}
@@ -2222,7 +2222,7 @@ void ExynosVideoDecodeAccelerator::DestroyGscOutputBuffers() {
eglDestroyImageKHR(egl_display_, output_record.egl_image);
if (output_record.egl_sync != EGL_NO_SYNC_KHR)
eglDestroySyncKHR(egl_display_, output_record.egl_sync);
- if (client_)
+ if (client_.get())
client_->DismissPictureBuffer(output_record.picture_id);
++i;
} while (i < gsc_output_buffer_map_.size());
« no previous file with comments | « no previous file | content/common/gpu/media/omx_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698