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

Side by Side Diff: cc/CCLayerTreeHostImpl.cpp

Issue 11038056: cc: Remove wtf/Vector dependency from CCAnimationEvents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « cc/CCLayerAnimationController.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "CCLayerTreeHostImpl.h" 7 #include "CCLayerTreeHostImpl.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "CCAppendQuadsData.h" 10 #include "CCAppendQuadsData.h"
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 if (!CCSettings::acceleratedAnimationEnabled() || !m_needsAnimateLayers || ! m_rootLayerImpl) 1230 if (!CCSettings::acceleratedAnimationEnabled() || !m_needsAnimateLayers || ! m_rootLayerImpl)
1231 return; 1231 return;
1232 1232
1233 TRACE_EVENT0("cc", "CCLayerTreeHostImpl::animateLayers"); 1233 TRACE_EVENT0("cc", "CCLayerTreeHostImpl::animateLayers");
1234 1234
1235 OwnPtr<CCAnimationEventsVector> events(adoptPtr(new CCAnimationEventsVector) ); 1235 OwnPtr<CCAnimationEventsVector> events(adoptPtr(new CCAnimationEventsVector) );
1236 1236
1237 bool didAnimate = false; 1237 bool didAnimate = false;
1238 animateLayersRecursive(m_rootLayerImpl.get(), monotonicTime, wallClockTime, events.get(), didAnimate, m_needsAnimateLayers); 1238 animateLayersRecursive(m_rootLayerImpl.get(), monotonicTime, wallClockTime, events.get(), didAnimate, m_needsAnimateLayers);
1239 1239
1240 if (!events->isEmpty()) 1240 if (!events->empty())
1241 m_client->postAnimationEventsToMainThreadOnImplThread(events.release(), wallClockTime); 1241 m_client->postAnimationEventsToMainThreadOnImplThread(events.release(), wallClockTime);
1242 1242
1243 if (didAnimate) 1243 if (didAnimate)
1244 m_client->setNeedsRedrawOnImplThread(); 1244 m_client->setNeedsRedrawOnImplThread();
1245 1245
1246 setBackgroundTickingEnabled(!m_visible && m_needsAnimateLayers); 1246 setBackgroundTickingEnabled(!m_visible && m_needsAnimateLayers);
1247 } 1247 }
1248 1248
1249 base::TimeDelta CCLayerTreeHostImpl::lowFrequencyAnimationInterval() const 1249 base::TimeDelta CCLayerTreeHostImpl::lowFrequencyAnimationInterval() const
1250 { 1250 {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 return; 1321 return;
1322 1322
1323 CCScrollbarAnimationController* scrollbarController = layer->scrollbarAnimat ionController(); 1323 CCScrollbarAnimationController* scrollbarController = layer->scrollbarAnimat ionController();
1324 if (scrollbarController && scrollbarController->animate(monotonicTime)) 1324 if (scrollbarController && scrollbarController->animate(monotonicTime))
1325 m_client->setNeedsRedrawOnImplThread(); 1325 m_client->setNeedsRedrawOnImplThread();
1326 1326
1327 for (size_t i = 0; i < layer->children().size(); ++i) 1327 for (size_t i = 0; i < layer->children().size(); ++i)
1328 animateScrollbarsRecursive(layer->children()[i], monotonicTime); 1328 animateScrollbarsRecursive(layer->children()[i], monotonicTime);
1329 } 1329 }
1330 1330
1331 } // namespace cc 1331 } // namespace cc
OLDNEW
« no previous file with comments | « cc/CCLayerAnimationController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698