OLD | NEW |
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 bool dataChanged(bool allDataReceived) override; | 99 bool dataChanged(bool allDataReceived) override; |
100 | 100 |
101 // FIXME: SVGImages are underreporting decoded sizes and will be unable | 101 // FIXME: SVGImages are underreporting decoded sizes and will be unable |
102 // to prune because these functions are not implemented yet. | 102 // to prune because these functions are not implemented yet. |
103 void destroyDecodedData() override { } | 103 void destroyDecodedData() override { } |
104 | 104 |
105 // FIXME: Implement this to be less conservative. | 105 // FIXME: Implement this to be less conservative. |
106 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override
{ return false; } | 106 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override
{ return false; } |
107 | 107 |
108 SVGImage(ImageObserver*); | 108 SVGImage(ImageObserver*); |
109 void draw(SkCanvas*, const SkPaint&, const FloatRect& fromRect, const FloatR
ect& toRect, RespectImageOrientationEnum, ImageClampingMode) override; | 109 void draw(SkCanvas*, const SkPaint&, const FloatRect& fromRect, const FloatR
ect& toRect, bool imageSmoothingEnabled, RespectImageOrientationEnum, ImageClamp
ingMode) override; |
110 void drawForContainer(SkCanvas*, const SkPaint&, const FloatSize, float, con
st FloatRect&, const FloatRect&, const KURL&); | 110 void drawForContainer(SkCanvas*, const SkPaint&, const FloatSize, float, con
st FloatRect&, const FloatRect&, bool imageSmoothingEnabled, const KURL&); |
111 void drawPatternForContainer(GraphicsContext&, const FloatSize, float, const
FloatRect&, const FloatSize&, const FloatPoint&, | 111 void drawPatternForContainer(GraphicsContext&, const FloatSize, float, const
FloatRect&, const FloatSize&, const FloatPoint&, |
112 SkXfermode::Mode, const FloatRect&, const FloatSize& repeatSpacing, cons
t KURL&); | 112 SkXfermode::Mode, const FloatRect&, const FloatSize& repeatSpacing, cons
t KURL&); |
113 PassRefPtr<SkImage> imageForCurrentFrameForContainer(const KURL&, const Floa
tSize& containerSize); | 113 PassRefPtr<SkImage> imageForCurrentFrameForContainer(const KURL&, const Floa
tSize& containerSize); |
114 void drawInternal(SkCanvas*, const SkPaint&, const FloatRect& fromRect, cons
t FloatRect& toRect, RespectImageOrientationEnum, | 114 void drawInternal(SkCanvas*, const SkPaint&, const FloatRect& fromRect, cons
t FloatRect& toRect, RespectImageOrientationEnum, |
115 ImageClampingMode, const KURL&); | 115 ImageClampingMode, const KURL&); |
116 | 116 |
117 void stopAnimation(); | 117 void stopAnimation(); |
118 | 118 |
119 Persistent<SVGImageChromeClient> m_chromeClient; | 119 Persistent<SVGImageChromeClient> m_chromeClient; |
120 Persistent<Page> m_page; | 120 Persistent<Page> m_page; |
(...skipping 23 matching lines...) Expand all Loading... |
144 { | 144 { |
145 m_image->setImageObserverDisabled(false); | 145 m_image->setImageObserverDisabled(false); |
146 } | 146 } |
147 private: | 147 private: |
148 Image* m_image; | 148 Image* m_image; |
149 }; | 149 }; |
150 | 150 |
151 } // namespace blink | 151 } // namespace blink |
152 | 152 |
153 #endif // SVGImage_h | 153 #endif // SVGImage_h |
OLD | NEW |