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

Unified Diff: ppapi/shared_impl/ppb_video_decoder_shared.cc

Issue 24466004: PPAPI: Make GLES2 calls resilient to bad/dead resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 3 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 | « ppapi/shared_impl/ppb_opengles2_shared.cc ('k') | ppapi/shared_impl/proxy_lock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_video_decoder_shared.cc
diff --git a/ppapi/shared_impl/ppb_video_decoder_shared.cc b/ppapi/shared_impl/ppb_video_decoder_shared.cc
index 7d8d021b5b398156252ac8ac5e121aa58acf78f2..5232e6c3b30b2cd5c7cbeb8c1a1310464f26ba76 100644
--- a/ppapi/shared_impl/ppb_video_decoder_shared.cc
+++ b/ppapi/shared_impl/ppb_video_decoder_shared.cc
@@ -96,16 +96,8 @@ void PPB_VideoDecoder_Shared::RunBitstreamBufferCallback(
}
void PPB_VideoDecoder_Shared::FlushCommandBuffer() {
- if (gles2_impl_) {
- // To call Flush() we have to tell Graphics3D that we hold the proxy lock.
- thunk::EnterResource<thunk::PPB_Graphics3D_API, false> enter_g3d(
- graphics_context_, false);
- DCHECK(enter_g3d.succeeded());
- PPB_Graphics3D_Shared* graphics3d =
- static_cast<PPB_Graphics3D_Shared*>(enter_g3d.object());
- PPB_Graphics3D_Shared::ScopedNoLocking dont_lock(graphics3d);
+ if (gles2_impl_)
gles2_impl_->Flush();
- }
}
} // namespace ppapi
« no previous file with comments | « ppapi/shared_impl/ppb_opengles2_shared.cc ('k') | ppapi/shared_impl/proxy_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698