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

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

Issue 652593003: Web Animations: Plumb compositor group id through animation creation and start/finish notifications (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass groupId to createAnimation. Created 6 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
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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 WebContentLayer* contentLayer() const { return m_layer.get(); } 230 WebContentLayer* contentLayer() const { return m_layer.get(); }
231 231
232 static void registerContentsLayer(WebLayer*); 232 static void registerContentsLayer(WebLayer*);
233 static void unregisterContentsLayer(WebLayer*); 233 static void unregisterContentsLayer(WebLayer*);
234 234
235 // GraphicsContextPainter implementation. 235 // GraphicsContextPainter implementation.
236 virtual void paint(GraphicsContext&, const IntRect& clip) override; 236 virtual void paint(GraphicsContext&, const IntRect& clip) override;
237 237
238 // WebCompositorAnimationDelegate implementation. 238 // WebCompositorAnimationDelegate implementation.
239 virtual void notifyAnimationStarted(double monotonicTime, WebCompositorAnima tion::TargetProperty) override; 239 virtual void notifyAnimationStarted(double monotonicTime, int group) overrid e;
240 virtual void notifyAnimationFinished(double monotonicTime, WebCompositorAnim ation::TargetProperty) override; 240 virtual void notifyAnimationFinished(double monotonicTime, int group) overri de;
241 241
242 // WebLayerScrollClient implementation. 242 // WebLayerScrollClient implementation.
243 virtual void didScroll() override; 243 virtual void didScroll() override;
244 244
245 protected: 245 protected:
246 String debugName(WebLayer*) const; 246 String debugName(WebLayer*) const;
247 247
248 explicit GraphicsLayer(GraphicsLayerClient*); 248 explicit GraphicsLayer(GraphicsLayerClient*);
249 // GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to be friends. 249 // GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to be friends.
250 friend class GraphicsLayerFactoryChromium; 250 friend class GraphicsLayerFactoryChromium;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 }; 344 };
345 345
346 } // namespace blink 346 } // namespace blink
347 347
348 #ifndef NDEBUG 348 #ifndef NDEBUG
349 // Outside the WebCore namespace for ease of invocation from gdb. 349 // Outside the WebCore namespace for ease of invocation from gdb.
350 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 350 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
351 #endif 351 #endif
352 352
353 #endif // GraphicsLayer_h 353 #endif // GraphicsLayer_h
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/RenderLayerCompositor.h ('k') | Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698