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

Unified Diff: content/common/gpu/media/omx_video_decode_accelerator.cc

Issue 10827074: Replace the explicit *VDA::Set{CGL,Egl,Glx}Context() methods with ctor params. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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/omx_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/omx_video_decode_accelerator.cc b/content/common/gpu/media/omx_video_decode_accelerator.cc
index 1934a43381299eb0837f807a582da560c321e249..57fe2fddaa449c5d3bbd2365a24fdb2537a11a5e 100644
--- a/content/common/gpu/media/omx_video_decode_accelerator.cc
+++ b/content/common/gpu/media/omx_video_decode_accelerator.cc
@@ -98,6 +98,7 @@ static OMX_U32 MapH264ProfileToOMXAVCProfile(uint32 profile) {
error, ret_val)
OmxVideoDecodeAccelerator::OmxVideoDecodeAccelerator(
+ EGLDisplay egl_display, EGLContext egl_context,
media::VideoDecodeAccelerator::Client* client)
: message_loop_(MessageLoop::current()),
component_handle_(NULL),
@@ -111,6 +112,8 @@ OmxVideoDecodeAccelerator::OmxVideoDecodeAccelerator(
input_buffers_at_component_(0),
output_port_(0),
output_buffers_at_component_(0),
+ egl_display_(egl_display),
+ egl_context_(egl_context),
client_(client),
codec_(UNKNOWN),
h264_profile_(OMX_VIDEO_AVCProfileMax),
@@ -129,13 +132,6 @@ OmxVideoDecodeAccelerator::~OmxVideoDecodeAccelerator() {
DCHECK(pictures_.empty());
}
-void OmxVideoDecodeAccelerator::SetEglState(
- EGLDisplay egl_display, EGLContext egl_context) {
- DCHECK_EQ(message_loop_, MessageLoop::current());
- egl_display_ = egl_display;
- egl_context_ = egl_context;
-}
-
// This is to initialize the OMX data structures to default values.
template <typename T>
static void InitParam(const OmxVideoDecodeAccelerator& dec, T* param) {
« no previous file with comments | « content/common/gpu/media/omx_video_decode_accelerator.h ('k') | content/common/gpu/media/vaapi_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698