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

Side by Side Diff: Source/platform/graphics/FrameData.h

Issue 1308233002: Remove external BitmapImage lazy decoding tracking (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
4 * Copyright (C) 2008-2009 Torch Mobile, Inc. 4 * Copyright (C) 2008-2009 Torch Mobile, Inc.
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // Clear the cached image data on the frame, and (optionally) the metadata. 45 // Clear the cached image data on the frame, and (optionally) the metadata.
46 // Returns whether there was cached image data to clear. 46 // Returns whether there was cached image data to clear.
47 bool clear(bool clearMetadata); 47 bool clear(bool clearMetadata);
48 48
49 RefPtr<SkImage> m_frame; 49 RefPtr<SkImage> m_frame;
50 ImageOrientation m_orientation; 50 ImageOrientation m_orientation;
51 float m_duration; 51 float m_duration;
52 bool m_haveMetadata : 1; 52 bool m_haveMetadata : 1;
53 bool m_isComplete : 1; 53 bool m_isComplete : 1;
54 bool m_hasAlpha : 1; 54 bool m_hasAlpha : 1;
55 bool m_isLazyDecoded : 1;
56 size_t m_frameBytes; 55 size_t m_frameBytes;
57 }; 56 };
58 57
59 } // namespace blink 58 } // namespace blink
60 59
61 namespace WTF { 60 namespace WTF {
62 template<> struct VectorTraits<blink::FrameData> : public SimpleClassVectorTrait s<blink::FrameData> { 61 template<> struct VectorTraits<blink::FrameData> : public SimpleClassVectorTrait s<blink::FrameData> {
63 static const bool canInitializeWithMemset = false; // Not all FrameData memb ers initialize to 0. 62 static const bool canInitializeWithMemset = false; // Not all FrameData memb ers initialize to 0.
64 }; 63 };
65 } 64 }
66 65
67 #endif // FrameData_h 66 #endif // FrameData_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/DeferredImageDecoder.cpp ('k') | Source/platform/graphics/FrameData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698