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

Side by Side Diff: Source/platform/graphics/ImageSource.h

Issue 1308233002: Remove external BitmapImage lazy decoding tracking (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | « Source/platform/graphics/FrameData.cpp ('k') | Source/platform/graphics/ImageSource.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) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 int repetitionCount(); 80 int repetitionCount();
81 81
82 size_t frameCount() const; 82 size_t frameCount() const;
83 83
84 // Attempts to create the requested frame. 84 // Attempts to create the requested frame.
85 PassRefPtr<SkImage> createFrameAtIndex(size_t); 85 PassRefPtr<SkImage> createFrameAtIndex(size_t);
86 86
87 float frameDurationAtIndex(size_t) const; 87 float frameDurationAtIndex(size_t) const;
88 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall y used any alpha. 88 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall y used any alpha.
89 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu lly received. 89 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu lly received.
90 bool frameIsLazyDecodedAtIndex(size_t) const; // Whether or not the frame is lazy-decoded.
91 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation 90 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation
92 91
93 // Returns the number of bytes in the decoded frame. May return 0 if the 92 // Returns the number of bytes in the decoded frame. May return 0 if the
94 // frame has not yet begun to decode. 93 // frame has not yet begun to decode.
95 size_t frameBytesAtIndex(size_t) const; 94 size_t frameBytesAtIndex(size_t) const;
96 95
97 private: 96 private:
98 OwnPtr<DeferredImageDecoder> m_decoder; 97 OwnPtr<DeferredImageDecoder> m_decoder;
99 }; 98 };
100 99
101 } // namespace blink 100 } // namespace blink
102 101
103 #endif 102 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/FrameData.cpp ('k') | Source/platform/graphics/ImageSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698