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

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

Issue 2716203002: blink: Fix cc/paint skia type mismatches (Closed)
Patch Set: Fix canvas Created 3 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
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // FIXME: SVGImages are underreporting decoded sizes and will be unable 113 // FIXME: SVGImages are underreporting decoded sizes and will be unable
114 // to prune because these functions are not implemented yet. 114 // to prune because these functions are not implemented yet.
115 void destroyDecodedData() override {} 115 void destroyDecodedData() override {}
116 116
117 // FIXME: Implement this to be less conservative. 117 // FIXME: Implement this to be less conservative.
118 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override { 118 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override {
119 return false; 119 return false;
120 } 120 }
121 121
122 void draw(PaintCanvas*, 122 void draw(PaintCanvas*,
123 const SkPaint&, 123 const PaintFlags&,
124 const FloatRect& fromRect, 124 const FloatRect& fromRect,
125 const FloatRect& toRect, 125 const FloatRect& toRect,
126 RespectImageOrientationEnum, 126 RespectImageOrientationEnum,
127 ImageClampingMode, 127 ImageClampingMode,
128 const ColorBehavior&) override; 128 const ColorBehavior&) override;
129 void drawForContainer(PaintCanvas*, 129 void drawForContainer(PaintCanvas*,
130 const SkPaint&, 130 const PaintFlags&,
131 const FloatSize, 131 const FloatSize,
132 float, 132 float,
133 const FloatRect&, 133 const FloatRect&,
134 const FloatRect&, 134 const FloatRect&,
135 const KURL&); 135 const KURL&);
136 void drawPatternForContainer(GraphicsContext&, 136 void drawPatternForContainer(GraphicsContext&,
137 const FloatSize, 137 const FloatSize,
138 float, 138 float,
139 const FloatRect&, 139 const FloatRect&,
140 const FloatSize&, 140 const FloatSize&,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 ~ImageObserverDisabler() { m_image->setImageObserverDisabled(false); } 184 ~ImageObserverDisabler() { m_image->setImageObserverDisabled(false); }
185 185
186 private: 186 private:
187 Image* m_image; 187 Image* m_image;
188 }; 188 };
189 189
190 } // namespace blink 190 } // namespace blink
191 191
192 #endif // SVGImage_h 192 #endif // SVGImage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698