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

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

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/ImageSource.h ('k') | no next file » | 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 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 bool ImageSource::frameHasAlphaAtIndex(size_t index) const 136 bool ImageSource::frameHasAlphaAtIndex(size_t index) const
137 { 137 {
138 return !m_decoder || m_decoder->frameHasAlphaAtIndex(index); 138 return !m_decoder || m_decoder->frameHasAlphaAtIndex(index);
139 } 139 }
140 140
141 bool ImageSource::frameIsCompleteAtIndex(size_t index) const 141 bool ImageSource::frameIsCompleteAtIndex(size_t index) const
142 { 142 {
143 return m_decoder && m_decoder->frameIsCompleteAtIndex(index); 143 return m_decoder && m_decoder->frameIsCompleteAtIndex(index);
144 } 144 }
145 145
146 bool ImageSource::frameIsLazyDecodedAtIndex(size_t index) const
147 {
148 return m_decoder && m_decoder->frameIsCachedAndLazyDecodedAtIndex(index);
149 }
150
151 size_t ImageSource::frameBytesAtIndex(size_t index) const 146 size_t ImageSource::frameBytesAtIndex(size_t index) const
152 { 147 {
153 return m_decoder ? m_decoder->frameBytesAtIndex(index) : 0; 148 return m_decoder ? m_decoder->frameBytesAtIndex(index) : 0;
154 } 149 }
155 150
156 } // namespace blink 151 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/ImageSource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698