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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/ImageSource.cpp

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) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp.toker@collabora.co.uk> 3 * Copyright (C) 2007 Alp Toker <alp.toker@collabora.co.uk>
4 * Copyright (C) 2008, Google Inc. All rights reserved. 4 * Copyright (C) 2008, Google Inc. All rights reserved.
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 ImageOrientation ImageSource::OrientationAtIndex(size_t index) const { 135 ImageOrientation ImageSource::OrientationAtIndex(size_t index) const {
136 return decoder_ ? decoder_->OrientationAtIndex(index) 136 return decoder_ ? decoder_->OrientationAtIndex(index)
137 : kDefaultImageOrientation; 137 : kDefaultImageOrientation;
138 } 138 }
139 139
140 bool ImageSource::FrameHasAlphaAtIndex(size_t index) const { 140 bool ImageSource::FrameHasAlphaAtIndex(size_t index) const {
141 return !decoder_ || decoder_->FrameHasAlphaAtIndex(index); 141 return !decoder_ || decoder_->FrameHasAlphaAtIndex(index);
142 } 142 }
143 143
144 bool ImageSource::FrameIsCompleteAtIndex(size_t index) const { 144 bool ImageSource::FrameIsReceivedAtIndex(size_t index) const {
145 return decoder_ && decoder_->FrameIsCompleteAtIndex(index); 145 return decoder_ && decoder_->FrameIsReceivedAtIndex(index);
146 } 146 }
147 147
148 size_t ImageSource::FrameBytesAtIndex(size_t index) const { 148 size_t ImageSource::FrameBytesAtIndex(size_t index) const {
149 return decoder_ ? decoder_->FrameBytesAtIndex(index) : 0; 149 return decoder_ ? decoder_->FrameBytesAtIndex(index) : 0;
150 } 150 }
151 151
152 } // namespace blink 152 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698