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

Unified Diff: cc/test/layer_tree_test_common.cc

Issue 12518026: cc: Add layer-based pixel tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « cc/test/layer_tree_test_common.h ('k') | cc/test/pixel_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_test_common.cc
diff --git a/cc/test/layer_tree_test_common.cc b/cc/test/layer_tree_test_common.cc
index def18204dfb882b7056ca88a4fa3701a0de3a3d7..f24c6b0809a0ea3755988c72f159386f1091e153 100644
--- a/cc/test/layer_tree_test_common.cc
+++ b/cc/test/layer_tree_test_common.cc
@@ -98,6 +98,13 @@ void MockLayerTreeHostImpl::DrawLayers(FrameData* frame)
m_testHooks->drawLayersOnThread(this);
}
+bool MockLayerTreeHostImpl::SwapBuffers()
+{
+ bool result = LayerTreeHostImpl::SwapBuffers();
+ m_testHooks->swapBuffersOnThread(this, result);
+ return result;
+}
+
bool MockLayerTreeHostImpl::ActivatePendingTreeIfNeeded()
{
if (!pending_tree())
« no previous file with comments | « cc/test/layer_tree_test_common.h ('k') | cc/test/pixel_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698