Index: content/common/gpu/media/dxva_video_decode_accelerator.h |
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator.h b/content/common/gpu/media/dxva_video_decode_accelerator.h |
index 7b92277962f78a26fc8ba13ece55536d3eb0c8a4..7bff907ece3e3eae2cd516b2ab7036ba9537911b 100644 |
--- a/content/common/gpu/media/dxva_video_decode_accelerator.h |
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.h |
@@ -14,6 +14,7 @@ |
#include "base/compiler_specific.h" |
#include "base/memory/linked_ptr.h" |
+#include "base/memory/weak_ptr.h" |
#include "base/threading/non_thread_safe.h" |
#include "base/win/scoped_comptr.h" |
#include "content/common/content_export.h" |
@@ -113,9 +114,6 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator |
// been processed. |
void NotifyInputBufferRead(int input_buffer_id); |
- // Notifies the client that initialize was completed. |
- void NotifyInitializeDone(); |
- |
// Notifies the client that the decoder was flushed. |
void NotifyFlushDone(); |
@@ -206,6 +204,9 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator |
// Callback to set the correct gl context. |
base::Callback<bool(void)> make_context_current_; |
+ |
+ // WeakPtrFactory for posting tasks back to |this|. |
+ base::WeakPtrFactory<DXVAVideoDecodeAccelerator> weak_this_factory_; |
}; |
} // namespace content |