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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp

Issue 1891453002: Don't try to render composited selection in throttled frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « third_party/WebKit/Source/web/tests/sim/SimCompositor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
diff --git a/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp b/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
index da2f26507c8574c671636f80723a159a35d4b245..77f3c714094bdd545769123d1481aa0a72074e9f 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
+++ b/third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp
@@ -45,6 +45,7 @@ static void paintFrames(LocalFrame& root, SimDisplayItemList& displayList)
SimCompositor::SimCompositor()
: m_needsAnimate(false)
, m_deferCommits(true)
+ , m_hasSelection(false)
, m_webViewImpl(0)
, m_lastFrameTimeMonotonic(0)
{
@@ -75,6 +76,16 @@ void SimCompositor::setDeferCommits(bool deferCommits)
m_deferCommits = deferCommits;
}
+void SimCompositor::registerSelection(const WebSelection&)
+{
+ m_hasSelection = true;
+}
+
+void SimCompositor::clearSelection()
+{
+ m_hasSelection = false;
+}
+
SimDisplayItemList SimCompositor::beginFrame()
{
DCHECK(m_webViewImpl);
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimCompositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698