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

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

Issue 2026803002: Avoid GPU readback in tex(Sub)Image2D(ImageBitmap) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: staticbitmapimage does not keep provider anymore Created 4 years, 6 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) 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 bool currentFrameHasSingleSecurityOrigin() const override; 59 bool currentFrameHasSingleSecurityOrigin() const override;
60 60
61 void startAnimation(CatchUpAnimation = CatchUp) override; 61 void startAnimation(CatchUpAnimation = CatchUp) override;
62 void resetAnimation() override; 62 void resetAnimation() override;
63 63
64 // Advances an animated image. This will trigger an animation update for CSS 64 // Advances an animated image. This will trigger an animation update for CSS
65 // and advance the SMIL timeline by one frame. 65 // and advance the SMIL timeline by one frame.
66 void advanceAnimationForTesting() override; 66 void advanceAnimationForTesting() override;
67 SVGImageChromeClient& chromeClientForTesting(); 67 SVGImageChromeClient& chromeClientForTesting();
68 68
69 PassRefPtr<SkImage> imageForCurrentFrame() override; 69 PassRefPtr<SkImage> imageForCurrentFrame(WebGraphicsContext3DProvider* = nul lptr) override;
70 70
71 // Does the SVG image/document contain any animations? 71 // Does the SVG image/document contain any animations?
72 bool hasAnimations() const; 72 bool hasAnimations() const;
73 // Service CSS and SMIL animations. 73 // Service CSS and SMIL animations.
74 void serviceAnimations(double monotonicAnimationStartTime); 74 void serviceAnimations(double monotonicAnimationStartTime);
75 75
76 void updateUseCounters(Document&) const; 76 void updateUseCounters(Document&) const;
77 77
78 // The defaultObjectSize is assumed to be unzoomed, i.e. it should 78 // The defaultObjectSize is assumed to be unzoomed, i.e. it should
79 // not have the effective zoom level applied. The returned size is 79 // not have the effective zoom level applied. The returned size is
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698