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

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

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 8 years, 6 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: 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 411c85eb67b67ee28e1f6a59bf3faa80d2ed4925..2d8162a87d64e21e82498dd25558f7599bc91249 100644
--- a/content/common/gpu/media/video_decode_accelerator_unittest.cc
+++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc
@@ -204,9 +204,9 @@ class EglRenderingVDAClient : public VideoDecodeAccelerator::Client {
// VideoDecodeAccelerator::Client implementation.
// The heart of the Client.
- virtual void ProvidePictureBuffers(
- uint32 requested_num_of_buffers,
- const gfx::Size& dimensions);
+ virtual void ProvidePictureBuffers(uint32 requested_num_of_buffers,
+ const gfx::Size& dimensions,
+ uint32 texture_target);
virtual void DismissPictureBuffer(int32 picture_buffer_id);
virtual void PictureReady(const media::Picture& picture);
// Simple state changes.
@@ -333,7 +333,8 @@ void EglRenderingVDAClient::CreateDecoder() {
void EglRenderingVDAClient::ProvidePictureBuffers(
uint32 requested_num_of_buffers,
- const gfx::Size& dimensions) {
+ const gfx::Size& dimensions,
+ uint32 texture_target) {
if (decoder_deleted())
return;
std::vector<media::PictureBuffer> buffers;
@@ -342,7 +343,8 @@ void EglRenderingVDAClient::ProvidePictureBuffers(
uint32 id = picture_buffers_by_id_.size();
uint32 texture_id;
base::WaitableEvent done(false, false);
- rendering_helper_->CreateTexture(rendering_window_id_, &texture_id, &done);
+ rendering_helper_->CreateTexture(
+ rendering_window_id_, texture_target, &texture_id, &done);
done.Wait();
CHECK(outstanding_texture_ids_.insert(texture_id).second);
media::PictureBuffer* buffer =
« no previous file with comments | « content/common/gpu/media/rendering_helper_mac.mm ('k') | content/renderer/media/pepper_platform_video_decoder_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698