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

Unified Diff: content/common/gpu/media/vt_video_decode_accelerator.h

Issue 645713002: Switch to using make_context_current in VTVideoDecodeAccelerator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vt_errror_handling
Patch Set: Rebase again? Created 6 years, 2 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
Index: content/common/gpu/media/vt_video_decode_accelerator.h
diff --git a/content/common/gpu/media/vt_video_decode_accelerator.h b/content/common/gpu/media/vt_video_decode_accelerator.h
index 3fbb0eb38006ef35dd2e4c5f260c23750faa1526..d3850d87489e6cc9de5cf74f301ac873eabe59de 100644
--- a/content/common/gpu/media/vt_video_decode_accelerator.h
+++ b/content/common/gpu/media/vt_video_decode_accelerator.h
@@ -33,7 +33,9 @@ class VTVideoDecodeAccelerator
: public media::VideoDecodeAccelerator,
public base::NonThreadSafe {
public:
- explicit VTVideoDecodeAccelerator(CGLContextObj cgl_context);
+ explicit VTVideoDecodeAccelerator(
+ CGLContextObj cgl_context,
+ const base::Callback<bool(void)>& make_context_current);
~VTVideoDecodeAccelerator() override;
// VideoDecodeAccelerator implementation.
@@ -121,6 +123,7 @@ class VTVideoDecodeAccelerator
// GPU thread state.
//
CGLContextObj cgl_context_;
+ base::Callback<bool(void)> make_context_current_;
media::VideoDecodeAccelerator::Client* client_;
bool has_error_; // client_->NotifyError() called.
gfx::Size texture_size_;
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.cc ('k') | content/common/gpu/media/vt_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698