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

Unified Diff: content/public/test/test_synchronous_compositor_android.cc

Issue 817603002: cc: Make scheduling be driven by vsync for android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix misc bugs introduced in last two patches Created 5 years, 10 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: content/public/test/test_synchronous_compositor_android.cc
diff --git a/content/public/test/test_synchronous_compositor_android.cc b/content/public/test/test_synchronous_compositor_android.cc
index 27ed1243961debf150f9f65ac532f761bca93b29..ed5e67aea8c5f789b3d9421296732c1038051b8c 100644
--- a/content/public/test/test_synchronous_compositor_android.cc
+++ b/content/public/test/test_synchronous_compositor_android.cc
@@ -4,6 +4,7 @@
#include "content/public/test/test_synchronous_compositor_android.h"
+#include "cc/output/begin_frame_args.h"
#include "cc/output/compositor_frame.h"
namespace content {
@@ -61,4 +62,8 @@ void TestSynchronousCompositor::SetMemoryPolicy(size_t bytes_limit) {
DCHECK(!bytes_limit || hardware_initialized_) << bytes_limit;
}
+void TestSynchronousCompositor::SendBeginFrame(cc::BeginFrameArgs args) {
+ client_->PostInvalidate();
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698