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

Unified Diff: media/filters/gpu_video_decoder.h

Issue 11269017: Plumb through cropped output size for VideoFrame (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Found the windows failure, and fixed it. Thanks akalin@ Created 8 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
« no previous file with comments | « media/filters/ffmpeg_video_decoder_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/gpu_video_decoder.h
diff --git a/media/filters/gpu_video_decoder.h b/media/filters/gpu_video_decoder.h
index 745505f2016bf511892393561ccce7ac0a522a81..da3248c5ce992978f0564226fb5e5fc51931955c 100644
--- a/media/filters/gpu_video_decoder.h
+++ b/media/filters/gpu_video_decoder.h
@@ -127,7 +127,7 @@ class MEDIA_EXPORT GpuVideoDecoder
void RecordBufferData(
const BitstreamBuffer& bitstream_buffer, const Buffer& buffer);
void GetBufferData(int32 id, base::TimeDelta* timetamp,
- gfx::Size* natural_size);
+ gfx::Rect* visible_rect, gfx::Size* natural_size);
// Set |vda_| and |weak_vda_| on the VDA thread (in practice the render
// thread).
@@ -208,11 +208,12 @@ class MEDIA_EXPORT GpuVideoDecoder
uint32 decoder_texture_target_;
struct BufferData {
- BufferData(int32 bbid, base::TimeDelta ts,
+ BufferData(int32 bbid, base::TimeDelta ts, const gfx::Rect& visible_rect,
const gfx::Size& natural_size);
~BufferData();
int32 bitstream_buffer_id;
base::TimeDelta timestamp;
+ gfx::Rect visible_rect;
gfx::Size natural_size;
};
std::list<BufferData> input_buffer_data_;
« no previous file with comments | « media/filters/ffmpeg_video_decoder_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698