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

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. 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 b6e06880db6c5f4d1218d0c27b17e84da0728c4b..9f0e948cd70d544bb37eb33170791ee2cd31479f 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,
Pawel Osciak 2014/10/20 08:03:29 Bad indent.
sandersd (OOO until July 31) 2014/10/20 17:55:50 Done.
+ const base::Callback<bool(void)>& make_context_current);
virtual ~VTVideoDecodeAccelerator();
// VideoDecodeAccelerator implementation.
@@ -123,6 +125,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