Commit 5b6f40c8 authored by bbudge's avatar bbudge Committed by Commit bot

Pepper: Make C++ pp::VideoEncoder wrapper compilable on non-C++11 builds.

BUG=455409

Review URL: https://codereview.chromium.org/901733002

Cr-Commit-Position: refs/heads/master@{#314696}
parent fe3a8bd7
...@@ -36,7 +36,7 @@ VideoEncoder::VideoEncoder(const VideoEncoder& other) : Resource(other) { ...@@ -36,7 +36,7 @@ VideoEncoder::VideoEncoder(const VideoEncoder& other) : Resource(other) {
} }
int32_t VideoEncoder::GetSupportedProfiles(const CompletionCallbackWithOutput< int32_t VideoEncoder::GetSupportedProfiles(const CompletionCallbackWithOutput<
std::vector<PP_VideoProfileDescription>>& cc) { std::vector<PP_VideoProfileDescription> >& cc) {
if (has_interface<PPB_VideoEncoder_0_1>()) { if (has_interface<PPB_VideoEncoder_0_1>()) {
return get_interface<PPB_VideoEncoder_0_1>()->GetSupportedProfiles( return get_interface<PPB_VideoEncoder_0_1>()->GetSupportedProfiles(
pp_resource(), cc.output(), cc.pp_completion_callback()); pp_resource(), cc.output(), cc.pp_completion_callback());
......
...@@ -67,7 +67,7 @@ class VideoEncoder : public Resource { ...@@ -67,7 +67,7 @@ class VideoEncoder : public Resource {
/// @return If >= 0, the number of supported profiles returned, otherwise an /// @return If >= 0, the number of supported profiles returned, otherwise an
/// error code from <code>pp_errors.h</code>. /// error code from <code>pp_errors.h</code>.
int32_t GetSupportedProfiles(const CompletionCallbackWithOutput< int32_t GetSupportedProfiles(const CompletionCallbackWithOutput<
std::vector<PP_VideoProfileDescription>>& cc); std::vector<PP_VideoProfileDescription> >& cc);
/// Initializes a video encoder resource. This should be called after /// Initializes a video encoder resource. This should be called after
/// GetSupportedProfiles() and before any functions below. /// GetSupportedProfiles() and before any functions below.
......
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