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

Side by Side Diff: Source/platform/graphics/GraphicsLayer.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: Adding BLINK_PLATFORM_EXPORT back in. 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 else 1195 else
1196 m_layer->layer()->setScrollClient(this); 1196 m_layer->layer()->setScrollClient(this);
1197 } 1197 }
1198 1198
1199 void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip) 1199 void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip)
1200 { 1200 {
1201 paintGraphicsLayerContents(context, clip); 1201 paintGraphicsLayerContents(context, clip);
1202 } 1202 }
1203 1203
1204 1204
1205 void GraphicsLayer::notifyAnimationStarted(double wallClockTime, double monotoni cTime, WebAnimation::TargetProperty) 1205 void GraphicsLayer::notifyAnimationStarted(double monotonicTime, WebAnimation::T argetProperty)
1206 { 1206 {
1207 if (m_client) 1207 if (m_client)
1208 m_client->notifyAnimationStarted(this, wallClockTime, monotonicTime); 1208 m_client->notifyAnimationStarted(this, monotonicTime);
1209 } 1209 }
1210 1210
1211 void GraphicsLayer::notifyAnimationFinished(double, double, WebAnimation::Target Property) 1211 void GraphicsLayer::notifyAnimationFinished(double, WebAnimation::TargetProperty )
1212 { 1212 {
1213 // Do nothing. 1213 // Do nothing.
1214 } 1214 }
1215 1215
1216 void GraphicsLayer::didScroll() 1216 void GraphicsLayer::didScroll()
1217 { 1217 {
1218 if (m_scrollableArea) 1218 if (m_scrollableArea)
1219 m_scrollableArea->scrollToOffsetWithoutAnimation(m_scrollableArea->minim umScrollPosition() + toIntSize(m_layer->layer()->scrollPosition())); 1219 m_scrollableArea->scrollToOffsetWithoutAnimation(m_scrollableArea->minim umScrollPosition() + toIntSize(m_layer->layer()->scrollPosition()));
1220 } 1220 }
1221 1221
1222 } // namespace WebCore 1222 } // namespace WebCore
1223 1223
1224 #ifndef NDEBUG 1224 #ifndef NDEBUG
1225 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) 1225 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer)
1226 { 1226 {
1227 if (!layer) 1227 if (!layer)
1228 return; 1228 return;
1229 1229
1230 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); 1230 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo);
1231 fprintf(stderr, "%s\n", output.utf8().data()); 1231 fprintf(stderr, "%s\n", output.utf8().data());
1232 } 1232 }
1233 #endif 1233 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.h ('k') | Source/platform/graphics/GraphicsLayerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698