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

Unified Diff: ppapi/shared_impl/video_decoder_impl.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: Replaced struct with explicit profile parameter. 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/shared_impl/video_decoder_impl.cc
diff --git a/ppapi/shared_impl/video_decoder_impl.cc b/ppapi/shared_impl/video_decoder_impl.cc
index 00d971b29f0919cdecbfcef15e18f252baf796c2..71921f925b0ad31b730e491aa4f53bfe7b7bc598 100644
--- a/ppapi/shared_impl/video_decoder_impl.cc
+++ b/ppapi/shared_impl/video_decoder_impl.cc
@@ -89,19 +89,4 @@ void VideoDecoderImpl::FlushCommandBuffer() {
gles2_impl_->Flush();
}
-bool VideoDecoderImpl::CopyConfigsToVector(
- const PP_VideoConfigElement* configs_to_copy,
- std::vector<PP_VideoConfigElement>* out_configs) {
- // TODO(fischman/vrk): This is still broken. We need to get rid of the silly
- // PP_VideoConfigElement vector in favor of a struct (see TODO in
- // ppb_video_decoder_dev.h).
- const PP_VideoConfigElement* current = configs_to_copy;
- while (current && *current != PP_VIDEOATTR_DICTIONARY_TERMINATOR) {
- out_configs->push_back(*current);
- out_configs->push_back(*(current + 1));
- current += 2;
- }
- return true;
-}
-
} // namespace ppapi

Powered by Google App Engine
This is Rietveld 408576698