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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/BitmapImage.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 * Copyright (C) 2008-2009 Torch Mobile, Inc. 4 * Copyright (C) 2008-2009 Torch Mobile, Inc.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const PaintFlags&, 115 const PaintFlags&,
116 const FloatRect& dst_rect, 116 const FloatRect& dst_rect,
117 const FloatRect& src_rect, 117 const FloatRect& src_rect,
118 RespectImageOrientationEnum, 118 RespectImageOrientationEnum,
119 ImageClampingMode) override; 119 ImageClampingMode) override;
120 120
121 size_t CurrentFrame() const { return current_frame_; } 121 size_t CurrentFrame() const { return current_frame_; }
122 122
123 sk_sp<SkImage> FrameAtIndex(size_t); 123 sk_sp<SkImage> FrameAtIndex(size_t);
124 124
125 bool FrameIsCompleteAtIndex(size_t) const; 125 bool FrameIsReceivedAtIndex(size_t) const;
126 float FrameDurationAtIndex(size_t) const; 126 float FrameDurationAtIndex(size_t) const;
127 bool FrameHasAlphaAtIndex(size_t); 127 bool FrameHasAlphaAtIndex(size_t);
128 ImageOrientation FrameOrientationAtIndex(size_t); 128 ImageOrientation FrameOrientationAtIndex(size_t);
129 129
130 sk_sp<SkImage> DecodeAndCacheFrame(size_t index); 130 sk_sp<SkImage> DecodeAndCacheFrame(size_t index);
131 void UpdateSize() const; 131 void UpdateSize() const;
132 132
133 // Returns the total number of bytes allocated for all framebuffers, i.e. 133 // Returns the total number of bytes allocated for all framebuffers, i.e.
134 // the sum of m_source.frameBytesAtIndex(...) for all frames. 134 // the sum of m_source.frameBytesAtIndex(...) for all frames.
135 size_t TotalFrameBytes(); 135 size_t TotalFrameBytes();
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 size_t frame_count_; 219 size_t frame_count_;
220 220
221 RefPtr<WebTaskRunner> task_runner_; 221 RefPtr<WebTaskRunner> task_runner_;
222 }; 222 };
223 223
224 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); 224 DEFINE_IMAGE_TYPE_CASTS(BitmapImage);
225 225
226 } // namespace blink 226 } // namespace blink
227 227
228 #endif 228 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/BitmapImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698