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

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

Issue 25976002: Remove ImageSource::bytesDecodedToDetermineProperties() and fallout (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: For landing again, rebased Created 7 years, 2 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 | « Source/core/platform/graphics/ImageSource.h ('k') | Source/core/svg/graphics/SVGImage.h » ('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 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 return IntSize(size.height(), size.width()); 94 return IntSize(size.height(), size.width());
95 95
96 return size; 96 return size;
97 } 97 }
98 98
99 bool ImageSource::getHotSpot(IntPoint& hotSpot) const 99 bool ImageSource::getHotSpot(IntPoint& hotSpot) const
100 { 100 {
101 return m_decoder ? m_decoder->hotSpot(hotSpot) : false; 101 return m_decoder ? m_decoder->hotSpot(hotSpot) : false;
102 } 102 }
103 103
104 size_t ImageSource::bytesDecodedToDetermineProperties() const
105 {
106 return 0;
107 }
108
109 int ImageSource::repetitionCount() 104 int ImageSource::repetitionCount()
110 { 105 {
111 return m_decoder ? m_decoder->repetitionCount() : cAnimationNone; 106 return m_decoder ? m_decoder->repetitionCount() : cAnimationNone;
112 } 107 }
113 108
114 size_t ImageSource::frameCount() const 109 size_t ImageSource::frameCount() const
115 { 110 {
116 return m_decoder ? m_decoder->frameCount() : 0; 111 return m_decoder ? m_decoder->frameCount() : 0;
117 } 112 }
118 113
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 161 }
167 162
168 unsigned ImageSource::frameBytesAtIndex(size_t index) const 163 unsigned ImageSource::frameBytesAtIndex(size_t index) const
169 { 164 {
170 if (!m_decoder) 165 if (!m_decoder)
171 return 0; 166 return 0;
172 return m_decoder->frameBytesAtIndex(index); 167 return m_decoder->frameBytesAtIndex(index);
173 } 168 }
174 169
175 } 170 }
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/ImageSource.h ('k') | Source/core/svg/graphics/SVGImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698