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

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

Issue 868743002: Use SkXfermode::Mode in code related to Image. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase to ToT Created 5 years, 11 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
« no previous file with comments | « Source/core/paint/TableCellPainter.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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // FIXME: SVGImages are underreporting decoded sizes and will be unable 89 // FIXME: SVGImages are underreporting decoded sizes and will be unable
90 // to prune because these functions are not implemented yet. 90 // to prune because these functions are not implemented yet.
91 virtual void destroyDecodedData(bool) override { } 91 virtual void destroyDecodedData(bool) override { }
92 92
93 // FIXME: Implement this to be less conservative. 93 // FIXME: Implement this to be less conservative.
94 virtual bool currentFrameKnownToBeOpaque() override { return false; } 94 virtual bool currentFrameKnownToBeOpaque() override { return false; }
95 95
96 DisplayItemClient displayItemClient() const { return static_cast<DisplayItem ClientInternalVoid*>((void*)this); } 96 DisplayItemClient displayItemClient() const { return static_cast<DisplayItem ClientInternalVoid*>((void*)this); }
97 97
98 SVGImage(ImageObserver*); 98 SVGImage(ImageObserver*);
99 void draw(GraphicsContext*, const FloatRect& fromRect, const FloatRect& toRe ct, CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum) overrid e; 99 void draw(GraphicsContext*, const FloatRect& fromRect, const FloatRect& toRe ct, SkXfermode::Mode, RespectImageOrientationEnum) override;
100 void drawForContainer(GraphicsContext*, const FloatSize, float, const FloatR ect&, const FloatRect&, CompositeOperator, blink::WebBlendMode); 100 void drawForContainer(GraphicsContext*, const FloatSize, float, const FloatR ect&, const FloatRect&, SkXfermode::Mode);
101 void drawPatternForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const FloatSize&, const FloatPoint&, 101 void drawPatternForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const FloatSize&, const FloatPoint&,
102 CompositeOperator, const FloatRect&, blink::WebBlendMode, const IntSize& repeatSpacing); 102 SkXfermode::Mode, const FloatRect&, const IntSize& repeatSpacing);
103 103
104 OwnPtr<SVGImageChromeClient> m_chromeClient; 104 OwnPtr<SVGImageChromeClient> m_chromeClient;
105 OwnPtrWillBePersistent<Page> m_page; 105 OwnPtrWillBePersistent<Page> m_page;
106 IntSize m_intrinsicSize; 106 IntSize m_intrinsicSize;
107 KURL m_url; 107 KURL m_url;
108 }; 108 };
109 109
110 DEFINE_IMAGE_TYPE_CASTS(SVGImage); 110 DEFINE_IMAGE_TYPE_CASTS(SVGImage);
111 111
112 class ImageObserverDisabler { 112 class ImageObserverDisabler {
(...skipping 11 matching lines...) Expand all
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/paint/TableCellPainter.cpp ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698