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

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

Issue 25976002: Remove ImageSource::bytesDecodedToDetermineProperties() and fallout (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: For landing again, rebased Created 7 years, 2 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual void setContainerSize(const IntSize&) OVERRIDE; 79 virtual void setContainerSize(const IntSize&) OVERRIDE;
80 IntSize containerSize() const; 80 IntSize containerSize() const;
81 virtual bool usesContainerSize() const OVERRIDE { return true; } 81 virtual bool usesContainerSize() const OVERRIDE { return true; }
82 virtual void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intr insicHeight, FloatSize& intrinsicRatio) OVERRIDE; 82 virtual void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intr insicHeight, FloatSize& intrinsicRatio) OVERRIDE;
83 83
84 virtual bool dataChanged(bool allDataReceived) OVERRIDE; 84 virtual bool dataChanged(bool allDataReceived) OVERRIDE;
85 85
86 // FIXME: SVGImages are underreporting decoded sizes and will be unable 86 // FIXME: SVGImages are underreporting decoded sizes and will be unable
87 // to prune because these functions are not implemented yet. 87 // to prune because these functions are not implemented yet.
88 virtual void destroyDecodedData(bool) OVERRIDE { } 88 virtual void destroyDecodedData(bool) OVERRIDE { }
89 virtual unsigned decodedSize() const OVERRIDE { return 0; }
90 89
91 // FIXME: Implement this to be less conservative. 90 // FIXME: Implement this to be less conservative.
92 virtual bool currentFrameKnownToBeOpaque() OVERRIDE { return false; } 91 virtual bool currentFrameKnownToBeOpaque() OVERRIDE { return false; }
93 92
94 SVGImage(ImageObserver*); 93 SVGImage(ImageObserver*);
95 virtual void draw(GraphicsContext*, const FloatRect& fromRect, const FloatRe ct& toRect, CompositeOperator, BlendMode) OVERRIDE; 94 virtual void draw(GraphicsContext*, const FloatRect& fromRect, const FloatRe ct& toRect, CompositeOperator, BlendMode) OVERRIDE;
96 void drawForContainer(GraphicsContext*, const FloatSize, float, const FloatR ect&, const FloatRect&, CompositeOperator, BlendMode); 95 void drawForContainer(GraphicsContext*, const FloatSize, float, const FloatR ect&, const FloatRect&, CompositeOperator, BlendMode);
97 void drawPatternForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const FloatSize&, const FloatPoint&, 96 void drawPatternForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const FloatSize&, const FloatPoint&,
98 CompositeOperator, const FloatRect&, BlendMode, const IntSize& repeatSpa cing); 97 CompositeOperator, const FloatRect&, BlendMode, const IntSize& repeatSpa cing);
99 98
(...skipping 24 matching lines...) Expand all
124 m_image->setImageObserver(m_observer); 123 m_image->setImageObserver(m_observer);
125 } 124 }
126 private: 125 private:
127 Image* m_image; 126 Image* m_image;
128 ImageObserver* m_observer; 127 ImageObserver* m_observer;
129 }; 128 };
130 129
131 } 130 }
132 131
133 #endif // SVGImage_h 132 #endif // SVGImage_h
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/ImageSource.cpp ('k') | Source/core/svg/graphics/SVGImageForContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698