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

Unified Diff: content/renderer/pepper/pepper_video_decoder_host.h

Issue 2584023002: Fix PepperVideoDecoderHost to avoid crash when swithing to SW decoder. (Closed)
Patch Set: Created 4 years 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/renderer/pepper/pepper_video_decoder_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_video_decoder_host.h
diff --git a/content/renderer/pepper/pepper_video_decoder_host.h b/content/renderer/pepper/pepper_video_decoder_host.h
index a2b17b760d263c54d0d456a0ad310b4aa0371b4d..383e3e68ca6f04347baa44c89666324026d5bde0 100644
--- a/content/renderer/pepper/pepper_video_decoder_host.h
+++ b/content/renderer/pepper/pepper_video_decoder_host.h
@@ -125,6 +125,12 @@ class CONTENT_EXPORT PepperVideoDecoderHost
bool software_fallback_allowed_ = false;
bool software_fallback_used_ = false;
+ int pending_texture_requests_ = 0;
+
+ // Set after software decoder fallback to dismiss all outstanding texture
+ // requests.
+ int assign_textures_messages_to_dismiss_ = 0;
+
// A vector holding our shm buffers, in sync with a similar vector in the
// resource. We use a buffer's index in these vectors as its id on both sides
// of the proxy. Only add buffers or update them in place so as not to
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_video_decoder_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698