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

Unified Diff: ppapi/examples/gles2/gles2.cc

Issue 7749004: gles2: set the profile info in config (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/gles2/gles2.cc
===================================================================
--- ppapi/examples/gles2/gles2.cc (revision 97907)
+++ ppapi/examples/gles2/gles2.cc (working copy)
@@ -235,12 +235,16 @@
}
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());
for (int i = 0; i < kNumDecoders; ++i) {
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(video_decoders_.insert(std::make_pair(
client->decoder()->pp_resource(), client)).second);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698