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

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

Issue 23834010: Change WebLayer::addAnimation to transfer ownership of WebAnimation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change GraphicsLayer and LinkHighlight to clarify ownership transfer Created 7 years, 3 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 void setContentsNeedsDisplay(); 214 void setContentsNeedsDisplay();
215 215
216 // Set that the position/size of the contents (image or video). 216 // Set that the position/size of the contents (image or video).
217 IntRect contentsRect() const { return m_contentsRect; } 217 IntRect contentsRect() const { return m_contentsRect; }
218 void setContentsRect(const IntRect&); 218 void setContentsRect(const IntRect&);
219 219
220 // Return true if the animation is handled by the compositing system. If thi s returns 220 // Return true if the animation is handled by the compositing system. If thi s returns
221 // false, the animation will be run by AnimationController. 221 // false, the animation will be run by AnimationController.
222 // These methods handle both transitions and keyframe animations. 222 // These methods handle both transitions and keyframe animations.
223 bool addAnimation(WebKit::WebAnimation*); 223 bool addAnimation(PassOwnPtr<WebKit::WebAnimation>);
224 void pauseAnimation(int animationId, double /*timeOffset*/); 224 void pauseAnimation(int animationId, double /*timeOffset*/);
225 void removeAnimation(int animationId); 225 void removeAnimation(int animationId);
226 226
227 void suspendAnimations(double time); 227 void suspendAnimations(double time);
228 void resumeAnimations(); 228 void resumeAnimations();
229 229
230 // Layer contents 230 // Layer contents
231 void setContentsToImage(Image*); 231 void setContentsToImage(Image*);
232 void setContentsToNinePatch(Image*, const IntRect& aperture); 232 void setContentsToNinePatch(Image*, const IntRect& aperture);
233 bool shouldDirectlyCompositeImage(Image*) const { return true; } 233 bool shouldDirectlyCompositeImage(Image*) const { return true; }
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 411
412 412
413 } // namespace WebCore 413 } // namespace WebCore
414 414
415 #ifndef NDEBUG 415 #ifndef NDEBUG
416 // Outside the WebCore namespace for ease of invocation from gdb. 416 // Outside the WebCore namespace for ease of invocation from gdb.
417 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); 417 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer);
418 #endif 418 #endif
419 419
420 #endif // GraphicsLayer_h 420 #endif // GraphicsLayer_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/platform/graphics/GraphicsLayer.cpp » ('j') | Source/core/platform/graphics/GraphicsLayer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698