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

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

Issue 7779001: Replace the use of an int32* with a proper struct for decoder configuration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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
Index: ppapi/examples/gles2/gles2.cc
diff --git a/ppapi/examples/gles2/gles2.cc b/ppapi/examples/gles2/gles2.cc
index f661d0a8fa3c70891c9c039c4b68d9a7e92d5252..89c1be0065824938e99396d9caee87c88147fda1 100644
--- a/ppapi/examples/gles2/gles2.cc
+++ b/ppapi/examples/gles2/gles2.cc
@@ -235,16 +235,14 @@ void GLES2DemoInstance::DidChangeView(
}
void GLES2DemoInstance::InitializeDecoders() {
- PP_VideoConfigElement configs[] = {
- PP_VIDEOATTR_BITSTREAMFORMATKEY_H264_PROFILE,
- PP_H264PROFILE_BASELINE,
- PP_VIDEOATTR_DICTIONARY_TERMINATOR,
- };
+ PP_VideoDecoderConfig_Dev config;
+ config.format = PP_VideoDecoderConfig_Dev::H264;
+ config.h264_profile = PP_VideoDecoderConfig_Dev::H264PROFILE_BASELINE;
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_, config));
assert(!client->decoder()->is_null());
assert(video_decoders_.insert(std::make_pair(
client->decoder()->pp_resource(), client)).second);

Powered by Google App Engine
This is Rietveld 408576698