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

Side by Side Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h

Issue 2878363003: Revert of Fix ImageAnimation constant names after Blink renaming (Closed)
Patch Set: Created 3 years, 7 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) Research In Motion Limited 2009-2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 size_ = IntSize(width, height); 176 size_ = IntSize(width, height);
177 size_available_ = true; 177 size_available_ = true;
178 return true; 178 return true;
179 } 179 }
180 180
181 // Calls DecodeFrameCount() to get the frame count (if possible), without 181 // Calls DecodeFrameCount() to get the frame count (if possible), without
182 // decoding the individual frames. Resizes |frame_buffer_cache_| to the 182 // decoding the individual frames. Resizes |frame_buffer_cache_| to the
183 // correct size and returns its size. 183 // correct size and returns its size.
184 size_t FrameCount(); 184 size_t FrameCount();
185 185
186 virtual int RepetitionCount() const { return kAnimationNone; } 186 virtual int RepetitionCount() const { return kCAnimationNone; }
187 187
188 // Decodes as much of the requested frame as possible, and returns an 188 // Decodes as much of the requested frame as possible, and returns an
189 // ImageDecoder-owned pointer. 189 // ImageDecoder-owned pointer.
190 ImageFrame* FrameBufferAtIndex(size_t); 190 ImageFrame* FrameBufferAtIndex(size_t);
191 191
192 // Whether the requested frame has alpha. 192 // Whether the requested frame has alpha.
193 virtual bool FrameHasAlphaAtIndex(size_t) const; 193 virtual bool FrameHasAlphaAtIndex(size_t) const;
194 194
195 // Whether or not the frame is fully received. 195 // Whether or not the frame is fully received.
196 virtual bool FrameIsCompleteAtIndex(size_t) const; 196 virtual bool FrameIsCompleteAtIndex(size_t) const;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 bool has_histogrammed_color_space_ = false; 428 bool has_histogrammed_color_space_ = false;
429 429
430 sk_sp<SkColorSpace> embedded_color_space_ = nullptr; 430 sk_sp<SkColorSpace> embedded_color_space_ = nullptr;
431 bool source_to_target_color_transform_needs_update_ = false; 431 bool source_to_target_color_transform_needs_update_ = false;
432 std::unique_ptr<SkColorSpaceXform> source_to_target_color_transform_; 432 std::unique_ptr<SkColorSpaceXform> source_to_target_color_transform_;
433 }; 433 };
434 434
435 } // namespace blink 435 } // namespace blink
436 436
437 #endif 437 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698