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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 1739743003: Blink Compositor Animation: Erase old animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Exclude histograms.xml Created 4 years, 9 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, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 Apple 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 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after
2387 return client ? client->isTrackingPaintInvalidations() : false; 2387 return client ? client->isTrackingPaintInvalidations() : false;
2388 } 2388 }
2389 2389
2390 #if ENABLE(ASSERT) 2390 #if ENABLE(ASSERT)
2391 void CompositedLayerMapping::verifyNotPainting() 2391 void CompositedLayerMapping::verifyNotPainting()
2392 { 2392 {
2393 ASSERT(!layoutObject()->frame()->page() || !layoutObject()->frame()->page()- >isPainting()); 2393 ASSERT(!layoutObject()->frame()->page() || !layoutObject()->frame()->page()- >isPainting());
2394 } 2394 }
2395 #endif 2395 #endif
2396 2396
2397 void CompositedLayerMapping::notifyAnimationStarted(const GraphicsLayer*, double monotonicTime, int group)
2398 {
2399 layoutObject()->node()->document().compositorPendingAnimations().notifyCompo sitorAnimationStarted(monotonicTime, group);
2400 }
2401
2402 void CompositedLayerMapping::notifyFirstPaint() 2397 void CompositedLayerMapping::notifyFirstPaint()
2403 { 2398 {
2404 if (PaintTiming* timing = m_owningLayer.paintTiming()) 2399 if (PaintTiming* timing = m_owningLayer.paintTiming())
2405 timing->markFirstPaint(); 2400 timing->markFirstPaint();
2406 } 2401 }
2407 2402
2408 void CompositedLayerMapping::notifyFirstTextPaint() 2403 void CompositedLayerMapping::notifyFirstTextPaint()
2409 { 2404 {
2410 if (PaintTiming* timing = m_owningLayer.paintTiming()) 2405 if (PaintTiming* timing = m_owningLayer.paintTiming())
2411 timing->markFirstTextPaint(); 2406 timing->markFirstTextPaint();
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
2552 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { 2547 } else if (graphicsLayer == m_scrollingContentsLayer.get()) {
2553 name = "Scrolling Contents Layer"; 2548 name = "Scrolling Contents Layer";
2554 } else { 2549 } else {
2555 ASSERT_NOT_REACHED(); 2550 ASSERT_NOT_REACHED();
2556 } 2551 }
2557 2552
2558 return name; 2553 return name;
2559 } 2554 }
2560 2555
2561 } // namespace blink 2556 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698