summaryrefslogtreecommitdiffstats
path: root/cc/surfaces/display.cc
diff options
context:
space:
mode:
authorsunnyps <sunnyps@chromium.org>2015-04-01 19:31:52 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-02 02:32:30 +0000
commit5333e1468ef3af0099769d4ec6a4c74e9e603766 (patch)
treecc0a818ac1139c606f134ed85f80501e056cb7be /cc/surfaces/display.cc
parent4242790a39d4b37ea27995e43189983ad469542b (diff)
downloadchromium_src-5333e1468ef3af0099769d4ec6a4c74e9e603766.zip
chromium_src-5333e1468ef3af0099769d4ec6a4c74e9e603766.tar.gz
chromium_src-5333e1468ef3af0099769d4ec6a4c74e9e603766.tar.bz2
cc: Make scheduling be driven by vsync for android webview.
This CL makes android webview use the similar mechanisms for scheduling as other platforms instead of using special polling code in the scheduler. Design Doc: https://docs.google.com/a/chromium.org/document/d/1w5UiuA2uZcAiU9-1Y23bxXaStUThkAK8wHI4ULqho2Y/edit# BUG=439275 Committed: https://crrev.com/bf27da634790bb6eecf4b89f278cfd55c5e5d1f3 Cr-Commit-Position: refs/heads/master@{#323361} Review URL: https://codereview.chromium.org/817603002 Cr-Commit-Position: refs/heads/master@{#323410}
Diffstat (limited to 'cc/surfaces/display.cc')
-rw-r--r--cc/surfaces/display.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index 7ec4672..6de3c30 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -196,6 +196,10 @@ void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) {
client_->SetMemoryPolicy(policy);
}
+void Display::OnDraw() {
+ NOTREACHED();
+}
+
void Display::OnSurfaceDamaged(SurfaceId surface_id, bool* changed) {
if (aggregator_ &&
aggregator_->previous_contained_surfaces().count(surface_id)) {