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

Side by Side Diff: third_party/WebKit/Source/platform/image-decoders/ImageFrame.h

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 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 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2009-2010. 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 // succeeded. 113 // succeeded.
114 bool setSize(int newWidth, int newHeight); 114 bool setSize(int newWidth, int newHeight);
115 115
116 // Returns a caller-owned pointer to the underlying native image data. 116 // Returns a caller-owned pointer to the underlying native image data.
117 // (Actual use: This pointer will be owned by BitmapImage and freed in 117 // (Actual use: This pointer will be owned by BitmapImage and freed in
118 // FrameData::clear()). 118 // FrameData::clear()).
119 const SkBitmap& bitmap() const; 119 const SkBitmap& bitmap() const;
120 120
121 bool hasAlpha() const; 121 bool hasAlpha() const;
122 const IntRect& originalFrameRect() const { return m_originalFrameRect; } 122 const IntRect& originalFrameRect() const { return m_originalFrameRect; }
123 Status status() const { return m_status; } 123 Status getStatus() const { return m_status; }
124 unsigned duration() const { return m_duration; } 124 unsigned duration() const { return m_duration; }
125 DisposalMethod disposalMethod() const { return m_disposalMethod; } 125 DisposalMethod getDisposalMethod() const { return m_disposalMethod; }
126 AlphaBlendSource alphaBlendSource() const { return m_alphaBlendSource; } 126 AlphaBlendSource getAlphaBlendSource() const { return m_alphaBlendSource; }
127 bool premultiplyAlpha() const { return m_premultiplyAlpha; } 127 bool premultiplyAlpha() const { return m_premultiplyAlpha; }
128 SkBitmap::Allocator* allocator() const { return m_allocator; } 128 SkBitmap::Allocator* allocator() const { return m_allocator; }
129 const SkBitmap& getSkBitmap() const { return m_bitmap; } 129 const SkBitmap& getSkBitmap() const { return m_bitmap; }
130 // Returns true if the pixels changed, but the bitmap has not yet been notif ied. 130 // Returns true if the pixels changed, but the bitmap has not yet been notif ied.
131 bool pixelsChanged() const { return m_pixelsChanged; } 131 bool pixelsChanged() const { return m_pixelsChanged; }
132 size_t requiredPreviousFrameIndex() const { return m_requiredPreviousFrameIn dex; } 132 size_t requiredPreviousFrameIndex() const { return m_requiredPreviousFrameIn dex; }
133 void setHasAlpha(bool alpha); 133 void setHasAlpha(bool alpha);
134 void setOriginalFrameRect(const IntRect& r) { m_originalFrameRect = r; } 134 void setOriginalFrameRect(const IntRect& r) { m_originalFrameRect = r; }
135 void setStatus(Status); 135 void setStatus(Status);
136 void setDuration(unsigned duration) { m_duration = duration; } 136 void setDuration(unsigned duration) { m_duration = duration; }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // The frame that must be decoded before this frame can be decoded. 216 // The frame that must be decoded before this frame can be decoded.
217 // WTF::kNotFound if this frame doesn't require any previous frame. 217 // WTF::kNotFound if this frame doesn't require any previous frame.
218 // This is used by ImageDecoder::clearCacheExceptFrame(), and will never 218 // This is used by ImageDecoder::clearCacheExceptFrame(), and will never
219 // be read for image formats that do not have multiple frames. 219 // be read for image formats that do not have multiple frames.
220 size_t m_requiredPreviousFrameIndex; 220 size_t m_requiredPreviousFrameIndex;
221 }; 221 };
222 222
223 } // namespace blink 223 } // namespace blink
224 224
225 #endif 225 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698