diff options
author | reveman@google.com <reveman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 01:44:52 +0000 |
---|---|---|
committer | reveman@google.com <reveman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 01:44:52 +0000 |
commit | 1e5b6bf58a04ff80f1255090e91e196c8ba706fe (patch) | |
tree | cec52c032e71e74fd4a2855f62a5ad7dff114797 /cc/layer_tree_host_unittest.cc | |
parent | 3513af8dda3c2d453bf9b438a36030754a558968 (diff) | |
download | chromium_src-1e5b6bf58a04ff80f1255090e91e196c8ba706fe.zip chromium_src-1e5b6bf58a04ff80f1255090e91e196c8ba706fe.tar.gz chromium_src-1e5b6bf58a04ff80f1255090e91e196c8ba706fe.tar.bz2 |
cc: Replace TextureUploader::Parameters with ResourceUpdate struct.
This is in preparation to reducing texture uploader classes and
simplifying the resource update system. Also moves accelerated
painting code to texture update controller. This doesn't change
the behavior of the compositor in any way.
BUG=
TEST=cc_unittests
Review URL: https://codereview.chromium.org/11183027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162603 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_tree_host_unittest.cc')
-rw-r--r-- | cc/layer_tree_host_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/layer_tree_host_unittest.cc b/cc/layer_tree_host_unittest.cc index c94c913..83ae7de 100644 --- a/cc/layer_tree_host_unittest.cc +++ b/cc/layer_tree_host_unittest.cc @@ -2465,7 +2465,9 @@ void EvictionTestLayer::update(CCTextureUpdateQueue& queue, const CCOcclusionTra if (!m_texture.get()) return; IntRect fullRect(0, 0, 10, 10); - TextureUploader::Parameters upload = { m_texture.get(), &m_bitmap, NULL, { fullRect, fullRect, IntSize() } }; + + ResourceUpdate upload = ResourceUpdate::Create( + m_texture.get(), &m_bitmap, fullRect, fullRect, IntSize()); queue.appendFullUpload(upload); } |