Commit e2dcc6bf authored by ashokm@nvidia.com's avatar ashokm@nvidia.com

gles2: set the profile info in config

Set the porfile info when creating a decoder.

Test= gles2 plugin

Review URL: http://codereview.chromium.org/7749004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98559 0039d316-1c4b-4281-b951-d872f2087c98
parent d6fdf682
...@@ -235,12 +235,16 @@ void GLES2DemoInstance::DidChangeView( ...@@ -235,12 +235,16 @@ void GLES2DemoInstance::DidChangeView(
} }
void GLES2DemoInstance::InitializeDecoders() { void GLES2DemoInstance::InitializeDecoders() {
PP_VideoConfigElement configs = PP_VIDEOATTR_DICTIONARY_TERMINATOR; PP_VideoConfigElement configs[] = {
PP_VIDEOATTR_BITSTREAMFORMATKEY_H264_PROFILE,
PP_H264PROFILE_BASELINE,
PP_VIDEOATTR_DICTIONARY_TERMINATOR,
};
assert(video_decoders_.empty()); assert(video_decoders_.empty());
for (int i = 0; i < kNumDecoders; ++i) { for (int i = 0; i < kNumDecoders; ++i) {
DecoderClient* client = new DecoderClient( DecoderClient* client = new DecoderClient(
this, new pp::VideoDecoder_Dev(*this, *context_, &configs)); this, new pp::VideoDecoder_Dev(*this, *context_, configs));
assert(!client->decoder()->is_null()); assert(!client->decoder()->is_null());
assert(video_decoders_.insert(std::make_pair( assert(video_decoders_.insert(std::make_pair(
client->decoder()->pp_resource(), client)).second); client->decoder()->pp_resource(), client)).second);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment