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

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

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 1 month 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 void setNeedsDisplay(); 184 void setNeedsDisplay();
185 // Mark the given rect (in layer coords) as needing display. Never goes deep . 185 // Mark the given rect (in layer coords) as needing display. Never goes deep .
186 void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason); 186 void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason);
187 187
188 void setContentsNeedsDisplay(); 188 void setContentsNeedsDisplay();
189 189
190 // Set that the position/size of the contents (image or video). 190 // Set that the position/size of the contents (image or video).
191 void setContentsRect(const IntRect&); 191 void setContentsRect(const IntRect&);
192 192
193 // If this layer may be affected by a worker animation, then it must have
194 // the property registered via this call.
195 void addAnimatedProperty(const String&);
196
197 // Clears any properties added via |addAnimatedProperty|.
198 void clearAnimatedProperties();
199
193 // Return true if the animation is handled by the compositing system. If thi s returns 200 // Return true if the animation is handled by the compositing system. If thi s returns
194 // false, the animation will be run by AnimationController. 201 // false, the animation will be run by AnimationController.
195 // These methods handle both transitions and keyframe animations. 202 // These methods handle both transitions and keyframe animations.
196 bool addAnimation(PassOwnPtr<WebCompositorAnimation>); 203 bool addAnimation(PassOwnPtr<WebCompositorAnimation>);
197 void pauseAnimation(int animationId, double /*timeOffset*/); 204 void pauseAnimation(int animationId, double /*timeOffset*/);
198 void removeAnimation(int animationId); 205 void removeAnimation(int animationId);
199 206
200 // Layer contents 207 // Layer contents
201 void setContentsToImage(Image*); 208 void setContentsToImage(Image*);
202 void setContentsToNinePatch(Image*, const IntRect& aperture); 209 void setContentsToNinePatch(Image*, const IntRect& aperture);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 }; 351 };
345 352
346 } // namespace blink 353 } // namespace blink
347 354
348 #ifndef NDEBUG 355 #ifndef NDEBUG
349 // Outside the WebCore namespace for ease of invocation from gdb. 356 // Outside the WebCore namespace for ease of invocation from gdb.
350 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 357 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
351 #endif 358 #endif
352 359
353 #endif // GraphicsLayer_h 360 #endif // GraphicsLayer_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/CompositingReasons.cpp ('k') | Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698