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

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

Issue 1962563002: Fix ImageDecoder::frameIsCompleteAtIndex - fully received instead of decoded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 ImageOrientation ImageSource::orientationAtIndex(size_t index) const 130 ImageOrientation ImageSource::orientationAtIndex(size_t index) const
131 { 131 {
132 return m_decoder ? m_decoder->orientationAtIndex(index) : DefaultImageOrient ation; 132 return m_decoder ? m_decoder->orientationAtIndex(index) : DefaultImageOrient ation;
133 } 133 }
134 134
135 bool ImageSource::frameHasAlphaAtIndex(size_t index) const 135 bool ImageSource::frameHasAlphaAtIndex(size_t index) const
136 { 136 {
137 return !m_decoder || m_decoder->frameHasAlphaAtIndex(index); 137 return !m_decoder || m_decoder->frameHasAlphaAtIndex(index);
138 } 138 }
139 139
140 bool ImageSource::frameIsCompleteAtIndex(size_t index) const 140 bool ImageSource::frameIsFullyReceivedAtIndex(size_t index) const
141 { 141 {
142 return m_decoder && m_decoder->frameIsCompleteAtIndex(index); 142 return m_decoder && m_decoder->frameIsFullyReceivedAtIndex(index);
143 } 143 }
144 144
145 size_t ImageSource::frameBytesAtIndex(size_t index) const 145 size_t ImageSource::frameBytesAtIndex(size_t index) const
146 { 146 {
147 return m_decoder ? m_decoder->frameBytesAtIndex(index) : 0; 147 return m_decoder ? m_decoder->frameBytesAtIndex(index) : 0;
148 } 148 }
149 149
150 } // namespace blink 150 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698