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

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

Issue 1001703003: Take NativeImageSkia out behind the woodshed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Switch to skia-style API (return bool instead of SkBitmap) Created 5 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/imagebitmap/ImageBitmapFactories.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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual bool isSVGImage() const override { return true; } 54 virtual bool isSVGImage() const override { return true; }
55 virtual IntSize size() const override { return m_intrinsicSize; } 55 virtual IntSize size() const override { return m_intrinsicSize; }
56 void setURL(const KURL& url) { m_url = url; } 56 void setURL(const KURL& url) { m_url = url; }
57 57
58 virtual bool currentFrameHasSingleSecurityOrigin() const override; 58 virtual bool currentFrameHasSingleSecurityOrigin() const override;
59 59
60 virtual void startAnimation(CatchUpAnimation = CatchUp) override; 60 virtual void startAnimation(CatchUpAnimation = CatchUp) override;
61 virtual void stopAnimation() override; 61 virtual void stopAnimation() override;
62 virtual void resetAnimation() override; 62 virtual void resetAnimation() override;
63 63
64 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() override; 64 virtual bool bitmapForCurrentFrame(SkBitmap*) override;
65 65
66 // Returns the SVG image document's frame. 66 // Returns the SVG image document's frame.
67 FrameView* frameView() const; 67 FrameView* frameView() const;
68 68
69 // Does the SVG image/document contain any animations? 69 // Does the SVG image/document contain any animations?
70 bool hasAnimations() const; 70 bool hasAnimations() const;
71 71
72 private: 72 private:
73 friend class AXLayoutObject; 73 friend class AXLayoutObject;
74 friend class SVGImageChromeClient; 74 friend class SVGImageChromeClient;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 m_image->setImageObserver(m_observer); 124 m_image->setImageObserver(m_observer);
125 } 125 }
126 private: 126 private:
127 Image* m_image; 127 Image* m_image;
128 ImageObserver* m_observer; 128 ImageObserver* m_observer;
129 }; 129 };
130 130
131 } 131 }
132 132
133 #endif // SVGImage_h 133 #endif // SVGImage_h
OLDNEW
« no previous file with comments | « Source/core/imagebitmap/ImageBitmapFactories.cpp ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698