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

Side by Side Diff: Source/core/svg/graphics/SVGImage.h

Issue 190963003: Drive SVG Animations via requestAnimationFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/animation/SMILTimeContainer.cpp ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2009 Apple Inc. 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 virtual void startAnimation(bool /*catchUpIfNecessary*/ = true) OVERRIDE; 61 virtual void startAnimation(bool /*catchUpIfNecessary*/ = true) OVERRIDE;
62 virtual void stopAnimation() OVERRIDE; 62 virtual void stopAnimation() OVERRIDE;
63 virtual void resetAnimation() OVERRIDE; 63 virtual void resetAnimation() OVERRIDE;
64 64
65 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() OVERRIDE; 65 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() OVERRIDE;
66 66
67 // Returns the SVG image document's frame. 67 // Returns the SVG image document's frame.
68 FrameView* frameView() const; 68 FrameView* frameView() const;
69 69
70 // Does the SVG image/document contain any animations?
71 bool hasAnimations() const;
72
70 private: 73 private:
71 friend class AXRenderObject; 74 friend class AXRenderObject;
72 friend class SVGImageChromeClient; 75 friend class SVGImageChromeClient;
73 friend class SVGImageForContainer; 76 friend class SVGImageForContainer;
74 77
75 virtual ~SVGImage(); 78 virtual ~SVGImage();
76 79
77 80
78 virtual String filenameExtension() const OVERRIDE; 81 virtual String filenameExtension() const OVERRIDE;
79 82
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 m_image->setImageObserver(m_observer); 123 m_image->setImageObserver(m_observer);
121 } 124 }
122 private: 125 private:
123 Image* m_image; 126 Image* m_image;
124 ImageObserver* m_observer; 127 ImageObserver* m_observer;
125 }; 128 };
126 129
127 } 130 }
128 131
129 #endif // SVGImage_h 132 #endif // SVGImage_h
OLDNEW
« no previous file with comments | « Source/core/svg/animation/SMILTimeContainer.cpp ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698