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

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 1934753002: NOT FOR COMMIT: sample CL to debug white flashes. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 m_webView->hasTouchEventHandlers(properties != WebEventListenerPrope rties::Nothing || eventListenerProperties(WebEventListenerClass::TouchStartOrMov e) != WebEventListenerProperties::Nothing); 930 m_webView->hasTouchEventHandlers(properties != WebEventListenerPrope rties::Nothing || eventListenerProperties(WebEventListenerClass::TouchStartOrMov e) != WebEventListenerProperties::Nothing);
931 } 931 }
932 } else { 932 } else {
933 m_webView->hasTouchEventHandlers(true); 933 m_webView->hasTouchEventHandlers(true);
934 } 934 }
935 } 935 }
936 936
937 void ChromeClientImpl::beginLifecycleUpdates() 937 void ChromeClientImpl::beginLifecycleUpdates()
938 { 938 {
939 if (WebLayerTreeView* treeView = m_webView->layerTreeView()) { 939 if (WebLayerTreeView* treeView = m_webView->layerTreeView()) {
940 LOG(ERROR) << "Start painting";
940 treeView->setDeferCommits(false); 941 treeView->setDeferCommits(false);
941 treeView->setNeedsBeginFrame(); 942 treeView->setNeedsBeginFrame();
942 } 943 }
943 } 944 }
944 945
945 WebEventListenerProperties ChromeClientImpl::eventListenerProperties(WebEventLis tenerClass eventClass) const 946 WebEventListenerProperties ChromeClientImpl::eventListenerProperties(WebEventLis tenerClass eventClass) const
946 { 947 {
947 if (WebLayerTreeView* treeView = m_webView->layerTreeView()) 948 if (WebLayerTreeView* treeView = m_webView->layerTreeView())
948 return treeView->eventListenerProperties(eventClass); 949 return treeView->eventListenerProperties(eventClass);
949 return WebEventListenerProperties::Nothing; 950 return WebEventListenerProperties::Nothing;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 { 1119 {
1119 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r elease()); 1120 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r elease());
1120 } 1121 }
1121 1122
1122 double ChromeClientImpl::lastFrameTimeMonotonic() const 1123 double ChromeClientImpl::lastFrameTimeMonotonic() const
1123 { 1124 {
1124 return m_webView->lastFrameTimeMonotonic(); 1125 return m_webView->lastFrameTimeMonotonic();
1125 } 1126 }
1126 1127
1127 } // namespace blink 1128 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ViewPainter.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698