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

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

Issue 2462803002: Plumb color space to DecodingImageGenerator and ImageFrameGenerator (Closed)
Patch Set: Incorporate review feedback Created 4 years, 1 month 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698