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

Side by Side Diff: Source/core/rendering/compositing/CompositedLayerMapping.cpp

Issue 185633002: Adding monotonic only API to Blink's animation delegate interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase onto HEAD. Created 6 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 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 return rects.release(); 1990 return rects.release();
1991 } 1991 }
1992 1992
1993 #ifndef NDEBUG 1993 #ifndef NDEBUG
1994 void CompositedLayerMapping::verifyNotPainting() 1994 void CompositedLayerMapping::verifyNotPainting()
1995 { 1995 {
1996 ASSERT(!renderer()->frame()->page() || !renderer()->frame()->page()->isPaint ing()); 1996 ASSERT(!renderer()->frame()->page() || !renderer()->frame()->page()->isPaint ing());
1997 } 1997 }
1998 #endif 1998 #endif
1999 1999
2000 void CompositedLayerMapping::notifyAnimationStarted(const GraphicsLayer*, double wallClockTime, double monotonicTime) 2000 void CompositedLayerMapping::notifyAnimationStarted(const GraphicsLayer*, double monotonicTime)
2001 { 2001 {
2002 renderer()->node()->document().cssPendingAnimations().notifyCompositorAnimat ionStarted(monotonicTime); 2002 renderer()->node()->document().cssPendingAnimations().notifyCompositorAnimat ionStarted(monotonicTime);
2003 } 2003 }
2004 2004
2005 LayoutRect CompositedLayerMapping::compositedBounds() const 2005 LayoutRect CompositedLayerMapping::compositedBounds() const
2006 { 2006 {
2007 return m_compositedBounds; 2007 return m_compositedBounds;
2008 } 2008 }
2009 2009
2010 void CompositedLayerMapping::setCompositedBounds(const LayoutRect& bounds) 2010 void CompositedLayerMapping::setCompositedBounds(const LayoutRect& bounds)
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { 2100 } else if (graphicsLayer == m_scrollingContentsLayer.get()) {
2101 name = "Scrolling Contents Layer"; 2101 name = "Scrolling Contents Layer";
2102 } else { 2102 } else {
2103 ASSERT_NOT_REACHED(); 2103 ASSERT_NOT_REACHED();
2104 } 2104 }
2105 2105
2106 return name; 2106 return name;
2107 } 2107 }
2108 2108
2109 } // namespace WebCore 2109 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698