OLD | NEW |
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 String ImageSource::filenameExtension() const { | 67 String ImageSource::filenameExtension() const { |
68 return m_decoder ? m_decoder->filenameExtension() : String(); | 68 return m_decoder ? m_decoder->filenameExtension() : String(); |
69 } | 69 } |
70 | 70 |
71 bool ImageSource::isSizeAvailable() { | 71 bool ImageSource::isSizeAvailable() { |
72 return m_decoder && m_decoder->isSizeAvailable(); | 72 return m_decoder && m_decoder->isSizeAvailable(); |
73 } | 73 } |
74 | 74 |
75 bool ImageSource::hasColorProfile() const { | 75 bool ImageSource::hasColorProfile() const { |
76 return m_decoder && m_decoder->hasColorSpace(); | 76 return m_decoder && m_decoder->hasEmbeddedColorSpace(); |
77 } | 77 } |
78 | 78 |
79 IntSize ImageSource::size( | 79 IntSize ImageSource::size( |
80 RespectImageOrientationEnum shouldRespectOrientation) const { | 80 RespectImageOrientationEnum shouldRespectOrientation) const { |
81 return frameSizeAtIndex(0, shouldRespectOrientation); | 81 return frameSizeAtIndex(0, shouldRespectOrientation); |
82 } | 82 } |
83 | 83 |
84 IntSize ImageSource::frameSizeAtIndex( | 84 IntSize ImageSource::frameSizeAtIndex( |
85 size_t index, | 85 size_t index, |
86 RespectImageOrientationEnum shouldRespectOrientation) const { | 86 RespectImageOrientationEnum shouldRespectOrientation) const { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 bool ImageSource::frameIsCompleteAtIndex(size_t index) const { | 140 bool ImageSource::frameIsCompleteAtIndex(size_t index) const { |
141 return m_decoder && m_decoder->frameIsCompleteAtIndex(index); | 141 return m_decoder && m_decoder->frameIsCompleteAtIndex(index); |
142 } | 142 } |
143 | 143 |
144 size_t ImageSource::frameBytesAtIndex(size_t index) const { | 144 size_t ImageSource::frameBytesAtIndex(size_t index) const { |
145 return m_decoder ? m_decoder->frameBytesAtIndex(index) : 0; | 145 return m_decoder ? m_decoder->frameBytesAtIndex(index) : 0; |
146 } | 146 } |
147 | 147 |
148 } // namespace blink | 148 } // namespace blink |
OLD | NEW |