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

Side by Side Diff: sky/engine/core/dom/ScriptedAnimationController.cpp

Issue 875283003: Make all callers of scheduleAnimation() use scheduleVisualUpdate(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/animation/PendingAnimations.cpp ('k') | sky/engine/core/frame/FrameView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All Rights Reserved. 2 * Copyright (C) 2011 Google Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 m_document && m_document->view() ? 1 : 0); 219 m_document && m_document->view() ? 1 : 0);
220 if (!m_document) 220 if (!m_document)
221 return; 221 return;
222 222
223 if (m_suspendCount) 223 if (m_suspendCount)
224 return; 224 return;
225 225
226 if (!m_callbacks.size() && !m_eventQueue.size() && !m_mediaQueryListListener s.size()) 226 if (!m_callbacks.size() && !m_eventQueue.size() && !m_mediaQueryListListener s.size())
227 return; 227 return;
228 228
229 if (FrameView* frameView = m_document->view()) 229 // TODO(esprehn): This causes a full raster on every raf even if nothing cha nged.
230 frameView->scheduleAnimation(); 230 m_document->scheduleVisualUpdate();
231 } 231 }
232 232
233 } 233 }
OLDNEW
« no previous file with comments | « sky/engine/core/animation/PendingAnimations.cpp ('k') | sky/engine/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698