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

Unified Diff: cc/layer_tree_host_impl_unittest.cc

Issue 11269017: Plumb through cropped output size for VideoFrame (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Created 8 years, 2 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: cc/layer_tree_host_impl_unittest.cc
diff --git a/cc/layer_tree_host_impl_unittest.cc b/cc/layer_tree_host_impl_unittest.cc
index 68a4b7f4738f9e1d0f955d3ef67b6c626509656a..b68c6268bd992e4e84526ad4165c17c360d97ef8 100644
--- a/cc/layer_tree_host_impl_unittest.cc
+++ b/cc/layer_tree_host_impl_unittest.cc
@@ -2538,13 +2538,16 @@ public:
FakeVideoFrame() : m_textureId(0) { memset(m_data, 0x80, sizeof(m_data)); }
virtual ~FakeVideoFrame() { }
virtual Format format() const { return m_textureId ? FormatNativeTexture : FormatYV12; }
- virtual unsigned width() const { return 4; }
- virtual unsigned height() const { return 4; }
virtual unsigned planes() const { return m_textureId ? 0 : 3; }
- virtual int stride(unsigned plane) const { return 4; }
virtual const void* data(unsigned plane) const { return m_data; }
virtual unsigned textureId() const { return m_textureId; }
virtual unsigned textureTarget() const { return m_textureId ? GL_TEXTURE_2D : 0; }
+ virtual unsigned visibleX() const { return 0; }
+ virtual unsigned visibleY() const { return 0; }
+ virtual unsigned visibleWidth() const { return 4; }
+ virtual unsigned visibleHeight() const { return 4; }
+ virtual unsigned textureWidth() const { return 4; }
+ virtual unsigned textureHeight() const { return 4; }
Ami GONE FROM CHROMIUM 2012/10/25 00:43:07 y u no test the interesting case of non-zero offse
sheu 2012/10/25 01:53:54 Done.
void setTextureId(unsigned id) { m_textureId = id; }
« no previous file with comments | « cc/gl_renderer.cc ('k') | cc/resource_provider.cc » ('j') | cc/video_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698