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

Unified Diff: media/gpu/ipc/service/gpu_video_decode_accelerator.cc

Issue 2881553002: Add |texture_target_| and |pixel_format_| to media::PictureBuffer (Closed)
Patch Set: removed IPC changes Created 3 years, 7 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: media/gpu/ipc/service/gpu_video_decode_accelerator.cc
diff --git a/media/gpu/ipc/service/gpu_video_decode_accelerator.cc b/media/gpu/ipc/service/gpu_video_decode_accelerator.cc
index b31f9bb5903cb208e6f6928bd3665b9160e27708..192f12e9bb283d54609e041915727092b761aa84 100644
--- a/media/gpu/ipc/service/gpu_video_decode_accelerator.cc
+++ b/media/gpu/ipc/service/gpu_video_decode_accelerator.cc
@@ -162,6 +162,7 @@ GpuVideoDecodeAccelerator::GpuVideoDecodeAccelerator(
: host_route_id_(host_route_id),
stub_(stub),
texture_target_(0),
+ pixel_format_(PIXEL_FORMAT_UNKNOWN),
textures_per_buffer_(0),
filter_removed_(base::WaitableEvent::ResetPolicy::MANUAL,
base::WaitableEvent::InitialState::NOT_SIGNALED),
@@ -244,6 +245,7 @@ void GpuVideoDecodeAccelerator::ProvidePictureBuffers(
texture_dimensions_ = dimensions;
textures_per_buffer_ = textures_per_buffer;
texture_target_ = texture_target;
+ pixel_format_ = format;
}
void GpuVideoDecodeAccelerator::DismissPictureBuffer(
@@ -481,7 +483,8 @@ void GpuVideoDecodeAccelerator::OnAssignPictureBuffers(
}
textures.push_back(current_textures);
buffers.push_back(PictureBuffer(buffer_ids[i], texture_dimensions_,
- buffer_texture_ids, service_ids));
+ buffer_texture_ids, service_ids,
+ texture_target_, pixel_format_));
}
{
DebugAutoLock auto_lock(debug_uncleared_textures_lock_);
« no previous file with comments | « media/gpu/ipc/service/gpu_video_decode_accelerator.h ('k') | media/gpu/video_decode_accelerator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698