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

Unified Diff: content/browser/compositor/delegated_frame_host.cc

Issue 464643003: Stop painting when receiving delegated frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittest DCHECK OOPS Created 6 years, 4 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/browser/compositor/delegated_frame_host.cc
diff --git a/content/browser/compositor/delegated_frame_host.cc b/content/browser/compositor/delegated_frame_host.cc
index 7a56f02e20ee6f6558dfe340f566d5b650fdffe8..fd676cfacd3a5814ba3e2b06a4c96730690b3c9c 100644
--- a/content/browser/compositor/delegated_frame_host.cc
+++ b/content/browser/compositor/delegated_frame_host.cc
@@ -410,7 +410,7 @@ void DelegatedFrameHost::SwapDelegatedFrame(
if (modified_layers) {
// TODO(jbauman): Need to always tell the window observer about the
// damage.
- client_->SchedulePaintInRect(damage_rect_in_dip);
+ client_->GetLayer()->OnDelegatedFrameDamage(damage_rect_in_dip);
}
pending_delegated_ack_count_++;

Powered by Google App Engine
This is Rietveld 408576698