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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h

Issue 1508683002: DeferredImageDecoder: early-out onGetYUV8Planes when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 RefPtr<SharedBuffer> m_data; 91 RefPtr<SharedBuffer> m_data;
92 bool m_allDataReceived; 92 bool m_allDataReceived;
93 unsigned m_lastDataSize; 93 unsigned m_lastDataSize;
94 OwnPtr<ImageDecoder> m_actualDecoder; 94 OwnPtr<ImageDecoder> m_actualDecoder;
95 95
96 String m_filenameExtension; 96 String m_filenameExtension;
97 IntSize m_size; 97 IntSize m_size;
98 int m_repetitionCount; 98 int m_repetitionCount;
99 bool m_hasColorProfile; 99 bool m_hasColorProfile;
100 bool m_canYUVDecode;
100 101
101 // Carries only frame state and other information. Does not carry bitmap. 102 // Carries only frame state and other information. Does not carry bitmap.
102 Vector<FrameData> m_frameData; 103 Vector<FrameData> m_frameData;
103 RefPtr<ImageFrameGenerator> m_frameGenerator; 104 RefPtr<ImageFrameGenerator> m_frameGenerator;
104 105
105 static bool s_enabled; 106 static bool s_enabled;
106 }; 107 };
107 108
108 } // namespace blink 109 } // namespace blink
109 110
110 #endif 111 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698