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

Side by Side Diff: Source/platform/graphics/GraphicsLayer.h

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 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 blink::WebContentLayer* contentLayer() const { return m_layer.get(); } 282 blink::WebContentLayer* contentLayer() const { return m_layer.get(); }
283 283
284 static void registerContentsLayer(blink::WebLayer*); 284 static void registerContentsLayer(blink::WebLayer*);
285 static void unregisterContentsLayer(blink::WebLayer*); 285 static void unregisterContentsLayer(blink::WebLayer*);
286 286
287 // GraphicsContextPainter implementation. 287 // GraphicsContextPainter implementation.
288 virtual void paint(GraphicsContext&, const IntRect& clip) OVERRIDE; 288 virtual void paint(GraphicsContext&, const IntRect& clip) OVERRIDE;
289 289
290 // WebAnimationDelegate implementation. 290 // WebAnimationDelegate implementation.
291 virtual void notifyAnimationStarted(double wallClockTime, double monotonicTi me, blink::WebAnimation::TargetProperty) OVERRIDE; 291 virtual void notifyAnimationStarted(double monotonicTime, blink::WebAnimatio n::TargetProperty) OVERRIDE;
292 virtual void notifyAnimationFinished(double wallClockTime, double monotonicT ime, blink::WebAnimation::TargetProperty) OVERRIDE; 292 virtual void notifyAnimationFinished(double monotonicTime, blink::WebAnimati on::TargetProperty) OVERRIDE;
293 293
294 // WebLayerScrollClient implementation. 294 // WebLayerScrollClient implementation.
295 virtual void didScroll() OVERRIDE; 295 virtual void didScroll() OVERRIDE;
296 296
297 protected: 297 protected:
298 explicit GraphicsLayer(GraphicsLayerClient*); 298 explicit GraphicsLayer(GraphicsLayerClient*);
299 // GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to be friends. 299 // GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to be friends.
300 friend class blink::GraphicsLayerFactoryChromium; 300 friend class blink::GraphicsLayerFactoryChromium;
301 301
302 // Exposed for tests. 302 // Exposed for tests.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 399
400 400
401 } // namespace WebCore 401 } // namespace WebCore
402 402
403 #ifndef NDEBUG 403 #ifndef NDEBUG
404 // Outside the WebCore namespace for ease of invocation from gdb. 404 // Outside the WebCore namespace for ease of invocation from gdb.
405 void PLATFORM_EXPORT showGraphicsLayerTree(const WebCore::GraphicsLayer*); 405 void PLATFORM_EXPORT showGraphicsLayerTree(const WebCore::GraphicsLayer*);
406 #endif 406 #endif
407 407
408 #endif // GraphicsLayer_h 408 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698