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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 void destroyDecodedData() override { } | 104 void destroyDecodedData() override { } |
105 | 105 |
106 // FIXME: Implement this to be less conservative. | 106 // FIXME: Implement this to be less conservative. |
107 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override
{ return false; } | 107 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override
{ return false; } |
108 | 108 |
109 SVGImage(ImageObserver*); | 109 SVGImage(ImageObserver*); |
110 void draw(SkCanvas*, const SkPaint&, const FloatRect& fromRect, const FloatR
ect& toRect, RespectImageOrientationEnum, ImageClampingMode) override; | 110 void draw(SkCanvas*, const SkPaint&, const FloatRect& fromRect, const FloatR
ect& toRect, RespectImageOrientationEnum, ImageClampingMode) override; |
111 void drawForContainer(SkCanvas*, const SkPaint&, const FloatSize, float, con
st FloatRect&, const FloatRect&, const KURL&); | 111 void drawForContainer(SkCanvas*, const SkPaint&, const FloatSize, float, con
st FloatRect&, const FloatRect&, const KURL&); |
112 void drawPatternForContainer(GraphicsContext&, const FloatSize, float, const
FloatRect&, const FloatSize&, const FloatPoint&, | 112 void drawPatternForContainer(GraphicsContext&, const FloatSize, float, const
FloatRect&, const FloatSize&, const FloatPoint&, |
113 SkXfermode::Mode, const FloatRect&, const FloatSize& repeatSpacing, cons
t KURL&); | 113 SkXfermode::Mode, const FloatRect&, const FloatSize& repeatSpacing, cons
t KURL&); |
114 sk_sp<SkImage> imageForCurrentFrameForContainer(const KURL&, const FloatSize
& containerSize); | 114 sk_sp<SkImage> imageForCurrentFrameForContainer(const KURL&, const IntSize&
containerSize); |
115 void drawInternal(SkCanvas*, const SkPaint&, const FloatRect& fromRect, cons
t FloatRect& toRect, RespectImageOrientationEnum, | 115 void drawInternal(SkCanvas*, const SkPaint&, const FloatRect& fromRect, cons
t FloatRect& toRect, RespectImageOrientationEnum, |
116 ImageClampingMode, const KURL&); | 116 ImageClampingMode, const KURL&); |
117 | 117 |
118 void stopAnimation(); | 118 void stopAnimation(); |
119 void scheduleTimelineRewind(); | 119 void scheduleTimelineRewind(); |
120 void flushPendingTimelineRewind(); | 120 void flushPendingTimelineRewind(); |
121 | 121 |
122 Persistent<SVGImageChromeClient> m_chromeClient; | 122 Persistent<SVGImageChromeClient> m_chromeClient; |
123 Persistent<Page> m_page; | 123 Persistent<Page> m_page; |
124 | 124 |
(...skipping 23 matching lines...) Expand all Loading... |
148 { | 148 { |
149 m_image->setImageObserverDisabled(false); | 149 m_image->setImageObserverDisabled(false); |
150 } | 150 } |
151 private: | 151 private: |
152 Image* m_image; | 152 Image* m_image; |
153 }; | 153 }; |
154 | 154 |
155 } // namespace blink | 155 } // namespace blink |
156 | 156 |
157 #endif // SVGImage_h | 157 #endif // SVGImage_h |
OLD | NEW |