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; } |