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

Side by Side Diff: Source/core/platform/graphics/Image.h

Issue 15466003: Remove image decoder down sampling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove virtual setSize() from GIF decoder Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/platform/graphics/Image.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 Samuel Weinig (sam.weinig@gmail.com) 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 ImageObserver* imageObserver() const { return m_imageObserver; } 109 ImageObserver* imageObserver() const { return m_imageObserver; }
110 void setImageObserver(ImageObserver* observer) { m_imageObserver = observer; } 110 void setImageObserver(ImageObserver* observer) { m_imageObserver = observer; }
111 111
112 enum TileRule { StretchTile, RoundTile, SpaceTile, RepeatTile }; 112 enum TileRule { StretchTile, RoundTile, SpaceTile, RepeatTile };
113 113
114 virtual PassNativeImagePtr nativeImageForCurrentFrame() { return 0; } 114 virtual PassNativeImagePtr nativeImageForCurrentFrame() { return 0; }
115 115
116 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const A ffineTransform& patternTransform, 116 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const A ffineTransform& patternTransform,
117 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect, BlendMode = BlendModeNormal); 117 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect, BlendMode = BlendModeNormal);
118 118
119 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING)
120 FloatRect adjustSourceRectForDownSampling(const FloatRect& srcRect, const In tSize& scaledSize) const;
121 #endif
122
123 #if !ASSERT_DISABLED 119 #if !ASSERT_DISABLED
124 virtual bool notSolidColor() { return true; } 120 virtual bool notSolidColor() { return true; }
125 #endif 121 #endif
126 122
127 virtual void reportMemoryUsage(MemoryObjectInfo*) const; 123 virtual void reportMemoryUsage(MemoryObjectInfo*) const;
128 124
129 protected: 125 protected:
130 Image(ImageObserver* = 0); 126 Image(ImageObserver* = 0);
131 127
132 static void fillWithSolidColor(GraphicsContext*, const FloatRect& dstRect, c onst Color&, ColorSpace styleColorSpace, CompositeOperator); 128 static void fillWithSolidColor(GraphicsContext*, const FloatRect& dstRect, c onst Color&, ColorSpace styleColorSpace, CompositeOperator);
(...skipping 14 matching lines...) Expand all
147 virtual Color solidColor() const { return Color(); } 143 virtual Color solidColor() const { return Color(); }
148 144
149 private: 145 private:
150 RefPtr<SharedBuffer> m_encodedImageData; 146 RefPtr<SharedBuffer> m_encodedImageData;
151 ImageObserver* m_imageObserver; 147 ImageObserver* m_imageObserver;
152 }; 148 };
153 149
154 } 150 }
155 151
156 #endif 152 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/platform/graphics/Image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698