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

Unified Diff: content/common/gpu/media/video_decode_accelerator_unittest.cc

Issue 23526070: Remove GSC usage from ExynosVideoDecodeAccelerator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@git-svn
Patch Set: 11845b4b crop fix, rebase. Created 7 years, 1 month 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: content/common/gpu/media/video_decode_accelerator_unittest.cc
diff --git a/content/common/gpu/media/video_decode_accelerator_unittest.cc b/content/common/gpu/media/video_decode_accelerator_unittest.cc
index e0d938d39e09864634b18f65ff0e9c6abd589990..1297c0348d46c9c3358c445385da6c8f27963d60 100644
--- a/content/common/gpu/media/video_decode_accelerator_unittest.cc
+++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc
@@ -453,6 +453,7 @@ class GLRenderingVDAClient
PictureBufferById picture_buffers_by_id_;
base::TimeTicks initialize_done_ticks_;
int profile_;
+ GLenum texture_target_;
bool suppress_rendering_;
std::vector<base::TimeTicks> frame_delivery_times_;
int delay_reuse_after_frame_num_;
@@ -500,6 +501,7 @@ GLRenderingVDAClient::GLRenderingVDAClient(
num_decoded_frames_(0),
num_done_bitstream_buffers_(0),
profile_(profile),
+ texture_target_(0),
suppress_rendering_(suppress_rendering),
delay_reuse_after_frame_num_(delay_reuse_after_frame_num),
decode_calls_per_second_(decode_calls_per_second) {
@@ -576,12 +578,13 @@ void GLRenderingVDAClient::ProvidePictureBuffers(
return;
std::vector<media::PictureBuffer> buffers;
+ texture_target_ = texture_target;
for (uint32 i = 0; i < requested_num_of_buffers; ++i) {
uint32 id = picture_buffers_by_id_.size();
uint32 texture_id;
base::WaitableEvent done(false, false);
rendering_helper_->CreateTexture(
- rendering_window_id_, texture_target, &texture_id, &done);
+ rendering_window_id_, texture_target_, &texture_id, &done);
done.Wait();
CHECK(outstanding_texture_ids_.insert(texture_id).second);
media::PictureBuffer* buffer =
@@ -636,7 +639,8 @@ void GLRenderingVDAClient::PictureReady(const media::Picture& picture) {
picture_buffers_by_id_[picture.picture_buffer_id()];
CHECK(picture_buffer);
if (!suppress_rendering_) {
- rendering_helper_->RenderTexture(picture_buffer->texture_id());
+ rendering_helper_->RenderTexture(texture_target_,
+ picture_buffer->texture_id());
}
if (num_decoded_frames() > delay_reuse_after_frame_num_) {
@@ -1517,9 +1521,7 @@ int main(int argc, char **argv) {
#if defined(OS_WIN)
content::DXVAVideoDecodeAccelerator::PreSandboxInitialization();
#elif defined(OS_CHROMEOS)
-#if defined(ARCH_CPU_ARMEL)
- content::ExynosVideoDecodeAccelerator::PreSandboxInitialization();
-#elif defined(ARCH_CPU_X86_FAMILY)
+#if defined(ARCH_CPU_X86_FAMILY)
content::VaapiWrapper::PreSandboxInitialization();
#endif // ARCH_CPU_ARMEL
#endif // OS_CHROMEOS

Powered by Google App Engine
This is Rietveld 408576698