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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h

Issue 2982083002: FrameIsCompleteAtIndex to FrameIsReceivedAtIndex (Closed)
Patch Set: Update upstack from ImageDecoder Created 3 years, 5 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void SetData(PassRefPtr<SharedBuffer> data, bool all_data_received); 67 void SetData(PassRefPtr<SharedBuffer> data, bool all_data_received);
68 68
69 bool IsSizeAvailable(); 69 bool IsSizeAvailable();
70 bool HasEmbeddedColorSpace() const; 70 bool HasEmbeddedColorSpace() const;
71 IntSize Size() const; 71 IntSize Size() const;
72 IntSize FrameSizeAtIndex(size_t index) const; 72 IntSize FrameSizeAtIndex(size_t index) const;
73 size_t FrameCount(); 73 size_t FrameCount();
74 int RepetitionCount() const; 74 int RepetitionCount() const;
75 size_t ClearCacheExceptFrame(size_t index); 75 size_t ClearCacheExceptFrame(size_t index);
76 bool FrameHasAlphaAtIndex(size_t index) const; 76 bool FrameHasAlphaAtIndex(size_t index) const;
77 bool FrameIsCompleteAtIndex(size_t index) const; 77 bool FrameIsReceivedAtIndex(size_t index) const;
78 float FrameDurationAtIndex(size_t index) const; 78 float FrameDurationAtIndex(size_t index) const;
79 size_t FrameBytesAtIndex(size_t index) const; 79 size_t FrameBytesAtIndex(size_t index) const;
80 ImageOrientation OrientationAtIndex(size_t index) const; 80 ImageOrientation OrientationAtIndex(size_t index) const;
81 bool HotSpot(IntPoint&) const; 81 bool HotSpot(IntPoint&) const;
82 82
83 private: 83 private:
84 explicit DeferredImageDecoder(std::unique_ptr<ImageDecoder> actual_decoder); 84 explicit DeferredImageDecoder(std::unique_ptr<ImageDecoder> actual_decoder);
85 85
86 friend class DeferredImageDecoderTest; 86 friend class DeferredImageDecoderTest;
87 ImageFrameGenerator* FrameGenerator() { return frame_generator_.Get(); } 87 ImageFrameGenerator* FrameGenerator() { return frame_generator_.Get(); }
(...skipping 23 matching lines...) Expand all
111 IntPoint hot_spot_; 111 IntPoint hot_spot_;
112 112
113 // Caches frame state information. 113 // Caches frame state information.
114 Vector<DeferredFrameData> frame_data_; 114 Vector<DeferredFrameData> frame_data_;
115 RefPtr<ImageFrameGenerator> frame_generator_; 115 RefPtr<ImageFrameGenerator> frame_generator_;
116 }; 116 };
117 117
118 } // namespace blink 118 } // namespace blink
119 119
120 #endif 120 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698