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

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

Issue 2565323003: Move gif image decoder to SkCodec (Closed)
Patch Set: Explicitly specify move ctor / assignment until required patch lands. Created 3 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
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 27 matching lines...) Expand all
38 class SkImage; 38 class SkImage;
39 39
40 namespace blink { 40 namespace blink {
41 41
42 // ImageFrame represents the decoded image data. This buffer is what all 42 // ImageFrame represents the decoded image data. This buffer is what all
43 // decoders write a single frame into. 43 // decoders write a single frame into.
44 class PLATFORM_EXPORT ImageFrame final { 44 class PLATFORM_EXPORT ImageFrame final {
45 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 45 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
46 46
47 public: 47 public:
48 enum Status { kFrameEmpty, kFramePartial, kFrameComplete }; 48 enum Status { kFrameEmpty, kFrameAllocated, kFramePartial, kFrameComplete };
49 enum DisposalMethod { 49 enum DisposalMethod {
50 // If you change the numeric values of these, make sure you audit 50 // If you change the numeric values of these, make sure you audit
51 // all users, as some users may cast raw values to/from these 51 // all users, as some users may cast raw values to/from these
52 // constants. 52 // constants.
53 kDisposeNotSpecified, // Leave frame in framebuffer 53 kDisposeNotSpecified, // Leave frame in framebuffer
54 kDisposeKeep, // Leave frame in framebuffer 54 kDisposeKeep, // Leave frame in framebuffer
55 kDisposeOverwriteBgcolor, // Clear frame to fully transparent 55 kDisposeOverwriteBgcolor, // Clear frame to fully transparent
56 kDisposeOverwritePrevious // Clear frame to previous framebuffer contents 56 kDisposeOverwritePrevious // Clear frame to previous framebuffer contents
57 }; 57 };
58 // Indicates how non-opaque pixels in the current frame rectangle 58 // Indicates how non-opaque pixels in the current frame rectangle
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 // The frame that must be decoded before this frame can be decoded. 294 // The frame that must be decoded before this frame can be decoded.
295 // WTF::kNotFound if this frame doesn't require any previous frame. 295 // WTF::kNotFound if this frame doesn't require any previous frame.
296 // This is used by ImageDecoder::ClearCacheExceptFrame(), and will never 296 // This is used by ImageDecoder::ClearCacheExceptFrame(), and will never
297 // be read for image formats that do not have multiple frames. 297 // be read for image formats that do not have multiple frames.
298 size_t required_previous_frame_index_; 298 size_t required_previous_frame_index_;
299 }; 299 };
300 300
301 } // namespace blink 301 } // namespace blink
302 302
303 #endif 303 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698